Staking
The Staking Contract contains the logic for LP Token staking and reward distribution. ANC tokens allocated for as liquidity incentives are distributed pro-rata to stakers of the ANC-UST Terraswap pair LP token.
Config
Name | Type | Description |
| CanonicalAddr | Contract address of Anchor Token (ANC) |
| CanonicalAddr | Contract address of ANC-UST Terraswap pair LP token |
| Vec<(u64, u64, Uint128)> | ANC distribution schedule for LP token stakers (start block [block], end block [block], distribution amount) |
InstantiateMsg
Name | Type | Description |
| String | Contract address of Anchor Token (ANC) |
| String | Contract address of ANC-UST Terraswap pair LP token |
| Vec<(u64, u64, Uint128)> | ANC distribution schedule for LP token stakers (start block [block], end block [block], distribution amount) |
ExecuteMsg
Receive
Receive
Can be called during a CW20 token transfer when the Staking contract is the recipient. Allows the token transfer to execute a Receive Hook as a subsequent action within the same transaction.
Name | Type | Description |
| String | Sender of the token transfer |
| Uint128 | Amount of tokens received |
| Binary | Base64-encoded string of JSON of Receive Hook |
Unbond
Unbond
Unbonds specified amount of ANC-UST Terraswap LP tokens and transfers them to the message sender.
Name | Type | Description |
| Uint128 | Amount of LP tokens to unbond |
Withdraw
Withdraw
Withdraws user's accrued LP token staking rewards.
Name | Type | Description |
MigrateStaking
MigrateStaking
Migrates ANC LP incentives to a new LP token staking contract.
Key | Type | Description |
| String | Contract address of new LP staking contract |
Receive Hooks
Bond
Bond
WARNING
Sending LP tokens to the Staking contract without issuing this hook will lead to PERMANENT LOSS OF FUNDS.
Bonds LP tokens of the ANC-UST Terraswap pair.
Name | Type | Description |
QueryMsg
Config
Config
Gets the Staking contract configuration.
Name | Type | Description |
ConfigResponse
ConfigResponse
Name | Type | Description |
| String | Contract address of Anchor Token (ANC) |
| String | Contract address of ANC-UST Terraswap pair LP token |
| Vec<(u64, u64, Uint128)> | ANC distribution schedule for LP token stakers (start block [block], end block [block], amount) |
State
State
Gets state information for the specified block number.
Name | Type | Description |
| u64 | Current block number [block] |
* = optional
StateResponse
StateResponse
Name | Type | Description |
| u64 | Block number when rewards where last distributed [block] |
| Uint128 | Total amount of bonded LP tokens by all stakers |
| Decimal | Global reward index for LP staking rewards |
StakerInfo
StakerInfo
Gets reward information for the specified LP token staker.
Name | Type | Description |
| String | Address of LP token staker |
| u64 | Current block number [block] |
* = optional
StakerInfoResponse
StakerInfoResponse
Name | Type | Description |
| String | Address of LP token staker |
| Decimal | Reward index of staker |
| Uint128 | Amount of LP tokens bonded by staker |
| Uint128 | Amount of pending rewards of staker |
Last updated