The supply function transfers an asset to the protocol and adds it to the account’s balance. This function can be used to supply collateral, supply the base asset, or repay an open borrow of the base asset.
If the base asset is supplied resulting in the account has a balance greater than zero, the base asset earns interest based on the current supply rate. Collateral assets that are supplied do not earn interest.
There are three separate methods to supply an asset to Lenen Protocol. The first is on behalf of the caller, the second is to a separate account, and the third is for a manager on behalf of an account.
Before supplying an asset to Lenen Protocol, the caller must first execute the asset’s VRC-20 approve of the Comet contract.