Files
nym/contracts/vesting
Jędrzej Stuczyński 33992542b1 feature: upgrade cosmwasm to 2.2 (#5479)
* updated contracts to cosmwasm2.2 and fixed build issues

* removed old coconut contract code + additional dkg fixes

* replace deprecated to_binary and from_binary functions

* mixnet contract tests compiling

some are failing due to incorrect addresses

* made other contract tests compile

* fixed remaining tests

* allow usage of manually dispatching contract replies

* nym-api test fixes

* removed old toolchain from contracts CI

* linter fixes

* regenerated contract schema

* fixed easy_addr

* further license fixes

* post rebase fixes + update to 2.2.2

* change ci runner

* minor CI adjustments

* change wallet CI to use node 20

* more CI changes...

* run cosmwasm-check against release contracts

* test ci changes

* wip...
2025-03-21 13:43:35 +00:00
..
2021-12-03 10:14:47 +01:00
2022-05-23 13:25:20 +02:00

Nym vesting contract

  1. Initial vesting tokens are deposited and assigned to existing addresses via CreatePeriodicVestingAccount
  2. Admin account can then delegate vested and unvested tokens to mixnodes on behalf of vesting accounts
  3. Vesting accounts can withdraw vested and undelegated (spendable) coins to their addresses

Glossary

Term Definition
original vesting coins vesting amount specified at account creation
vested coins coins vested up to the current vesting period, current period excluded
vesting coins original vesting amount minus vested coins, claimed rewards are not part of vesting coins
delegated free coins delegated coins that have vested
delegated vesting coins total delegation amount minus delegated free coins
pledged free coins pledged coins that have vested
pledged vesting coins total pledge amount minus pledged free coins
locked coins vesting coins minus delegated vesting and pledged vesting coins
spendable coins current vesting account balance minus locked coins

Vesting coin delegation flow

vesting-coin-delegation