Function: redeem(uint256 shares, address receiver, address _owner)
This function is for redeeming the token by burning the share.
Inputs
sharesControl: Completely controlled by the caller.
Constraints: The
maxRedeemof the given_ownermust not be bigger than the givensharesinput.Impact: Amount of shares to redeem.
receiverControl: Completely controlled by the caller.
Constraints: Must have enough shares to redeem.
Impact: Address to transfer the token.
_ownerControl: Completely controlled by the caller.
Constraints: The
maxRedeemof the given_ownermust not be bigger than the givensharesinput.Impact: Address of the share owner.