Skip to main content

VestingTokenFactory

Git Source Inherits: FactoryFeeManager Authors: JA (@ubinatus) v3, Klaus Hott (@Janther) v2 The VestingTokenFactory contract can be used to create vesting contracts for any ERC20 token.

State Variables

implementation

The address that will be used as a delegate call target for VestingTokens.

_salt

It will be used as the salt for create2

_vestingTokensByUnderlyingToken

Maps underlyingTokens to an array of VestingTokens.

Functions

constructor

*Creates a vesting token factory contract. Requirements:
  • implementationAddress has to be a contract.
  • feeCollectorAddress can’t be address 0x0.
  • transferFeePercentage must be within minTransferFee and maxTransferFee.*
Parameters

nextSalt

Increments the salt one step. In the rare case that create2 fails, this function can be used to skip that particular salt.

createVestingToken

Creates new VestingToken contracts. Requirements:
  • underlyingTokenAddress cannot be the zero address.
  • timestamps must be given in ascending order.
  • percentages must be given in ascending order and the last one must always be 1 eth, where 1 eth equals to 100%.
Parameters

vestingTokens

Exposes the whole array that _vestingTokensByUnderlyingToken maps.

Events

VestingTokenCreated

Parameters