Skip to content

Commit

Permalink
Actual mainnet deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk committed Dec 12, 2024
1 parent 5ddfce6 commit a5fbe2c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
15 changes: 8 additions & 7 deletions pkg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,19 @@

| Deployment name | Deployment address |
|----------------------------------|--------------------------------------------|
| Longtail AMM | 0x5A708114dc7d7c5C0D6E6acA1CAb1e5Dec05b7e9 |
| Longtail NFT manager | 0xD6F671E7B5bae3c462F03FcaAd03751cCd8Df82b |
| Longtail AMM | 0x452D796b656D3720f2d06B3439eF95899f0db755 |
| Longtail NFT manager | 0x1C3D5CF4F56af1cB8f810F49eFfF3d5970a274D0 |
| Permit2 router | 0x244517Dc59943E8CdFbD424Bdb3262c5f04a1387 |
| Swaps implementation | 0xfc66c25dbdb0606e7f9ca1d2754eb0a0f8306da9 |
| Swaps permit2 A implementation | 0x0b319db00d07c8fadfaaef13c910141a5da0aa8f |
| Quotes implementation | 0x05c1702aa4e5590970884645eae4bfa1b5210b27 |
| Positions implementation | 0xb7a2930e66d84da74cdcfe4f97fae9fc8f1114e8 |
| Update position implementation | 0x3079a40a0e0eaeef4d5d74fe22063b35844b3761 |
| Admin implementation | 0xc0b176592d1f7abe464d3f27aec6d9f27bb5f6e1 |
| Adjust position A implementation | 0xda823e1c520c1d85584cf0ce92b7fb8ccdb11006 |
| Adjust position A implementation | 0xff634a3cb97bcf8cbaf8d2379afc8360c541218a |
| Swaps permit2 B implementation | 0xe3bafbd8f86800bac86025b2903335b32aa6f51f |
| Adjust position B implementation | 0x6c6c9d1a30f14adec11c7cf9f0f6ae0926822682 |
| Adjust position B implementation | 0xb4647415a644f6a09c84a2af6458d1d38d6e9d80 |
| Position handler | 0xc81915AF9ba5477eD31e71CbEc8955636D55B730 |

#### Administrative deployments

Expand All @@ -42,9 +43,9 @@

| Deployment name | Deployment address |
|------------------------|--------------------------------------------|
| Leo proxy | 0x9598E4056866F7d7085Ef56fD9594deb0D5d7e1d |
| Collect implementation | 0x83ec9543a48e3760a659594868ed51553d2c6f16 |
| Extras implementation | 0x506cb07805ef6ca654edad999526607b703e5e43 |
| Leo proxy | 0x815e104dCe7e818211A06962b917Fd115eb71fc9 |
| Collect implementation | 0x098fefb9d029d7381601d63e42f398d730925644 |
| Extras implementation | 0xb7c4ee5f6011042773f5d1b2be27a03582a5b0d5 |

#### Token deployments

Expand Down
15 changes: 7 additions & 8 deletions pkg/seawater/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,12 @@ impl Pools {
}

impl Pools {
pub fn collect_fees_internal(&mut self, pool: Address, id: U256, recipient: Address) -> Result<(u128, u128), Revert> {
pub fn collect_fees_internal(
&mut self,
pool: Address,
id: U256,
recipient: Address,
) -> Result<(u128, u128), Revert> {
assert_eq_or!(
msg::sender(),
self.position_owners.get(id),
Expand Down Expand Up @@ -760,13 +765,7 @@ impl Pools {
erc20::take(FUSDC_ADDR, amount_1, permit_1)?;
}

let (amount0_collected, amount1_collected) =
self.collect_fees_internal(pool, id, msg::sender())?;

Ok((
amount_0 + U256::from(amount0_collected),
amount_1 + U256::from(amount1_collected),
))
Ok((amount_0, amount_1))
}
}

Expand Down
8 changes: 4 additions & 4 deletions web/src/config/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ const chainContracts: {
positionHandler: { address: "0x3511aF458F39cF609719070636B033A07F327C29" },
},
55244: {
amm: { address: "0x5A708114dc7d7c5C0D6E6acA1CAb1e5Dec05b7e9" },
leo: { address: "0x9598E4056866F7d7085Ef56fD9594deb0D5d7e1d" },
ownershipNFTs: { address: "0xD6F671E7B5bae3c462F03FcaAd03751cCd8Df82b" },
positionHandler: { address: "0x17A45B74Cd8817e237119D28e46c09fF6c9caF91" },
amm: { address: "0x452D796b656D3720f2d06B3439eF95899f0db755" },
leo: { address: "0x815e104dCe7e818211A06962b917Fd115eb71fc9" },
ownershipNFTs: { address: "0x1C3D5CF4F56af1cB8f810F49eFfF3d5970a274D0" },
positionHandler: { address: "0xc81915AF9ba5477eD31e71CbEc8955636D55B730" },
},
};

Expand Down

0 comments on commit a5fbe2c

Please sign in to comment.