Burn module for burning tokens and keeping track of burnt amounts (MockRedemptionManager.sol)
View Source: contracts/mocks/MockRedemptionManager.sol
↗ Extends: TrackedRedemption
MockRedemptionManager
Contract Members
Constants & Variables
mapping(address => uint256) internal tokenToRedeem;
mapping(address => mapping(bytes32 => uint256)) internal redeemedTokensByPartition;
Events
event RedeemedTokenByOwner(address _investor, address _byWhoom, uint256 _value);
event RedeemedTokensByPartition(address indexed _investor, address indexed _operator, bytes32 _partition, uint256 _value, bytes _data, bytes _operatorData);
Functions
Constructor
function (address _securityToken, address _polyToken) public nonpayable TrackedRedemption
Arguments
Name
Type
Description
_securityToken
address
Address of the security token
_polyToken
address
transferToRedeem
Transfers tokens to Module to burn
function transferToRedeem(uint256 _value) public nonpayable
Arguments
Name
Type
Description
_value
uint256
The number of tokens to redeem
redeemTokenByOwner
Used to redeem tokens by the module
function redeemTokenByOwner(uint256 _value) public nonpayable
Arguments
Name
Type
Description
_value
uint256
The number of tokens to redeem
redeemTokensByPartition
To redeem tokens and track redemptions
function redeemTokensByPartition(uint256 _value, bytes32 _partition, bytes _data) external nonpayable
Arguments
Name
Type
Description
_value
uint256
The number of tokens to redeem
_partition
bytes32
Partition from which balance will be deducted
_data
bytes
Extra data parmeter pass to do some offchain operation
operatorRedeemTokensByPartition
To redeem tokens and track redemptions
function operatorRedeemTokensByPartition(uint256 _value, bytes32 _partition, bytes _data, bytes _operatorData) external nonpayable
Arguments
Name
Type
Description
_value
uint256
The number of tokens to redeem
_partition
bytes32
Partition from which balance will be deducted
_data
bytes
Extra data parmeter pass to do some offchain operation
_operatorData
bytes
Data to log the operator call
operatorTransferToRedeem
function operatorTransferToRedeem(uint256 _value, bytes32 _partition, bytes _data, bytes _operatorData) external nonpayable
Arguments
Name
Type
Description
_value
uint256
_partition
bytes32
_data
bytes
_operatorData
bytes
Last updated
Was this helpful?