VeloraSwapResult

Documentation for eth_defi.velora.swap.VeloraSwapResult Python class.

class VeloraSwapResult

Bases: object

Result of a Velora swap execution.

Contains transaction hash and amounts from the executed swap.

Attributes summary

tx_hash

buy_token

sell_token

amount_sold

amount_bought

Methods summary

__init__(tx_hash, buy_token, sell_token, ...)

get_amount_bought_decimal()

Get amount bought in human-readable decimals.

get_amount_sold_decimal()

Get amount sold in human-readable decimals.

__init__(tx_hash, buy_token, sell_token, amount_sold, amount_bought)
Parameters
Return type

None

get_amount_bought_decimal()

Get amount bought in human-readable decimals.

Return type

decimal.Decimal

get_amount_sold_decimal()

Get amount sold in human-readable decimals.

Return type

decimal.Decimal