Supply
Supplies the user's Ethereum asset to the Onyx Protocol.
asset
(string) A string of the asset to supply.amount
(number | string | BigNumber) A string, number, or BigNumber object of the amount of an asset to supply. Use themantissa
boolean in theoptions
parameter to indicate if this value is scaled up (so there are no decimals) or in its natural scale.noApprove
(boolean) Explicitly prevent this method from attempting an ERC-20approve
transaction prior to sending themint
transaction.[options]
(CallOptions) Call options and Ethers.js overrides for the transaction. A passedgasLimit
will be used in both theapprove
(if not supressed) andmint
transactions.RETURN
(object) Returns an Ethers.js transaction object of the supply transaction.
Last updated