Staking
The Staking Contract contains the logic for LP Token staking and reward distribution. Staking rewards for LP stakers come from the new VKR tokens generated at each block by the Factory Contract and are split between all combined staking pools.
InstantiateMsg
Key | Type | Description |
| String | Contract address of the Valkyrie Token (VKR) |
| String | Terraswap pairs (TerraUSD) |
| String | Contract address of the LP token to be staked |
ExecuteMsg
Receive
Receive
Can be called during a CW20 token transfer when the Mint contract is the recipient. Allows the token transfer to execute a Receive Hook as a subsequent action within the same transaction.
Key | Type | Description |
| Uint128 | Token amount received |
| Addr | Sender of token transaction |
| Binary | Base64-encoded JSON of Receive Hook message |
* = optional
Unbond
Unbond
Users can issue the unbond message at any time to remove their staked LP tokens from a staking position.
Key | Type | Description |
| Uint128 | Amount of LP tokens to unbond |
Withdraw
Withdraw
Withdraws a user's rewards for a specific staking position.
AutoStake
AutoStake
When providing liquidity in Valkyrie Protocol, asset pair is first sent to Staking contract, and it acts as a relay. When defined assets are sent to the contract, the contract provides liquidity to receive LP tokens and starts AutoStakeHook
Note: Executor of the transaction should first increase allowance to spend CW20 tokens
Key | Type | Description |
| Uint128 | Amount of VKR token that are provided into liquidity pool |
| Decimal | Maximum price slippage allowed to execute this transaction |
* = optional
AutoStakeHook
AutoStakeHook
[INTERNAL]
Hook to stake the minted LP tokens from providing liquidity.
Key | Type | Description |
| String | Address of the staker |
| Uint128 | LP staking balance of the staker before this transaction |
Receive Hooks
Bond
Bond
WARNING
If you send LP Tokens to the Staking contract without issuing this hook, they will not be staked and will BE LOST FOREVER.
Can be issued when the user sends LP Tokens to the Staking contract. The LP token must be recognized by the staking pool of the specified asset token.
DepositReward
DepositReward
QueryMsg
Config
Config
State
State
StakerInfo
StakerInfo
Key | Type | Description |
| String | Wallet address of Lp staker |
Response
Key | Type | Description |
| String | Address of the staker |
| Uint128 | Amount of LP or sLP tokens staked |
| Uint128 | Amount of reward that are not claimed |
Last updated