Burn module for burning tokens and keeping track of burnt amounts (TrackedRedemption.sol)

View Source: contracts/modules/Experimental/Burn/TrackedRedemption.solโ€‹

โ†— Extends: IBurn, Module โ†˜ Derived Contracts: MockRedemptionManagerโ€‹

TrackedRedemption

Contract Members

Constants & Variables

mapping(address => uint256) internal redeemedTokens;

Events

event Redeemed(address _investor, uint256 _value);

Functions

Constructor

function (address _securityToken, address _polyToken) public nonpayable Module

Arguments

Name

Type

Description

_securityToken

address

Address of the security token

_polyToken

address

โ€‹

getInitFunction

โคพ overrides IModule.getInitFunctionโ€‹

This function returns the signature of configure function

function getInitFunction() public pure
returns(bytes4)

Arguments

Name

Type

Description

redeemTokens

To redeem tokens and track redemptions

function redeemTokens(uint256 _value) public nonpayable

Arguments

Name

Type

Description

_value

uint256

The number of tokens to redeem

getPermissions

โคพ overrides IModule.getPermissionsโ€‹

Returns the permissions flag that are associated with CountTransferManager

function getPermissions() public view
returns(bytes32[])

Arguments

Name

Type

Description