Staking
Code
Github Link: https://github.com/KelvinThai/Blast_LpStaking
Address
Blast testnet(Sepolia): 0x7569b1D80B7D41AB8D1A4102263c9503A3fDFb5D
Blast mainet: <coming soon>
Events, Read-Only Functions, and State-Changing Functions
OwnershipTransferred
Emitted when ownership of the contract is transferred from one address to another.
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);previousOwner
The address of the previous owner.
newOwner
The address of the new owner.
Staked
Emitted when a user stakes tokens.
event Staked(address staker, uint256 amout, uint256 package);staker
The address of the account that stakes tokens.
amount
The amount of tokens staked.
package
The package or level of staking associated with the stake.
UnStaked
Emitted when a user unstakes tokens.
event UnStaked(address staker, uint256 amount, uint256 package);staker
The address of the account that unstakes tokens.d.
amount
The amount of tokens unstaked.
package
The new admThe package or level of staking associated with the unstake.
This is a list of functions without parameters:
getPackage
[ "281", "731", "843", "1125" ]
poolInfor
[ "3040000000000000000", "0", "110000000000000000", "3860000000000000000" ]
This is a list of functions along with their parameters:
@param staker The address of the staker to query the staked balance for.
@return The amount of tokens staked by the specified staker.
Returns the balance of staked tokens for a specific staker.
@param package The identifier of the staking package.
@return The duration of the staking term for the specified package.
Returns the term duration for a given staking package.
@param staker The address of the staker to retrieve stake information for.
@return An array of structs containing details about each stake made by the specified staker, including the amount staked, start time, release date, reward debt, and staking package..
Retrieves information about stakes made by a specific staker.
@param staker The address of the staker to retrieve the number of stakes for.
@return The number of stakes made by the specified staker.
Retrieves the number of stakes made by a specific staker.
@param staker The address of the staker to retrieve the unstaked balance for.
@return The amount of tokens that are currently unstaked for the specified staker.
Retrieves the balance of unstaked tokens for a specific staker.
Allows the current owner to relinquish control of the contract.
@param package The identifier of the staking package to set the APR for.
@param apr The Annual Percentage Rate (APR) to set for the specified staking package.
Sets the APR (Annual Percentage Rate) for a specific staking package.
@param package The identifier of the staking package to stake tokens into.
@param amount The amount of tokens to stake.
Stakes a specified amount of tokens into a particular staking package.
@param newOwner The address of the new owner.
Transfers ownership of the contract to a new owner.
@param index The index of the staking position to unstake tokens from.
Unstakes tokens from a specific staking index.
Last updated