Checkpoint module for issuing ether dividends (DividendCheckpoint.sol)
Last updated
Was this helpful?
Last updated
Was this helpful?
View Source:
↗ Extends: , , ↘ Derived Contracts: ,
DividendCheckpoint
abstract contract
Constants & Variables
Events
Arguments
Name
Type
Description
_dividendIndex
uint256
Function used to intialize the contract variables
Arguments
Name
Type
Description
_wallet
address payable
Ethereum account address to receive reclaimed dividends and tax
Init function i.e generalise function to maintain the structure of the module contract
Returns
bytes4
Arguments
Name
Type
Description
Function used to change wallet address
Arguments
Name
Type
Description
_wallet
address payable
Ethereum account address to receive reclaimed dividends and tax
Arguments
Name
Type
Description
_wallet
address payable
Return the default excluded addresses
Returns
List of excluded addresses
Arguments
Name
Type
Description
Returns the treasury wallet address
Arguments
Name
Type
Description
Creates a checkpoint on the security token
Returns
Checkpoint ID
Arguments
Name
Type
Description
Function to clear and set list of excluded addresses used for future dividends
Arguments
Name
Type
Description
_excluded
address[]
Addresses of investors
Function to set withholding tax rates for investors
Arguments
Name
Type
Description
_investors
address[]
Addresses of investors
_withholding
uint256[]
Withholding tax for individual investors (multiplied by 10**16)
Function to set withholding tax rates for investors
Arguments
Name
Type
Description
_investors
address[]
Addresses of investor
_withholding
uint256
Withholding tax for all investors (multiplied by 10**16)
Issuer can push dividends to provided addresses
Arguments
Name
Type
Description
_dividendIndex
uint256
Dividend to push
_payees
address payable[]
Addresses to which to push the dividend
Issuer can push dividends using the investor list from the security token
Arguments
Name
Type
Description
_dividendIndex
uint256
Dividend to push
_start
uint256
Index in investor list at which to start pushing dividends
_end
uint256
Index in investor list at which to stop pushing dividends
Investors can pull their own dividends
Arguments
Name
Type
Description
_dividendIndex
uint256
Dividend to pull
Internal function for paying dividends
Arguments
Name
Type
Description
_payee
address payable
Address of investor
_dividend
struct DividendCheckpointStorage.Dividend
Storage with previously issued dividends
_dividendIndex
uint256
Dividend to pay
Issuer can reclaim remaining unclaimed dividend amounts, for expired dividends
Arguments
Name
Type
Description
_dividendIndex
uint256
Dividend to reclaim
Calculate amount of dividends claimable
Returns
claim, withheld amounts
Arguments
Name
Type
Description
_dividendIndex
uint256
Dividend to calculate
_payee
address
Affected investor address
Get the index according to the checkpoint id
Returns
uint256[]
Arguments
Name
Type
Description
_checkpointId
uint256
Checkpoint id to query
Allows issuer to withdraw withheld tax
Arguments
Name
Type
Description
_dividendIndex
uint256
Dividend to withdraw from
Allows issuer to change maturity / expiry dates for dividends
Arguments
Name
Type
Description
_dividendIndex
uint256
Dividend to withdraw from
_maturity
uint256
updated maturity date
_expiry
uint256
updated expiry date
Get static dividend data
Returns
uint256[] timestamp of dividends creation
Arguments
Name
Type
Description
Get static dividend data
Returns
uint256 timestamp of dividend creation
Arguments
Name
Type
Description
_dividendIndex
uint256
Retrieves list of investors, their claim status and whether they are excluded
Returns
address[] list of investors
Arguments
Name
Type
Description
_dividendIndex
uint256
Dividend to withdraw from
Retrieves list of investors, their balances, and their current withholding tax percentage
Returns
address[] list of investors
Arguments
Name
Type
Description
_checkpointId
uint256
Checkpoint Id to query for
Checks whether an address is excluded from claiming a dividend
Returns
bool whether the address is excluded
Arguments
Name
Type
Description
_investor
address
_dividendIndex
uint256
Dividend to withdraw from
Checks whether an address has claimed a dividend
Returns
bool whether the address has claimed
Arguments
Name
Type
Description
_investor
address
_dividendIndex
uint256
Dividend to withdraw from
Return the permissions flag that are associated with this module
Returns
bytes32 array
Arguments
Name
Type
Description
⤾ overrides
⤿ Overridden Implementation(s): ,
⤿ Overridden Implementation(s): ,
⤿ Overridden Implementation(s): ,
⤾ overrides