acala-lottery-contracts
v1.0.0
Published
It contains two contracts: - `Ambassador Point`: token used to draw lottery. Owner and allowed minters can batch mint to community members. - `Lottery`: lottery contract that burn `AP` token and reward `ACA` token. Usually each lottery draw burns 10 `AP`
Readme
Acala Lottery
It contains two contracts:
Ambassador Point: token used to draw lottery. Owner and allowed minters can batch mint to community members.Lottery: lottery contract that burnAPtoken and rewardACAtoken. Usually each lottery draw burns 10APtoken, and the reward amount is a randomly selected 10 - 500ACAtoken.
Test
- start acala stack:
docker compose up - install deps:
yarn - build contracts:
yarn build - run test:
yarn test
