Developer
Last updated
Last updated
Boomswap is a fork. Developers can interact with Boomswap in the same way they use Uniswap repositories and SDKs.
The following steps were made when forking the original code:
BoomswapERC20.sol : Originally , this contract has been modified for LP name and symbol adjustments.
BoomswapPair.sol : Originally . Fee value in updated in the BoomswapPair-swap()
function at these two lines:
BoomswapFactory.sol: Formerly . Key modification includes the initialization of the state variable INIT_CODE_HASH
. The deployment of this contract requires a specified _feeToSetter
address, which has the authority to adjust the feeTo
parameter.
Retrieve the contract address and INIT_CODE_HASH
from the deployed Factory.
In , replace the existing init code hash in the pairFor
function (Remove the '0x' prefix).
Compile and deploy the IUniswapV2Router02
and BoomswapRouter.sol
contracts (previously ) using the appropriate pragma solidity version.
BoomswapRouter Deployment: Requires the _FACTORY
address and the WBMC address (formerly WETH).
Consider modifying UniswapV2Library.sol
and UniswapV2LiquidityMathLibrary.sol
fees initially at 0.3% (997/1000).
Don't subsitute WETH with WBMC. Maintain the convention usage of ETH everywhere in the code: in names like IWETH, amountETHMin, etc.
Don't forget to approve token before calling any of the following endpoints.
Use for ERC-20/ERC-20 pairs.
For WBMC pairs (WETH convention), use .
To remove liquidity, use or .
For withdrawal estimates, follow the logic in .
Quotation: Use .
Exact Output: Use | .
Exact Input: Use | .
Pair Reserves (TVL): Use .