Get amount in
Get amount in

ElfomoFi · Reads onchain state

Reads the input ElfomoFi would charge right now for an exact output. The venue answers from the quote its market maker keeps on chain for the pair, priced for the account that would make the swap, and answers zero for a pair it does not quote or an output past its inventory. Reach for it to size a swap that has to deliver a precise amount, such as an exact repayment, coiling the answer into the swap's input.