VeloraSwapResult
Documentation for eth_defi.velora.swap.VeloraSwapResult Python class.
- class VeloraSwapResult
Bases:
objectResult of a Velora swap execution.
Contains transaction hash and amounts from the executed swap.
Attributes summary
tx_hashbuy_tokensell_tokenamount_soldamount_boughtMethods summary
__init__(tx_hash, buy_token, sell_token, ...)Get amount bought in human-readable decimals.
Get amount sold in human-readable decimals.
- __init__(tx_hash, buy_token, sell_token, amount_sold, amount_bought)
- Parameters
tx_hash (hexbytes.main.HexBytes) –
buy_token (eth_defi.token.TokenDetails) –
sell_token (eth_defi.token.TokenDetails) –
amount_sold (int) –
amount_bought (int) –
- Return type
None
- get_amount_bought_decimal()
Get amount bought in human-readable decimals.
- Return type
- get_amount_sold_decimal()
Get amount sold in human-readable decimals.
- Return type