Fee Collector

ITTUFeeCollector

This contract handles TokenTable service fee calculation.

DefaultFeeSet

event DefaultFeeSet(uint256 bips)

CustomFeeSet

event CustomFeeSet(address unlockerAddress, uint256 bips)

getFee

function getFee(address unlockerAddress, uint256 tokenTransferred) external view returns (uint256 tokensCollected)

Returns the amount of fees to collect.

Parameters

NameTypeDescription

unlockerAddress

address

The address of the Unlocker. Used to fetch pricing.

tokenTransferred

uint256

The number of tokens transferred.

Return Values

NameTypeDescription

tokensCollected

uint256

The number of tokens to collect as fees.

Last updated