tokenlon-contracts

所属分类:区块链开发
开发工具:Solidity
文件大小:2342KB
下载次数:0
上传日期:2023-04-11 08:02:41
上 传 者sh-1993
说明:  tokenlon合约,tokenlon是一种基于区块链技术的去中心化交易和支付结算协议。访问[https://to...](https://tokenlon.im)
(Tokenlon is a decentralized exchange and payment settlement protocol based on blockchain technology. Visit <https://tokenlon.im/>)

文件列表:
tokenlon-contracts-5 (0, 2023-05-25)
tokenlon-contracts-5\.prettierignore (149, 2023-05-25)
tokenlon-contracts-5\.prettierrc (469, 2023-05-25)
tokenlon-contracts-5\.solhint.json (819, 2023-05-25)
tokenlon-contracts-5\.solhintignore (20, 2023-05-25)
tokenlon-contracts-5\.yarnrc (20, 2023-05-25)
tokenlon-contracts-5\LICENSE.md (1067, 2023-05-25)
tokenlon-contracts-5\audits (0, 2023-05-25)
tokenlon-contracts-5\audits\PeckShield-Audit-Report-Tokenlon-LimitOrder-v1.0.pdf (365431, 2023-05-25)
tokenlon-contracts-5\audits\PeckShield-Audit-Report-TokenlonV5.3-v1.0.pdf (317792, 2023-05-25)
tokenlon-contracts-5\audits\PeckShield-Audit-Report-Tokenlonv5.2-v1.0.pdf (375876, 2023-05-25)
tokenlon-contracts-5\audits\PeckShield-Audit-TokenlonV5-v1.0.pdf (441738, 2023-05-25)
tokenlon-contracts-5\audits\PeckShield-Audit-TokenlonV5-v1.0rc.pdf (476028, 2023-05-25)
tokenlon-contracts-5\audits\Tokenlon-v5.3.1-Smart-Contract-Audit-Report-Decurity.pdf (223722, 2023-05-25)
tokenlon-contracts-5\contracts (0, 2023-05-25)
tokenlon-contracts-5\contracts\AMMQuoter.sol (19880, 2023-05-25)
tokenlon-contracts-5\contracts\AMMWrapper.sol (17042, 2023-05-25)
tokenlon-contracts-5\contracts\AMMWrapperWithPath.sol (15987, 2023-05-25)
tokenlon-contracts-5\contracts\AllowanceTarget.sol (2324, 2023-05-25)
tokenlon-contracts-5\contracts\L2Deposit.sol (5404, 2023-05-25)
tokenlon-contracts-5\contracts\LONStaking.sol (12825, 2023-05-25)
tokenlon-contracts-5\contracts\LPStakingRewards.sol (6213, 2023-05-25)
tokenlon-contracts-5\contracts\LimitOrder.sol (24220, 2023-05-25)
tokenlon-contracts-5\contracts\Lon.sol (2867, 2023-05-25)
tokenlon-contracts-5\contracts\MarketMakerProxy.sol (3098, 2023-05-25)
tokenlon-contracts-5\contracts\MerkleRedeem.sol (3899, 2023-05-25)
tokenlon-contracts-5\contracts\PermanentStorage.sol (13583, 2023-05-25)
tokenlon-contracts-5\contracts\ProxyPermanentStorage.sol (355, 2023-05-25)
tokenlon-contracts-5\contracts\RFQ.sol (5802, 2023-05-25)
tokenlon-contracts-5\contracts\RFQv2.sol (5586, 2023-05-25)
tokenlon-contracts-5\contracts\RewardDistributor.sol (19690, 2023-05-25)
tokenlon-contracts-5\contracts\Spender.sol (9276, 2023-05-25)
tokenlon-contracts-5\contracts\SpenderSimulation.sol (1951, 2023-05-25)
... ...

# Tokenlon [![Node.js CI](https://github.com/consenlabs/tokenlon-contracts/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/consenlabs/tokenlon-contracts/actions/workflows/node.js.yml) [![Built-with openzeppelin](https://img.shields.io/badge/built%20with-OpenZeppelin-3677FF)](https://docs.openzeppelin.com/) Tokenlon is a decentralized exchange and payment settlement protocol based on blockchain technology. Visit [tokenlon.im](https://tokenlon.im/) > Notice: This repository may contain changes that are under development. Make sure the correct commit is referenced when reviewing specific deployed contract. ## Architecture ![image info](./tokenlon_architecture.png) ## Deployed contracts (Mainnet) | Contracts | Address | Module | | -------------------------------- | --------------------------------------------------------------------------------------------------------------------- | ---------------- | | LON | [0x0000000000095413afC295d19EDeb1Ad7B71c952](https://etherscan.io/address/0x0000000000095413afC295d19EDeb1Ad7B71c952) | Token | | Tokenlon | [0x03f34bE1BF910116595dB1b11E9d1B2cA5D59659](https://etherscan.io/address/0x03f34bE1BF910116595dB1b11E9d1B2cA5D59659) | Tokenlon | | UserProxy | [0xe25ff902295Bc085bd548955B0595B518d4c46D2](https://etherscan.io/address/0xe25ff902295Bc085bd548955B0595B518d4c46D2) | Tokenlon | | PermanentStorage | [0x1A286652288691D086006B81655e4EfA895Df84D](https://etherscan.io/address/0x1A286652288691D086006B81655e4EfA895Df84D) | Tokenlon | | PermanentStorage (Upgrade Proxy) | [0x6D9Cc14a1d36E6fF13fc6efA9e9326FcD12E7903](https://etherscan.io/address/0x6D9Cc14a1d36E6fF13fc6efA9e9326FcD12E7903) | Tokenlon | | Spender | [0x3c68dfc45dc92C9c605d92B4***58073e10b857A6](https://etherscan.io/address/0x3c68dfc45dc92C9c605d92B4***58073e10b857A6) | Tokenlon | | AllowanceTarget | [0x8A42d311D282Bfcaa5133b2DE0a8bCDBECea3073](https://etherscan.io/address/0x8A42d311D282Bfcaa5133b2DE0a8bCDBECea3073) | Tokenlon | | PMM | [0x8D90113A1e286a5aB3e496fbD1853F265e5913c6](https://etherscan.io/address/0x8D90113A1e286a5aB3e496fbD1853F265e5913c6) | Tokenlon | | AMMQuoter | [0x7839254CfF8aaFBdC2da66fe709eB8f17cE09fe5](https://etherscan.io/address/0x7839254CfF8aaFBdC2da66fe709eB8f17cE09fe5) | Tokenlon | | AMMWrapperWithPath | [0x4a14347083B80E5216cA31350a2D21702aC3650d](https://etherscan.io/address/0x4a14347083B80E5216cA31350a2D21702aC3650d) | Tokenlon | | RFQ | [0xfD6C2d2499b1331101726A8AC68CCc9Da3fAB54F](https://etherscan.io/address/0xfD6C2d2499b1331101726A8AC68CCc9Da3fAB54F) | Tokenlon | | xLON | [0xf88506b0f1d30056b9e5580668d5875b9cd30f23](https://etherscan.io/address/0xf88506b0f1d30056b9e5580668d5875b9cd30f23) | Staking | | LONStaking (Logic contract) | [0x413ecce5d56204962090eef1dead4c0a247e289b](https://etherscan.io/address/0x413ecce5d56204962090eef1dead4c0a247e289b) | Staking | | MiningTreasury | [0x292a6921Efc261070a0d5C96911c102cBF1045E4](https://etherscan.io/address/0x292a6921Efc261070a0d5C96911c102cBF1045E4) | Mining Reward | | TreasuryVesterFactory | [0x000000003A8DBF47cD362EDA39B3a5F3FC6E99ce](https://etherscan.io/address/0x000000003A8DBF47cD362EDA39B3a5F3FC6E99ce) | Vesting | | MerkleRedeem | [0x0000000006a0403952389B70d8EE4E45479023db](https://etherscan.io/address/0x0000000006a0403952389B70d8EE4E45479023db) | Reward | | RewardDistributor | [0xbF1C2c17CC77e7Dec3466B96F46f93c09f02aB07](https://etherscan.io/address/0xbF1C2c17CC77e7Dec3466B96F46f93c09f02aB07) | Buyback | | StakingRewards (LON/ETH) | [0xb6bC1a713e4B11fa31480d31C825dCFd7e8FaBFD](https://etherscan.io/address/0xb6bC1a713e4B11fa31480d31C825dCFd7e8FaBFD) | Liquidity mining | | StakingRewards (LON/USDT) | [0x9***8B119f442a3a096C0d5A1F8A0215B46dbb547](https://etherscan.io/address/0x9***8B119f442a3a096C0d5A1F8A0215B46dbb547) | Liquidity mining | ## Prerequisite - node (>=14.0.0 <16) - yarn (^1.22.10) - [foundry](https://github.com/foundry-rs/foundry) - Environment Variables (Used for foundry fork tests) - `MAINNET_NODE_RPC_URL`: The RPC URL for accessing forked states. ### Example ``` MAINNET_NODE_RPC_URL=https://eth-mainnet.alchemyapi.io/v2/#####__YOUR_SECRET__##### ``` ## Installation ```bash $ git submodule update --init --recursive $ yarn run setup ``` ## Compile contracts ```bash $ yarn run compile # compile contracts ``` ## Run unit test ```bash $ yarn run test-hardhat # run PMM unit test (hardhat environment) $ yarn run test-foundry-local # run unit tests with fresh states $ yarn run test-foundry-fork # run unit tests with forked states ```

近期下载者

相关文件


收藏者