Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

nebula-protocol/terra-emergency-alloc-vesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terra 2.0 Emergency LUNA Allocation Vesting Contract

Smart contract for storing, approving, and claiming LUNA allocated to ecosystem projects as of Prop 446.

Messages

InstantiateMsg

{
    "master_address": Option<String>,
    "denom": String,
    "vestings": Vec<Vesting>,
}

Variables:

  • master_address: address who can update tollgate / status of all vestings
  • denom: Vested token's Cosmos SDK coin denom
  • vestings: list of vesting parameters

ExecuteMsgs

ApproveTollgate

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 for
  • approve: whether to approve the tollgate (either true or false)

Claim

Claim all unlocked and eligible LUNA.

{
    "claim": {}
}

QueryMsgs

VestingInfo

Query the vesting information for a recipient.

Request
{
"vesting_info": {
    "recipient": String,
}
}

Variables:

  • recipient: the address of the recipient protocol to approve the tollgate for
Response
{
    "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 for
  • active: vesting valid status
  • approved_periods: current approved tollgates, in periods
  • total_periods: total vesting periods
  • last_claimed_period: previously claimed period, start at 0
  • total_amount: total vesting amount
  • claimed_amount: amount of vested tokens claimed
  • vested_amount: amount of vested tokens still unclaimed
  • amount_per_period: claimable amount for each period

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages