TokenTaxInfo

Documentation for eth_defi.uniswap_v2.token_tax.TokenTaxInfo Python class.

class TokenTaxInfo

Bases: object

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: eth_typing.evm.HexAddress

Token in the question

quote_token: eth_typing.evm.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
Return type

None