Typed IHub.AssetConfig — fee and interest-rate configuration for a Hub asset.
API Functions
| Function | Arity | Description | Param Kinds |
|---|---|---|---|
from_raw | 1 | Convert a decoded IHub.AssetConfig tuple into a typed struct. | raw: exchange_data |
Summary
Functions
Convert a decoded IHub.AssetConfig tuple into a typed struct.
Types
@type t() :: %Onchain.Aave.V4.Hub.AssetConfig{ fee_receiver: String.t(), ir_strategy: String.t(), liquidity_fee: non_neg_integer(), reinvestment_controller: String.t() }
Functions
Convert a decoded IHub.AssetConfig tuple into a typed struct.
Parameters
raw- 4-element tuple from getAssetConfig (exchange_data)
Returns
%Onchain.Aave.V4.Hub.AssetConfig{} (struct)
# descripex:contract
%{
params: %{
raw: %{
description: "4-element tuple from getAssetConfig",
source: "Onchain.Aave.V4.Hub.get_asset_config/3",
kind: :exchange_data
}
},
returns: %{type: :struct, description: "%Onchain.Aave.V4.Hub.AssetConfig{}"}
}