MoC
/**
* @dev Creates or updates the amount of a StableToken redeem Request from the msg.sender
* @param stableTokenAmount Amount of StableTokens to redeem on settlement [using mocPrecision]
*/
function redeemStableTokenRequest(uint256 stableTokenAmount) public whenNotPaused() whenSettlementReady() {
settlement.addRedeemRequest(stableTokenAmount, msg.sender);
} modifier atState(MoCState.States _state) {
require(mocState.state() == _state, "Function cannot be called at this state.");
_;
} modifier atLeastState(MoCState.States _state) {
require(mocState.state() >= _state, "Function cannot be called at this state.");
_;
}Last updated