Skip to content

Commit

Permalink
[ECO-2360] Add claim link module to rewards package (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
alnoki authored Nov 15, 2024
1 parent c26a646 commit b5f7b27
Show file tree
Hide file tree
Showing 4 changed files with 759 additions and 81 deletions.
5 changes: 4 additions & 1 deletion src/move/rewards/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ emojicoin_dot_fun = "0xc0de"
integrator = "0xccc"
rewards = "0xddd"

[dev-dependencies.BlackHeartCoinFactory]
local = "../test_coin_factories/black_heart"

[package]
authors = ["Econia Labs ([email protected])"]
name = "EmojicoinDotFunRewards"
upgrade_policy = "compatible"
version = "1.0.1"
version = "1.1.0"
10 changes: 9 additions & 1 deletion src/move/rewards/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ aptos move publish \
--profile $PROFILE
```

## Fund the vault
## Fund the vaults

```sh
REWARDS=0xaaa...
PROFILE=my-profile
N_CLAIM_LINK_REDEMPTIONS_TO_FUND=10
N_REWARDS_TO_FUND_PER_TIER="u64:[1500,500,200,50,5,1]"
```

Expand All @@ -53,3 +54,10 @@ aptos move run \
--function-id $REWARDS::emojicoin_dot_fun_rewards::fund_tiers \
--profile $PROFILE
```

```sh
aptos move run \
--args $N_CLAIM_LINK_REDEMPTIONS_TO_FUND \
--function-id $REWARDS::emojicoin_dot_fun_claim_link::fund_vault \
--profile $PROFILE
```
Loading

0 comments on commit b5f7b27

Please sign in to comment.