Skip to content

classzz/czz-v1-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

czz-v1-contracts

v0.20

/////////////mainnet//

eth eczz: 0x150BbCfF6b1B4D528b48f1A300585Dea0b6490B6 routerv7: 0xc0B274b3979bbDB8BA485Bd3264ec58b81c28202

routerv8forsec: 0xeCfdd939e49eDab4Ce00e2b8A9A96C9d07122A04 securityPollv2: 0xBFc45060B171849Db8e63d547c60D906A3E2eb37

Uniswap factory: 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f routerv2: 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D weth: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 initcode: 0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f

SuShi factory: 0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac routerv2: 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F weth: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 initcode: 0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303

heco
hczz:
0x112489c758D405874e9Ece0586FD50B315216fcA
routerv7:
0x326bC6eF2B18e9B20647E096EE2c0889051Bb9B6

routerv6forsec:
0x30d0e3F30D527373a27A2177fAcb4bdCc046DC1C
securityPoll:
0x6004Cc1bCA7FF22b60A62b641Ccce0e5d319009B

routerv7forsec:
0x5c812Bc89Eb2ebC69bC0f1079D987Ebc64137f19

routerv8forsec:
0x91D09DfbD481B8be82B050840A62e98C67B9F013
securityPollv2:
0xABe6ED40D861ee39Aa8B21a6f8A554fECb0D32a5

Mdex:
factory:
0xb0b670fc1F7724119963018DB0BfA86aDb22d941
router2: 
0xED7d5F38C79115ca12fe6C0041abb22F0A06C300
wht:
0x5545153ccfca01fbd7dd11c0b23ba694d9509a6f
initcode:
0x2ad889f82040abccb2649ea6a874796c1601fb67f91a747a80e08860c73ddf24

DogeSwap:
factory:
0x0419082bb45f47Fe5c530Ea489e16478819910F3
router2: 
0x539A9Fbb81D1D2DC805c698B55C8DF81cbA6b350
wht:
0x5545153ccfca01fbd7dd11c0b23ba694d9509a6f
initcode:
0x06d32be9fe9b1c75a1ce7e2b362c735bcb731596b9330b99412fde52d753e3f0




bsc bczz: 0x2Fb9376cFf6fb7f5fe99665aE1Ec2FdDD5099134 routerv7: 0x8956e029Ea82Dce443aF870546Ee6A29115414ea

routerv6forsec: 0xa5D17B93f4156afd96be9f5B40888ffb47fA4bc1 securityPoll: 0xaf68A5ca2671B143b4940D1dfFdB2FEeF58Ba20A

routerv7forsec: 0x69E2b4e150ecC2b938d1F702BB274bDE0E5676de

routerv8forsec: 0xf75916f1D4278c784FC936f99Ad4E29394Db2D46 securityPollv2: 0x0929e604c4Cdd5361D2037D5b70c44477C0ca3F2

Pancakeswap: factory: 0xBCfCcbde45cE874adCB698cC183deBcF17952812 router2: 0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F wbnb: 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c initcode: 0xd0d4c4cd0848c93cb4fd1f498d7013ee6bfb25783ea21593d5834f5d250ece66

Pancakeswap-v2: factory: 0xca143ce32fe78f1f7019d7d551a6402fc5350c73 router2: 0x10ed43c718714eb63d5aa57b78b54704e256024e wbnb: 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c initcode: 0x00fb7f630766e6a796048ea87d01acd3068e8ff67d078148a3fa3f4a84f69bd5

Bakery: factory: 0x01bf7c66c6bd861915cdaae475042d3c4bae16a7 router2: 0xcde540d7eafe93ac5fe6233bee57e1270d3e330f wbnb: 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c initcode: 0xe2e87433120e32c4738a7d8f3271f3d872cbe16241d67537139158d90bac61d3

dogeswap: factory: 0x0419082bb45f47fe5c530ea489e16478819910f3 router2: 0xc3e8b0ab3c1c24e224c11b50727874167203bd9f wbnb: 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c initcode: 0x3c03449b95702fe55873827b63eef53e57bd07133fcb8c3faa1844f3a4d9ae9a

OKChain

OCZZ:
0x3Ea57B8011ca6805D00B948703cc4B654826A0de

routerv7:
0x65A964fC724B6e8Dc6747cC05e4D1Fbe0D41A05a

routerv8forsec:
0xF0f50ce5054289a178fb45Ab2E373899580d12bf
securityPollv2:
0x150BbCfF6b1B4D528b48f1A300585Dea0b6490B6

//////////////////// test net 1.contract address heco(test-net):

    token-mdx:
    0xD5974f172d6C5ecF5fdF3BC5354cd4824873802D
	token-hczz-new:
    0x5E8fb243AD8B9c10B2211a8C6d0D21231A3f9039

	DogeSwap:
    factory:
    0x0419082bb45f47Fe5c530Ea489e16478819910F3
    router2: 
    0x539A9Fbb81D1D2DC805c698B55C8DF81cbA6b350
	wht:
    0xA9e7417c676F70E5a13c919e78FB1097166568C5

	Mdex:
    factory:
    0x0419082bb45f47Fe5c530Ea489e16478819910F3
    router2: 
    0x539A9Fbb81D1D2DC805c698B55C8DF81cbA6b350
	wht:
    0xA9e7417c676F70E5a13c919e78FB1097166568C5

    routerv0.1: our-contract
    0x64Dd2D13dA5469a50D747B9CE35a5EcB4865d054

	routerv0.4:
	0xD1DD6AC27E805c8DE76e30dec1142d023F4e45A6

	routerv0.5:
	0x8f168bce7C81e6E24743489374B4CA183cAc9915

	routerv0.6:
	0x8147a03eab321B571e709e31336670fCe14f47BB


	routerv6forsec:
	0x486F0e7D58A412fB9c2259A03F5D2246cFf87942
	securityPoll:
	0x593b020b4b4f4E2503f301f6a874Fcf6Ad8436E6

	routerv7forsec:
	0x480743272D64acCE6dd1a7FF48FC93754B643EA4
	securityPollv2:
	0x26E454e6A349db5513E9eB1de18F042988c95Ea3

ETH ropsten: czzuser: 0x03B4870f6Bb10DDc16f0B6827Aa033D4374678E2 eczz: 0x0041a3a63a5844f878b1c08f9d3c28e17f3ce14a

Uniswap
factory:
0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f
routerv2:
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
weth:
0xc778417E063141139Fce010982780140Aa0cD5Ab


SushiSwap
factory:
0xc35DADB65012eC5796536bD9864eD8773aBc74C4
routerv2:
0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506
weth:
0xc778417e063141139fce010982780140aa0cd5ab

routerV0.1:
0x6aE86268312A815831A5cfe35187d1f3D2B6dE76

routerV0.:
0x04e683b0ba2531c80ECf996DE7Ce34c10d190976
routerv0.5:
0xE75b15C1ffA62C20d750594E61Ad703f8a4324C3
routerv0.6:
0x747c17568F25B88779d9d48dE81A9B117638dA81

BSC:
	bczz:
	0x507B8283aD724aA06dF09Df3d1D6eb3816EE51d5

	Pancakeswap
	factory:
	0x6725F303b657a9451d8BA641348b6761A6CC7a17
	routerv2:
	0xD99D1c33F9fC3444f8101754aBC46c52416550D1
	BNB:
	0xae13d989dac2f0debff460ac112a837c89baa7cd
	INIT_CODE_PAIR_HASH:
	0xd0d4c4cd0848c93cb4fd1f498d7013ee6bfb25783ea21593d5834f5d250ece66

	routerv0.1:
	0xb39E84c6AD0574af30fb5f0185ad2d4f2DBa4262


	routerv0.4:
	0x7c1DD2600F4A72f5D05b73444397795522e1B685

	routerv0.5:
	0xb4268E74d9ea977F292CC66b0AdF8dd9E2EF2EAA

	routerv0.6:
	0x498746AE0964f7811a695EE1096990A6Eceb7757

	routerv6forsec:
	0x49db259FB8a925dd218c3947365a3A048D4B4638
	securityPoll:
	0x994C02AFcDDab4490A9fDdc9E389181Fa9133E70

	routerv7forsec:
	0xB07329C0CEAa211120F4445da6a149743713762c
	securityPollv2:
	0x7787CcDA4c2522BD4fE1De9736a22daFC8B57c50


ETH test token:

WBTC 
0x103C9FfFf6FBD142a1bb12F49E3387Bd7a211C74

SUSHI
0x1193e93d967eD48ACf6e5e208da7e2F4f9B12910

USDC
0xc251D7983fb00917DF80BC336692d53B6b085fD6

DAI
0x18f419C0B1AC87d42CEdDf2326311153c7ea3886

USDT
0xbBae92Ec8B158Bfce96E4d3Ee21Cca3aAA92849c

WISE
0x568911F155c68c5b5eEfd10605916074168c0E56

YFI
0x03a3804E0B06d60596D3ff921F42c723bB14D81E
 
LINK
0x62Fa3e051Acd2fe0Bb7DCa4465bac2d0Cd45C0c2

SNX
0x743e211c78Bc00D615Fd3f6fB7C372ce5EDC719a

CORE
0xf09885a2dc51bD8e34BF0072A483e1a25523e7Ee

DPI
0xEc93eff8a951aa52B3ab659bEF27fac9b0a7F00B

FRAX
0x2135847305c331B7370A7Aba8a7b6699C885f170


HECO test token:

HBTC
0x9246Cd4bF4C6D520BAEaE347B4eC038DDB508211

ETH 
0xB17eFe3Cd100537803286180E3952447311C84C1

USDT
0x4E2aD2fe93e45143B97A8f926036992f17B572dc

HDOT
0xED008F8e7C9B99cD785b6A48a37e787bFd2b198f

UNI
0x3ACd8a4739a6BD09346BB3886c40656B9aCbB51C

HLTC
0x0b8F6C48fc24696E6AA88E81109111803c5554eF

LINK 
0xce953b2345bC99c54a6d63c86DC6a0ab8e348C1E

HBCH 
0x9EedBe6500AD7cEF0d9413EE353D2939068AD03f

HFIL
0x720b988238d48a7Ff52ac1258469542E244f0E88

AAVE
0x983830f32d67172Cad74870D82b130E093fb38A9

HBSV
0x7Ed4E02D93598460c868639221F226F748CeF2D3

SNX
0xaDa3454E88C88e9721675c23CeeB5Fb2f9c1C54A

HUSD 
0xF8DE1e055db67bc0d6e736767B0524EB6b2E9672

MDX
0xB4A61f37E2E9FA080A001B36D9C5f8F0BE21831E


BSC test token:
CAKE 
0xfCcD0a3De337004B4Ea466AbE775dc7bdC292785

BUSD 
0xF6CbE7c757d418A40676D1c24164c75F13F798F1

ETH 
0x7Cbe557AfedD0d9eEC222015b4EC45E2e963Fc7A

USDT 
0x550712C399CdF5D8e4ecF46d37cd57985E0D6BA8

BTCB 
0xC2f8494f87e10409ACF56aA1fFfAd4F6C4388712

AUTO 
0xB55c0fF37E2bA3Fd36AA03881373495A563E723c

BSCX 
0x3cd8C4c9F2E2a6DE04D8DB0B599a72ddf8A27fb2

DOT 
0xEe1B8bEBfd89243cA06FbB17280586cfc772ab3c

BDO
0x32640fcD018BD2fb7Cff2cAA5e9E0964AFaf2658

UST 
0x1fd7b2ad8eccc3698b50AF557a653b19e9963e7c

VAI 
0xE679874Ee04e3aCD9257c12A9D9b13eD862d0080

UNI 
0x122428d90cB92cBdB1FD640fdb162BB96D21cB2a

ZSEED 
0xb11815b54CbF02A4ba2Aa8098a87d2f376A01cC5

LINK 
0xcDDfce5E74b08fdf5E5d8c6825ecBF62c17a737E

USDC 
0x3eea5Be526d491635d3362A56327d9d87a5E676B

DAI 
0x1787b0a4Bc4F1D0524902c0121Ad0c3848397f26

BAND  
0x481c11Cb084f7fFe093F5E6432f2ddBf3ef16b3F

WOOP 
0x17657Ce8E2b2F18279bf0a46d32135B1E953c5b9

XVS
0xFF421AaC4B931A98596c584750E57004972cED4C









2.
=======Router function

2.1

approve: Authorization to swap user tokens function approve(address spender, uint256 amount) public virtual override returns (bool)

contact address: token-user

param: spender: swap user address amount: allow swap amount


2.2

swap_burn_get_amount: get swap token rate
function swap_burn_get_amount(uint amountIn, address[] memory path, address routerAddr) public view returns (uint[] memory amounts)

contact address: routerV4

param: amountIn swap token amount path: token path array routerAddr: swap address


2.3

swapAndBurnWithPath: Token swap for hczztoken and burn hczz for cross mainnet

function swapAndBurnWithPath( uint _amountIn, uint _amountOutMin, uint256 ntype, string memory toToken, address routerAddr, address[] memory path, uint deadline) payable public

contact address: routerV4

param: _amountIn: The amount of token to transfer

_amountOutMin: The minimum amount of tokens to be transferred


fromToken: token address  (HT:token-mdx   ETH:token-user)

ntype:   0:czz   1: eth  2: heco  3: bsc


toToken:  The address of the token contract to be transferred to

routerAddr: swap address


2.4

swapAndBurnEthWithPath: uniswap swap for eczztoken and burn eczz for cross mainnet function swapAndBurnEthWithPath( uint _amountInMin, uint256 ntype, string memory toToken, address routerAddr, address[] memory path, uint deadline) payable public

Token address: routerV4

param:

_amountInMin: The minimum amount of tokens to be transferred

ntype:   0:czz   1: eth  2: heco  3: bsc


toToken:  The address of the token contract to be transferred to

routerAddr: swap address

WethAddr: ETH->weth address or HT->wth address


2.5

swapTokenWithPath: function swapTokenWithPath(address _to, uint _amountIn, uint256 mid, uint256 gas, address routerAddr, address[] memory userPath, address[] memory gasPath, uint deadline) payable public


2.6

swapTokenForEthWithPath: ERC20 token swap for ETH function swapTokenForEthWithPath(address _to, uint _amountIn, uint256 mid, uint256 gas, address routerAddr, address[] memory path, uint deadline) payable public


2.7

swap_burn_get_getReserves: get pair reserves function swap_burn_get_getReserves(address factory, address tokenA, address tokenB) public view isManager returns (uint reserveA, uint reserveB)

Toden address: routerV6

param: factory: tokenA:
tokenB:




========router for security :support ht bsc

2.8

submitOrderWithPath: support ht bsc

function submitOrderWithPath(address _to, uint _amountIn, uint256 mid, uint256 gas, address routerAddr, address[] memory userPath, address[] memory gasPath, uint deadline) public

Toden address: routerV6




2.9

submitOrderEthWithPath: support ht bsc

function submitOrderEthWithPath(address _to, uint _amountIn, uint256 mid, uint256 gas, address routerAddr, address[] memory userPath, uint deadline) public

Toden address: routerV6



3.0

mintAndTransfer:support ht bsc

function mintAndTransfer(uint256 mid) 

Toden address: routerV6


3.1

mintAndTransferEth:support ht bsc

function mintAndTransferHt(uint256 mid)

Toden address: routerV6


3.2 orderCancelWithPath: function orderCancelWithPath(uint256 mid, address[] memory path, address routerAddr)

3.2 orderCancelEthWithPath: function orderCancelEthWithPath(uint256 mid, address[] memory path, address routerAddr)



========securityPoll:  support ht bsc

1.1
deposit:Deposit LP tokens to Pool.  _pid = 0  (0: czztoken)
	function deposit(uint256 _pid, uint256 _amount) 

2.2
withdraw:Withdraw LP tokens from Pool.  _pid = 0  (0: czztoken)
	function withdraw(uint256 _pid, uint256 _amount)

3.3
pending: View function to see pending on frontend.  _pid = 0  (0: czztoken)
	function pending(uint256 _pid, address _user) external view returns 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published