StablecoinRateFeeder

Documentation for eth_defi.feed.stablecoin_rate.StablecoinRateFeeder Python class.

class StablecoinRateFeeder

Bases: object

Cached stablecoin rate/depeg lookup helper for vault metrics.

Attributes summary

data_dir

Methods summary

__init__([data_dir])

get_denomination_token_rate_section(...)

Resolve a vault denomination token to exported rate metadata.

is_depegged_stablecoin_token(chain_id, ...)

Return True when a denomination token is marked depegged.

__init__(data_dir=PosixPath('/home/runner/work/web3-ethereum-defi/web3-ethereum-defi/eth_defi/data/stablecoins'))
Parameters

data_dir (pathlib.Path) –

Return type

None

get_denomination_token_rate_section(chain_id, address, symbol)

Resolve a vault denomination token to exported rate metadata.

Parameters
Return type

eth_defi.feed.stablecoin_rate.DenominationTokenRate

is_depegged_stablecoin_token(chain_id, address, symbol)

Return True when a denomination token is marked depegged.

Parameters
Return type

bool