We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cce54e commit 130a4aeCopy full SHA for 130a4ae
uniswap_sdk/_cli.py
@@ -173,7 +173,9 @@ async def get_token_balance(token: str) -> Decimal:
173
from ape.types import AddressType
174
175
token = Token.at(convert(token, AddressType))
176
- return token.balanceOf(account) * Decimal(f"1e-{token.decimals()}") # type: ignore[attr-defined]
+ return token.balanceOf(account) * Decimal( # type: ignore[attr-defined]
177
+ f"1e-{token.decimals()}" # type: ignore[attr-defined]
178
+ )
179
180
@server.tool()
181
async def get_price(ctx: Context, base: str, quote: str) -> Decimal:
0 commit comments