Skip to content

Commit

Permalink
modified readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aglamadrid19 committed Mar 9, 2022
1 parent c7c2cb7 commit 547a52c
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions readme.md
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 -
````

0 comments on commit 547a52c

Please sign in to comment.