astostakingproject is used for staking. Users receive an accrual of interest to their hNEAR account on demand. The resulting income can be withdrawn at any time, turning it into NEAR.
stake(&self, amount: U128)
unstake(&self, amount: U128)
deposit_stake(&self, amount: U128)
withdraw_stake(&self, amount: U128)
(stake, unstake, deposit, withdraw)
public_force_withdraw. This will lead to the withdrawal of funds from "astro-stakers.poolv1.near" and freeze the staking control for 6 epochs. Also, the first to find the problem will be paid a bonus of 1 hNEAR.
amountmust be less than the total balance of all users and the number of accumulated dividends. The method
astostakingthe contract will be called to check the storage balance. If the check is successful, the owner has received it on his account hNEAR.
recive_dividends. User will receive hNEAR =
user_balance / 1000 * apy_value / ONE_YEAR_TS * (NOW_TS - last_accrual_ts). 0 <=