This Presale contract is designed for selling ERC20 tokens during a presale event. It supports multiple cryptocurrencies like Ethereum
(ETH), USDT
, and Bitcoin
(BTC) for purchasing tokens, allowing users to buy tokens directly by paying in these currencies. The contract leverages Chainlink price feeds to calculate the token price based on real-time exchange rates, ensuring fair pricing for both users and the token issuer. It also includes key functionalities to manage the presale's phases, start and end times, and token withdrawals.
Key Features:
Multi-Currency Support:
Users can purchase tokens usingEthereum
(ETH),USDT
(stablecoin), orBitcoin
(BTC), making it convenient for different types of investors.Real-Time Price Calculation:
The contract uses Chainlink oracles to fetch the latest ETH, USDT, and BTC prices, ensuring accurate token pricing during the presale.Phase and Time Control:
The owner can control when the presale starts and ends, as well as set different phases for the presale, giving flexibility in managing the token sale.Secure Withdrawals:
The contract allows the owner to securely withdraw collected ETH, USDT, BTC, or leftover tokens from the contract at any time.Presale Pause Functionality:
The owner can pause or unpause the presale if needed, providing control in case of unexpected events or changes.Easy to Customize:
The contract is designed to be easily customizable, allowing the addition of more supported tokens in the future, enabling flexibility as your project grows.