Burn stBTC and Redeem BTC Process
Last updated
Last updated
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.
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 corresponding RewardToken
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.
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 corresponding RewardToken
contract.
The rewards are successfully claimed.
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.