- Introduction
- Sections
The Contract to hold Pair Between Swap Tokens.
Name | Type | Description | optional |
---|---|---|---|
staking_amount | Uint128 | Total Reward Amount for staking | no |
reward_token | TokenType | Reward Token Type | no |
contract | Contract | AMMPair Contract Address Link to register staking contract | no |
Get Contract Owner Address.
Name | Type | Description | optional |
---|
{
"address": "Contract Owner Address",
}
Get Contract Config Info.
Name | Type | Description | optional |
---|
{
"reward_token": "Contract Link of Reward Token",
"lp_token": "Contract Link of LP Token",
"daily_reward_amount": "Reward Amount of Staking Contract",
"contract_owner": "Admin Address of Staking Contract,
}
Get Claimable Reward for staker.
Name | Type | Description | optional |
---|---|---|---|
staker | HumanAddr | Address to calculate claimable amount | no |
time | u128 | Time to use for calculation claimable amount | no |
key | String | Key which user setup for viewing key | no |
{
"amount": "trade count",
}
Get Staker Lp Token Information.
Name | Type | Description | optional |
---|---|---|---|
staker | HumanAddr | Address to calculate claimable amount | no |
key | String | Key which user setup for viewing key | no |
{
"staked_lp_token": "Uint128",
"total_staked_lp_token": "Uint128",
"reward_token" : "Contract"
}
Get Reward Token Balance for staker
Name | Type | Description | optional |
---|---|---|---|
staker | HumanAddr | Address to calculate claimable amount | no |
key | String | Seed which user setup for viewing key | no |
{
"amount": "Uint128",
"reward_token" : "Contract"
}
Get Reward Token Balance for staker and total Reward Liquidity
Name | Type | Description | optional |
---|---|---|---|
staker | HumanAddr | Address to calculate claimable amount | no |
key | String | Seed which user setup for viewing key | no |
{
"reward_amount": "Uint128",
"total_rewards_liquidity": "Uint128"
}
Claim reward.
Name | Type | Description | optional |
---|
{
"complete_task": {
"status": "success"
}
}
Remove amount and address from staking
Name | Type | Description | optional |
---|---|---|---|
amount | Uint128 | Amount to unstake | no |
remove_liquidity | bool | Remove form liquidity | yes |
{
"complete_task": {
"status": "success"
}
}
Set viewing key for staker
Name | Type | Description | optional |
---|---|---|---|
key | String | Seed for viewing key | no |
{
"complete_task": {
"status": "success"
}
}
Set either new reward token or update existing with emission_rate and valid to
Name | Type | Description | optional |
---|---|---|---|
reward_token | Contract | Reward Token Contract Link | no |
amount | Uint128 | Emission Rate | no |
valid_to | Uint128 | Timestamp till Reward Token is valid - milliseconds | no |
{
"complete_task": {
"status": "success"
}
}
Receive Callback.
Name | Type | Description | optional |
---|---|---|---|
from | HumanAddr | who invokes the callback | no |
msg | Message to Invoke in Pair Contract | yes | |
amount | Uint128 | amount sent | no |
{
"complete_task": {
"status": "success"
}
}
Stake amount and address
Name | Type | Description | optional |
---|---|---|---|
from | HumanAddr | who invokes the callback | no |
amount | Uint128 | amount sent | no |
|
{
"complete_task": {
"status": "success"
}
}