Onchain.Aave.V4.Hub.AssetConfig (onchain_aave v0.4.0)

Copy Markdown View Source

Typed IHub.AssetConfig — fee and interest-rate configuration for a Hub asset.

API Functions

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

t()

@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

from_raw(arg)

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

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