TokenTaxInfo

Documentation for eth_defi.uniswap_v2.token_tax.TokenTaxInfo class.

class TokenTaxInfo[source]

Different token taxes we figured out.

Attributes summary

base_token

Token in the question

quote_token

Which token we traded against it

buy_tax

How much % we lost of the token on buy

transfer_tax

How much % we lose the token when we transfer between addresses

sell_tax

How much % we lose the token when we sold it

Methods summary

__init__(base_token, quote_token, buy_tax, ...)

base_token: HexAddress

Token in the question

quote_token: HexAddress

Which token we traded against it

buy_tax: float

How much % we lost of the token on buy

transfer_tax: float

How much % we lose the token when we transfer between addresses

sell_tax: float

How much % we lose the token when we sold it

__init__(base_token, quote_token, buy_tax, transfer_tax, sell_tax)
Parameters
  • base_token (HexAddress) –

  • quote_token (HexAddress) –

  • buy_tax (float) –

  • transfer_tax (float) –

  • sell_tax (float) –

Return type

None