Packages
Aave V3 protocol wrappers for Elixir — pool reads/writes, oracle, math, and type structs. Built on onchain.
Current section
Files
Jump to
Current section
Files
lib/onchain/aave/opts.ex
defmodule Onchain.Aave.Opts do
@moduledoc false
# Shared option splitting for Aave modules.
# Separates :network (for Contracts lookup) from remaining options (RPC, Signer, etc.).
@doc false
@spec split_network(keyword()) :: {keyword(), keyword()}
def split_network(opts) do
if Keyword.has_key?(opts, :network) do
{network_val, rest} = Keyword.pop(opts, :network)
{[network: network_val], rest}
else
{[], opts}
end
end
end