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/.