Typed Aave V4 ISpoke.ReserveConfig data.
API Functions
| Function | Arity | Description | Param Kinds |
|---|---|---|---|
from_raw | 1 | Convert a decoded ISpoke.ReserveConfig tuple into a typed struct. | raw: exchange_data |
Summary
Functions
Convert a decoded ISpoke.ReserveConfig tuple into a typed struct.
Types
@type t() :: %Onchain.Aave.V4.Types.SpokeReserveConfig{ borrowable: boolean(), collateral_risk: non_neg_integer(), frozen: boolean(), paused: boolean(), receive_shares_enabled: boolean() }
Functions
Convert a decoded ISpoke.ReserveConfig tuple into a typed struct.
Parameters
raw- 5-element tuple returned by getReserveConfig (exchange_data)
Returns
%SpokeReserveConfig{} (struct)
# descripex:contract
%{
params: %{
raw: %{
description: "5-element tuple returned by getReserveConfig",
kind: :exchange_data
}
},
returns: %{type: :struct, description: "%SpokeReserveConfig{}"}
}