Skip to content

v2.4.0-rc1

Pre-release
Pre-release
Compare
Choose a tag to compare
@rya-sge rya-sge released this 19 Mar 16:29
· 42 commits to dev since this release
2abaa06

The modifications between the version v2.3.0 and this version are not audited !!!

This intermediate release adds mainly functions to retrieve information from the snapshotModule or the ERC20BaseModule in batch for gas optimization. It is useful for:
-Dividend payment based on the user's balance (snapshot)
-Transfer restriction bases on the user's balance (vesting rule or partial lock)

snapshotModule

  • Create an interface ICMTATSnapshot with the main public functions for the SnapshotModule to make easier the calls to a contract including a snapshotModule, useful e.g. for debt payment.
  • Replace getSnapshotInfoBatch by SnapshotInfo. This function gets a user's balance specified in parameter and the total supply.
  • Add a new function SnapshotInfoBatch to get several user's balances and the total supply.

ERC20BaseModule
Add a function balanceInfo to get the balance for a list of addresses and the total supply
Useful to perform transfer restriction based on the user's balance (e.g vesting rule or partial lock).

ValidationModule
Create an internal function _validateTransferByModule which performs check with others module (PauseModule & EnforcementModule)

Other