

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.
Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.
More on ElfomoFi · 2