Function: unstake(uint256 steUSDIn, uint256 mineUSDOut, address beneficiary)
Allows users to withdraw their staked eUSD tokens.
Inputs
steUSDInConstraints: Should not be zero.
Impact: The amount of steUSD tokens to unstake.
mineUSDOutConstraints: N/A.
Impact: The minimum acceptable amount of eUSD tokens to receive.
beneficiaryConstraints: N/A.
Impact: The beneficiary of the eUSD tokens.
Branches and code coverage (including function calls)
Intended branches
Unstake tokens successfully.
Negative behavior
The contract call is reverted when
eUSDOutis less thanmineUSDOut.
Function call analysis
unstake -> _unstake(steUSDIn, mineUSDOut, beneficiary)External/Internal? Internal.
Argument control?
steUSDIn,mineUSDOut, andbeneficiary.Impact: N/A.