Skip to content

Commit

Permalink
Merge pull request #697 from bancorprotocol/add-yaka-finance-sei
Browse files Browse the repository at this point in the history
Add Yaka support for Sei
  • Loading branch information
zavelevsky authored Jul 18, 2024
2 parents 2a76255 + f340766 commit 3baff2c
Show file tree
Hide file tree
Showing 9 changed files with 1,539 additions and 150 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
exchange,address
yaka,0xf2fAcFc8e2f0FFA182ae060eb610409F25451950
yaka,0x6B06BE53Bef15F6afEFC934b318bE5b930AfDc34
yaka,0xfD1cA2735BC49Ba8F1442059BBF44D4326f882d5
yaka,0x0878c12A0400B5a8996d8E20CA4d105794f32D27
yaka,0x942Fc5a0b414a815f84542489ae20977c3ebB123
yaka,0x9F36BA3FF89dC35FE6502D4154BC0671Ab69A8C1
yaka,0x1eA0D08b1408618FFdF2E772D00d07b6E6f42285
yaka,0x4577bA78eC8Ec55BD1DF8DDD72C87c225748D414
yaka,0x8017Ad281f703065Dc04a1A7255aAA5489c6c929
yaka,0x250B95805786A65e00ee3dF639Ef7b4Fa05519fD
yaka,0xA7cAE8AeDb4Ba2A34B82BD1701587F145a4F3908
yaka,0x83EAB1eBfb63F4e4763cBBF10542A260b49CB4A0
yaka,0x8855f5a2847375f4f715e67A3cB9530752201951
466 changes: 466 additions & 0 deletions fastlane_bot/data/blockchain_data/sei/static_pool_data.csv

Large diffs are not rendered by default.

451 changes: 451 additions & 0 deletions fastlane_bot/data/blockchain_data/sei/tokens.csv

Large diffs are not rendered by default.

707 changes: 579 additions & 128 deletions fastlane_bot/data/blockchain_data/sei/uniswap_v2_event_mappings.csv

Large diffs are not rendered by default.

41 changes: 21 additions & 20 deletions fastlane_bot/data/blockchain_data/sei/uniswap_v3_event_mappings.csv
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
exchange,address
oku_v3,0xd5c6366E7Cb1f367098BB2102E3d31e153A5A0Fc
oku_v3,0x0A6358F069268c7dc4918D5B12c69a782b957Ead
oku_v3,0x41eEa09c971294FcDE3B6E553902B04a47be7442
oku_v3,0x0493F80f3D4DA87aA0F3713e81e84062d769e5e1
oku_v3,0x8A1a9Efb7f7F74ACe10A31F2f5f9F7E804f957b1
oku_v3,0xa3A573c8D14C93FCa8FDEcb7DB168619563D9B00
oku_v3,0x5cFA8dB453C9904511C4eA9eb0bfc903E36b9F5F
uni_v3_unknown,0x963DE8AEf4d9A7B201de2Fe9C6FA10e8A52d4cC3
uni_v3_unknown,0x0b03791df9203f816eA22C3c6512e45bD5C8425D
uni_v3_unknown,0x22Aa41dC8E1C5aDEcFA92c6a4AeDf53d936FD45F
uni_v3_unknown,0x77Afe737152208A9818DF2b6c84e9B4f5AF2e27f
uni_v3_unknown,0xf56A2DF3Cfc052c12e462a3f59cEBa312eA6983f
uni_v3_unknown,0x19135A062F66951bEd86Fb91A3152494448A1479
uni_v3_unknown,0x2C0e04AD928C9711ff6F6CE8933f7812b6105AfA
uni_v3_unknown,0xD5F79CFe570AEd9f841edd9cC404599038A30D30
uni_v3_unknown,0xe8eC1A02B7D2F693E5cEC0343fceD1462451422D
uni_v3_unknown,0x9e4D0C8e52fc26Af1369C8a15Eaa60De3254df0C
uni_v3_unknown,0x0690535bfcDFeaa442F37b65F966dc311A770bf0
uni_v3_unknown,0xeBDb94d864964AAfC63d1dea092AaA3890eA160B
uni_v3_unknown,0xAE5Bc36b43134ec6cE7Bf0fd7b7bC90D2b46351B
uni_v3_unknown,0xe949F7B497E0C7D49076443C5EA6D68d956f83e2
uni_v3_unknown,0xAed158689bAdb87Db76Ed722ff6dc9f610E971c7
uni_v3_unknown,0xfbABdDa9985EE4Dd913E53f395cC44F9dE583bE5
uni_v3_unknown,0x26C65DC5c5E13B0ac12E54b51cF3d6113605EeF4
uni_v3_unknown,0xf0011A6d72B60e7691D48edA3B2c671aB5532b58
uni_v3_unknown,0xbB8324c68859FA50c18e8D94C373D7Bb04f30D72
uni_v3_unknown,0x11940a73b09Bb33548FbD373cA122E305e9E8B92
uni_v3_unknown,0xA60D8d01687fB473aefBf2D7C34543d5B5163687
uni_v3_unknown,0x25a2C47C723D6F394D7F6cBB36fd15B063F9541A
uni_v3_unknown,0x82201101865e71Fd6b5fdD44B4774b8A09d79581
uni_v3_unknown,0xA377d861bf35575A1BAA5dBD519159F04175D11A
uni_v3_unknown,0xC14b4c51D2A92e2a26811D44908Dd714428b6d04
uni_v3_unknown,0xE050Cbd6b162293909BC570A967A20ac8C4Faf20
uni_v3_unknown,0x9f1B5De11928Ce3efd8C837b793052Eec3D55161
uni_v3_unknown,0x68C71e2584305BAd467cDd5B1dD99f7c70105500
uni_v3_unknown,0xAE5Bc36b43134ec6cE7Bf0fd7b7bC90D2b46351B
uni_v3_unknown,0x11940a73b09Bb33548FbD373cA122E305e9E8B92
uni_v3_unknown,0x25a2C47C723D6F394D7F6cBB36fd15B063F9541A
uni_v3_unknown,0xe20F6991aebff410E468fa963041Db6CcC567BC0
uni_v3_unknown,0x22Aa41dC8E1C5aDEcFA92c6a4AeDf53d936FD45F
uni_v3_unknown,0x9e4D0C8e52fc26Af1369C8a15Eaa60De3254df0C
uni_v3_unknown,0xe8eC1A02B7D2F693E5cEC0343fceD1462451422D
uni_v3_unknown,0xD5F79CFe570AEd9f841edd9cC404599038A30D30
uni_v3_unknown,0x2C0e04AD928C9711ff6F6CE8933f7812b6105AfA
uni_v3_unknown,0x19135A062F66951bEd86Fb91A3152494448A1479
uni_v3_unknown,0xf56A2DF3Cfc052c12e462a3f59cEBa312eA6983f
uni_v3_unknown,0x77Afe737152208A9818DF2b6c84e9B4f5AF2e27f
uni_v3_unknown,0x0690535bfcDFeaa442F37b65F966dc311A770bf0
uni_v3_unknown,0x0b03791df9203f816eA22C3c6512e45bD5C8425D
uni_v3_unknown,0x963DE8AEf4d9A7B201de2Fe9C6FA10e8A52d4cC3
oku_v3,0x0A6358F069268c7dc4918D5B12c69a782b957Ead
oku_v3,0x41eEa09c971294FcDE3B6E553902B04a47be7442
oku_v3,0x5cFA8dB453C9904511C4eA9eb0bfc903E36b9F5F
oku_v3,0x8A1a9Efb7f7F74ACe10A31F2f5f9F7E804f957b1
oku_v3,0xa3A573c8D14C93FCa8FDEcb7DB168619563D9B00
oku_v3,0x0493F80f3D4DA87aA0F3713e81e84062d769e5e1
3 changes: 2 additions & 1 deletion fastlane_bot/data/multichain_addresses.csv
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,5 @@ dragonswap,sei,uniswap_v2,0x71f6b49ae1558357bBb5A6074f1143c46cBcA03d,0xa4cF2F53D
uni_v2_unknown,sei,uniswap_v2,0x595A6B190Ba0163eaC1DA988955563635AB3AA60,0x5Cca43d5306CadC49B1227b9BBe5413786e2f85B,0.003,79349358,
uni_v3_unknown,sei,uniswap_v3,0x0596a0469D5452F876523487251BDdE73D4B2597,0xAed158689bAdb87Db76Ed722ff6dc9f610E971c7,0.003,79299551,
balancer,sei,balancer,BALANCER_VAULT_ADDRESS,0xFB43069f6d0473B85686a85F4Ce4Fc1FD8F00875,0,81247458,
oku_v3,sei,uniswap_v3,0x75FC67473A91335B5b8F8821277262a13B38c9b3,0xdD489C75be1039ec7d843A6aC2Fd658350B067Cf,,79245151,
oku_v3,sei,uniswap_v3,0x75FC67473A91335B5b8F8821277262a13B38c9b3,0xdD489C75be1039ec7d843A6aC2Fd658350B067Cf,,79245151,
yaka,sei,solidly_v2,0xd45dAff288075952822d5323F1d571e73435E929,0x9f3B1c6b0CDDfE7ADAdd7aadf72273b38eFF0ebC,0.0018,85701150,
1 change: 1 addition & 0 deletions fastlane_bot/events/exchanges/solidly_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ def __new__(cls, **kwargs):
"lynex_v2": LynexV2,
"nile_v2": NileV2,
"xfai_v0": XFaiV2,
"yaka": LynexV2,
}[kwargs["exchange_name"]](**kwargs)
2 changes: 2 additions & 0 deletions fastlane_bot/events/pools/solidly_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ async def _async_is_stable_B(contract: Contract) -> bool:
"lynex_v2" : {"balances": _balances_A, "async_balances": _async_balances_A, "is_stable": _is_stable_A, "async_is_stable": _async_is_stable_A},
"nile_v2" : {"balances": _balances_A, "async_balances": _async_balances_A, "is_stable": _is_stable_A, "async_is_stable": _async_is_stable_A},
"xfai_v0" : {"balances": _balances_B, "async_balances": _async_balances_B, "is_stable": _is_stable_B, "async_is_stable": _async_is_stable_B},
"yaka" : {"balances": _balances_A, "async_balances": _async_balances_A, "is_stable": _is_stable_A, "async_is_stable": _async_is_stable_A},

}

@dataclass
Expand Down
5 changes: 4 additions & 1 deletion run_blockchain_terraformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async def gather():
LYNEX_V2_NAME = "lynex_v2"
NILE_V2_NAME = "nile_v2"
XFAI_V0_NAME = "xfai_v0"

YAKA_FINANCE_NAME = "yaka"
SOLIDLY_FORKS = [
AERODROME_V2_NAME,
VELOCIMETER_V2_NAME,
Expand All @@ -156,6 +156,7 @@ async def gather():
CLEOPATRA_V2_NAME,
STRATUM_V2_NAME,
XFAI_V0_NAME,
YAKA_FINANCE_NAME
]

EXCHANGE_IDS = {
Expand All @@ -179,6 +180,7 @@ async def gather():
CLEOPATRA_V2_NAME: 12,
STRATUM_V2_NAME: 12,
XFAI_V0_NAME: 13,
YAKA_FINANCE_NAME: 11
}

EXCHANGE_POOL_CREATION_EVENT_NAMES = {
Expand All @@ -193,6 +195,7 @@ async def gather():
LYNEX_V2_NAME: "PairCreated",
NILE_V2_NAME: "PairCreated",
XFAI_V0_NAME: "PoolCreated",
YAKA_FINANCE_NAME: "PairCreated"
}

dataframe_key = [
Expand Down

0 comments on commit 3baff2c

Please sign in to comment.