Burn stBTC and Redeem BTC Process
Towards the end of a staking cycle, stakers could either withdraw stBTCs to redeem any other BTC-equivalent assets, or stake them again into any staking plan for the next staking cycle.
Redeem stBTC When Claiming YAT
As shown in the above figure, in order to redeem stBTCs while claiming YATs, the user should go through the following steps:
The user invokes the interface in the
LST_Control_Module
to claim rewards and burn stBTCs.The
LST_Control_Module
assists the user in claiming rewards from the correspondingRewardToken
contract and simultaneously requesting the withdrawal of stBTCs.After successful claiming of rewards, the
LST_Control_Module
burns the user’s stBTCs and emits an event for external systems to listen to.The
Lorenzo_monitor
program is responsible for the subsequent logic of providing BTCs to the user.Lorenzo returns BTCs to the user.
Only Claims YAT and Generates SPT
As shown in the above figure, in order to only claims YATs, the following process is taken:
The user invokes the
LST_Control_Module
to claim rewards.The
LST_Control_Module
assists the user in claiming rewards from the correspondingRewardToken
contract.The rewards are successfully claimed.
Only Use stBTC to Claim BTC
As shown in the above figure, in order to only use stBTCs to claim BTCs:
After successful burning, the
LST_Control_Module
burns the user’s stBTCs and emits an event for external systems to listen to.The
Lorenzo_monitor
program handles the subsequent logic of providing BTCs to the user.Lorenzo returns BTCs to the user.
Last updated