Master Smart Contract
Stake:
The user can stake and decide on which chain the user needs the LST. Dexponent offers LST on two types of chains:
Ethereum: LST is clETH.
L2 Chains (eg. Arbitrum): LST is wclETH.
Once the user wants to stake, the respective stake/ stakeForWCLETH function is called:
The minimum amount to stake is checked.
If the ISC already exists - the ISC balance is incremented. Else, a new ISC is created.
ETH is sent to this ISC immediately.
If the user chooses to get clETH, clETH is minted and deposited in the user’s wallet.
If the user chooses to get wclETH, clETH is minted and locked on ISC, and wclETH is minted and sent to the user's wallet on the chosen L2 chain.
Unstake
Once the user chooses to unstake and wants to exit a particular validator:
The smart contract checks if the user has enough staked balance.
clETH is transferred from the user's wallet to the ISC.
The node operator is directed to exit the particular validator.
Once the validator is exited, the user can claim the ETH from ISC. Admin does the following:
clETH from the ISC is burned.
ETH is transferred to the user’s wallet from ISC.
Rewards
The rewards are collected on ISC. Once the user claims them, Admin does the following:
LST equivalent to the claimed rewards amount is minted and sent to the user’s wallet.
Equivalent ETH is transferred from ISC to MSC. Only the unclaimed amount of rewards is present in the ISC.
Ownership Transfer
All the Admin privileges are transferred to the new address.
Last updated