Smart contract for storing, approving, and claiming LUNA allocated to ecosystem projects as of Prop 446.
{
"master_address": Option<String>,
"denom": String,
"vestings": Vec<Vesting>,
}Variables:
master_address: address who can update tollgate / status of all vestingsdenom: Vested token's Cosmos SDK coin denomvestings: list of vesting parameters
Approve the next tollgate for recipient. A tollgate can be approved as long as current_timestamp is greater than the time when the tollgate is hit.
If a tollgate is not approved, the remaining LUNA allocation for the recipient project is sent back to the master_address.
Note: this message can only be called by the master_address account.
{
"approve_tollgate": {
"recipient": String,
"approve": bool,
}
}Variables:
recipient: the address of the recipient protocol to approve the tollgate forapprove: whether to approve the tollgate (eithertrueorfalse)
Claim all unlocked and eligible LUNA.
{
"claim": {}
}Query the vesting information for a recipient.
{
"vesting_info": {
"recipient": String,
}
}Variables:
recipient: the address of the recipient protocol to approve the tollgate for
{
"vesting_info": {
"recipient": Addr,
"active": bool,
"approved_periods": u64,
"total_periods": u64,
"last_claimed_period": u64,
"total_amount": Uint128,
"claimed_amount": Uint128,
"vested_amount": Uint128,
"amount_per_period": Uint128,
}
}Variables:
recipients: the address of the recipient protocol to approve the tollgate foractive: vesting valid statusapproved_periods: current approved tollgates, in periodstotal_periods: total vesting periodslast_claimed_period: previously claimed period, start at 0total_amount: total vesting amountclaimed_amount: amount of vested tokens claimedvested_amount: amount of vested tokens still unclaimedamount_per_period: claimable amount for each period