Vesting Token

Smart Contract
DeFi
一个关于锁定质押 APT 的示例,其中赞助者可以为接收者创建质押 APT 的锁定。

This code describes a framework for managing staked locked tokens using the Amnis liquid staking protocol. Sponsors can set up locked tokens for recipients, specifying the amount and lock expiration. These APTs are automatically staked as liquid staking tokens, remaining locked until the specified date. Sponsors have the ability to adjust or revoke locks, offering flexibility in managing the terms. Recipients can claim staking rewards anytime and access the original staked amount upon lock expiration. The system supports secure and adjustable staking arrangements, allowing for the efficient management of locked funds and rewards within the Amnis ecosystem.

This code uses the Amnis protocol for liquid staking. More information at https://amnis.finance/.