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:

  1. The user invokes the interface in the LST_Control_Module to claim rewards and burn stBTCs.

  2. The LST_Control_Module assists the user in claiming rewards from the corresponding RewardToken contract and simultaneously requesting the withdrawal of stBTCs.

  3. After successful claiming of rewards, the LST_Control_Module burns the user’s stBTCs and emits an event for external systems to listen to.

  4. The Lorenzo_monitor program is responsible for the subsequent logic of providing BTCs to the user.

  5. 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:

  1. The user invokes the LST_Control_Module to claim rewards.

  2. The LST_Control_Module assists the user in claiming rewards from the corresponding RewardToken contract.

  3. 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:

  1. After successful burning, the LST_Control_Module burns the user’s stBTCs and emits an event for external systems to listen to.

  2. The Lorenzo_monitor program handles the subsequent logic of providing BTCs to the user.

  3. Lorenzo returns BTCs to the user.

Last updated