Onchain.Aave.V4.Types.SpokeReserveConfig (onchain_aave v0.4.0)

Copy Markdown View Source

Typed Aave V4 ISpoke.ReserveConfig data.

API Functions

FunctionArityDescriptionParam Kinds
from_raw1Convert 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

t()

@type t() :: %Onchain.Aave.V4.Types.SpokeReserveConfig{
  borrowable: boolean(),
  collateral_risk: non_neg_integer(),
  frozen: boolean(),
  paused: boolean(),
  receive_shares_enabled: boolean()
}

Functions

from_raw(arg)

@spec from_raw(tuple()) :: t()

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{}"}
}