LogoLogo
  • Introduction
  • For Founders
    • TokenTable Airdrop Pro
    • TokenTable Airdrop Lite
      • Getting Started
      • Set Up the Project
      • Deposit Tokens
      • Publish the Project
    • TokenTable Unlocker
    • Custom Token Claiming Portal
  • For Token Recipients
    • Airdrop Token Claiming
    • Unlocker Token Claiming
  • For Developers
    • Airdrop
      • EVM
      • TON
        • Getting Started
        • Architecture
        • Usage
        • Smart Contract Schema
        • Integration
    • Unlocker
      • EVM
        • APIs
          • Core
            • Unlocker
              • Data Models
            • FutureToken
            • TrackerToken
          • Utilities
            • Deployer
            • External Hook
            • Fee Collector
            • Versionable
        • SDK
      • Starknet
  • SUPPORT
    • FAQ
    • Feedback and Troubleshooting
Powered by GitBook
On this page
  • ITTUFeeCollector
  • DefaultFeeSet
  • CustomFeeSet
  • getFee

Was this helpful?

  1. For Developers
  2. Unlocker
  3. EVM
  4. APIs
  5. Utilities

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

Name
Type
Description

unlockerAddress

address

The address of the Unlocker. Used to fetch pricing.

tokenTransferred

uint256

The number of tokens transferred.

Return Values

Name
Type
Description

tokensCollected

uint256

The number of tokens to collect as fees.

PreviousExternal HookNextVersionable

Last updated 7 months ago

Was this helpful?