Rube.Amm (rube v0.0.1)

Link to this section Summary

Link to this section Types

Specs

address() :: term()
Link to this type

blockchain_id()

Specs

blockchain_id() :: Slurp.Blockchains.Blockchain.id()

Specs

pair() :: Rube.Amm.Pair.t()

Link to this section Functions

Link to this function

find_pair(blockchain_id, address)

Specs

find_pair(blockchain_id(), address()) :: {:ok, pair()} | {:error, :not_found}
Link to this function

get_or_fetch_pair(blockchain_id, address)

Specs

get_or_fetch_pair(blockchain_id(), address()) :: :ok

Specs

pairs() :: [pair()]

Specs

put_pair(pair()) :: term()