Skip to content

Commit

Permalink
Merge pull request #28 from bout3fiddy/feat/update_impls
Browse files Browse the repository at this point in the history
add tricrypto deployments
  • Loading branch information
bout3fiddy authored Jan 15, 2024
2 parents c9f1700 + 3d91bd0 commit 49a99c6
Show file tree
Hide file tree
Showing 41 changed files with 3,618 additions and 1,748 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/deployment-tests.yaml

This file was deleted.

40 changes: 21 additions & 19 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
MIT License
(c) Curve.Fi, 2024

Copyright (c) 2022 fiddy
Except as otherwise provided in the header of a specific source code
file in this repository: (a) all intellectual property (including all
source code, designs and protocols) contained in this repository has been
published for informational purposes only; (b) no license, right of
reproduction or distribution or other right with respect thereto is
granted or implied; and (c) all moral, intellectual property and other
rights are hereby reserved by the copyright holder.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
THE SOFTWARE AND INTELLECTUAL PROPERTY INCLUDED IN THIS REPOSITORY
IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS," AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE OR
INTELLECTUAL PROPERTY (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION), HOWEVER CAUSED OR CLAIMED (WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)), EVEN IF
SUCH DAMAGES WERE REASONABLY FORESEEABLE OR THE COPYRIGHT HOLDERS WERE
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 changes: 2 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The AMM (automatic market maker) infrastructure involves the following parts:

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. The contract is a version 2.0.0, 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 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.

Expand Down Expand Up @@ -44,33 +44,7 @@ Please refrain from reporting any smart contract vulnerabilities publicly. The b

# Deployments

Ethereum:

1. Factory: [0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963](https://etherscan.io/address/0x0c0e5f2ff0ff18a3be9b835635039256dc4b4963)
2. AMM Blueprint: [0x66442B0C5260B92cAa9c234ECf2408CBf6b19a6f](https://etherscan.io/address/0x66442B0C5260B92cAa9c234ECf2408CBf6b19a6f)
3. Math: [0xcBFf3004a20dBfE2731543AA38599A526e0fD6eE](https://etherscan.io/address/0xcBFf3004a20dBfE2731543AA38599A526e0fD6eE)
4. Views: [0x064253915b8449fdEFac2c4A74aA9fdF56691a31](https://etherscan.io/address/0x064253915b8449fdEFac2c4A74aA9fdF56691a31)
5. Gauge Blueprint: [0x5fC124a161d888893529f67580ef94C2784e9233](https://etherscan.io/address/0x5fC124a161d888893529f67580ef94C2784e9233)
6. TricryptoFactoryHandler: [0x30a4249C42be05215b6063691949710592859697](https://etherscan.io/address/0x30a4249C42be05215b6063691949710592859697)

Updated AMM Blueprint (14-09-2023): [0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8](https://etherscan.io/address/0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8)

Deployed Pool:

1. [TricryptoUSDC 0x7f86bf177dd4f3494b841a37e810a34dd56c829b](https://etherscan.io/address/0x7f86bf177dd4f3494b841a37e810a34dd56c829b)

Arbitrum:

1. Factory: [0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8](https://arbiscan.io/address/0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8)
2. AMM Blueprint: [0xd7E72f3615aa65b92A4DBdC211E296a35512988B](https://arbiscan.io/address/0xd7E72f3615aa65b92A4DBdC211E296a35512988B)
3. Math: [0x604388Bb1159AFd21eB5191cE22b4DeCdEE2Ae22](https://arbiscan.io/address/0x604388Bb1159AFd21eB5191cE22b4DeCdEE2Ae22)
4. Views: [0x06452f9c013fc37169B57Eab8F50A7A48c9198A3](https://arbiscan.io/address/0x06452f9c013fc37169B57Eab8F50A7A48c9198A3)

Updated AMM Blueprint (14-09-2023): [0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8](https://arbiscan.io/address/0x5a8C93EE12a8Df4455BA111647AdA41f29D5CfcC)

Deployed Pool:

1. [TricryptoUSDC 0x7706128aFAC8875981b2412faC6C4f3053EA705f](https://arbiscan.io/address/0x7706128aFAC8875981b2412faC6C4f3053EA705f)
Please check [./deployments.yaml][the deployments file to get addresses for deployed contracts.]

### License

Expand Down
59 changes: 0 additions & 59 deletions ape-config.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion contracts/main/CurveCryptoMathOptimized3.vy
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# @version 0.3.9
# pragma version 0.3.10
# pragma optimize gas
# pragma evm-version paris

# (c) Curve.Fi, 2020-2023
# AMM Math for 3-coin Curve Cryptoswap Pools
Expand Down
5 changes: 3 additions & 2 deletions contracts/main/CurveCryptoViews3Optimized.vy
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# @version 0.3.9

# pragma version 0.3.10
# pragma optimize gas
# pragma evm-version paris
"""
@title CurveCryptoViews3Optimized
@author Curve.Fi
Expand Down
5 changes: 3 additions & 2 deletions contracts/main/CurveL2TricryptoFactory.vy
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# @version 0.3.9

# pragma version 0.3.10
# pragma optimize gas
# pragma evm-version paris
"""
@title CurveL2TricryptoFactory
@author Curve.Fi
Expand Down
2 changes: 1 addition & 1 deletion contracts/main/CurveTricryptoFactory.vy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @version 0.3.9
# @version 0.3.10

"""
@title CurveTricryptoFactory
Expand Down
2 changes: 1 addition & 1 deletion contracts/main/CurveTricryptoFactoryHandler.vy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @version 0.3.9
# @version 0.3.10

"""
@title CurveTricryptoFactoryHandler
Expand Down
Loading

0 comments on commit 49a99c6

Please sign in to comment.