-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7c2cb7
commit 547a52c
Showing
1 changed file
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
# kingkong-swap-core | ||
### fork from uniswap-v2-core, then use hardhat to rebuild | ||
## contracts modify: | ||
1. UniswapV2Factory.sol line 7, add INIT_CODE_PAIR_HASH | ||
2. UniswapV2Pair.sol line 99, use line 100 instead, so we can receive the 0.3% fee | ||
3. UniswapV2ERC20.sol line 9 line 10, lptoken name changed | ||
```` | ||
AMM Generalizations: | ||
## deploy | ||
1. npm i | ||
2. npx hardhat node | ||
3. npx hardhat run scripts/deploy.js --network localhost | ||
- now you have factory deployed, you can set feeTo your wallet address to receive the 0.3% fee | ||
- TIP: if you modify UniswapV2Pair.sol, the INIT_CODE_PAIR_HASH will be changed, copy the hex into UniswapV2Library.sol of kingkong-swap-periphery | ||
- next step turn to kingkong-swap-periphery | ||
0 - Liquidity Router | ||
0 - AddLiquidity / RemoveLiquidity of any tokens listed on the platform does not charge a fee | ||
1 - New SpamList to block AddLiquidity / RemoveLiquidity of Scam Tokens. | ||
2 - New Failsafe to extract liquidity from Scam Tokens to protect and refund Liquidity Providers. | ||
3 - New Centralized Liquidity Pools deployments and Switch to become permission-less. | ||
4 - | ||
1 - Swap Router | ||
0 - Swap tokens on UFF AMM has a fee of 0.3% (plus any fees charge by the token project) | ||
1 - New ApproveList to allow only Partner Routers (3rd Party Integrations). | ||
2 - New SpamList to block Swap of Scam Tokens | ||
3 - | ||
```` |