Skip to content

Commit

Permalink
Update xfai_v0.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesigh-3100 committed Jun 17, 2024
1 parent 71acf09 commit 84172c0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fastlane_bot/events/exchanges/solidly_v2/xfai_v0.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ class XFaiV2(SolidlyV2):
def get_abi(self):
return XFAI_V0_POOL_ABI

def get_core_abi(self):
return XFAI_V0_CORE_ABI

async def get_tkn0(self, address: str, contract: Contract, event: Any) -> str:
return await contract.caller.poolToken()

Expand All @@ -27,7 +24,7 @@ def factory_abi(self): # TODO: change to staticmethod

async def get_fee(self, address: str, contract: AsyncContract) -> Tuple[str, float]:
core_address = self.factory_contract.w3.to_checksum_address(await self.factory_contract.caller.getXfaiCore())
core_contract = self.factory_contract.w3.eth.contract(address=core_address, abi=self.get_core_abi())
core_contract = self.factory_contract.w3.eth.contract(address=core_address, abi=XFAI_V0_CORE_ABI)
fee = await core_contract.caller.getTotalFee()
fee_float = float(fee) / 10 ** 4
return str(fee_float), fee_float
Expand Down

0 comments on commit 84172c0

Please sign in to comment.