The VEN token contract adheres to the ERC20 standard.
The VENSale contract is utilized for the sale and distribution of VEN tokens.
The VeChain (VEN) Token is a standard smart contract with functions such as buy, exchange rate, finalize, mint token, seal, and VENSale.
VEN Token Contract: This contract implements the ERC20 interface and additional functionality specific to the VEN token. It includes features like claiming bonuses, minting tokens, offering bonuses, sealing the contract, etc. Notable functions include mint, seal, offerBonus, claimBonus, transfer, and transferFrom.
VENSale Contract: This contract manages the sale of VEN tokens. It defines various stages (Stage enum) such as Created, Initialized, Early, Normal, Closed, and Finalized. The sale has a start and end time (startTime and endTime) and includes logic for calculating the exchange rate (exchange-rate), determining the current stage (stage), buying tokens (buy), offering tokens to channels (offerToChannel), initializing the sale (initialize), and finalizing the sale (finalize).
Overall, this contract facilitates the sale of VEN tokens in different stages, manages ownership and token functionality, and ensures safe mathematical operations. It adheres to the ERC20 standard for token functionality.