Sample Warpswap-compatible Token Contracts
Last updated
Last updated
In this section, two Solidity smart contracts are provided which are slight modifications of two existing and popular ERC-20 compliant token contracts, being now compatible with Warpswap. Both contracts only include the basic functionality and can be further adjusted as needed.
The first contract, warpswapAuto.sol, adds liquidity to Warpswap and enables trading after the enableTrading method is called. The second contract, warpswapManual.sol, requires the deployer to manually add liquidity on Warpswap before calling enableTrading. After being launched on Warpswap, these tokens can also be made tradeable on other protocols but with possible loss of function related to transfer fees.
Both contracts are designed to work on Ethereum Mainnet by default and can easily be adjusted to be compatible with the Warpswap Protocol on other chains such as Base Mainnet. Furthermore, the second contract is fully identical to its existing counterpart and is merely included here to underscore the fact that token contracts of this type are natively supported by Warpswap, requiring no changes or adjustments on the deployer's end!