{"repo":"curvefi/tricrypto-ng","free":true,"listed":false,"github":"https://github.com/curvefi/tricrypto-ng","clone":"git clone https://github.com/curvefi/tricrypto-ng.git","description":"Automatic Market Maker (AMM) for three unpegged assets, written in Vyper.","language":"Vyper","stars":76,"topics":["amm","ethereum","smart-contracts","vyper-contracts"],"license":null,"category":"blockchain-web3","readme_excerpt":"Curve TriCrypto Factory This github contains smart contracts (and accompanying tests) on an optimised version of Curve Finance Tricrypto pool deployed on Ethereum. The AMM (automatic market maker) infrastructure involves the following parts: 1. Factory 2. AMM blueprint contract 3. Math 4. Views 5. Liquidity Gauge blueprint contract The Factory can accommodate multiple blueprints of the AMM contract (deployed on chain). These blueprints are then specified by the user while deploying the pool. Similarly, liquidity gauges can be deployed through the factory contract as well for a specific pool, through liquidity gauge blueprint contracts. The AMM is a 3-coin, auto-rebalancing Curve Cryptoswap implementation with several optimisations that make the contract cheaper for the end user. Also, unlike the older version: the pool contract is an ERC20-compliant LP token as well. The Math contract contains the different math functions used in the AMM. The Views contract contains view methods relevant for integrators and users looking to interact with the AMMs. Unlike the older tricrypto contracts. The address of the deployed Views contract is stored in the Factory: users are advised to query the stored views contract, since that is upgradeable by the Factory's admin. The Factory AMMs have a hardcoded ADMIN FEE , set to 50% of the earned profits. Factory admins can also implement parameter changes to the AMMs, change the fee recepient, upgrade/add blueprint contract addresses stored in the","default_branch":null,"files":null,"tree":[],"storefront":"/r/curvefi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/curvefi/tricrypto-ng/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}