SupplyLogic

This contract tracks user interactions with the lending pool: enabling/disabling collateral, supplying liquidity, and withdrawing assets.

Events

  • ReserveUsedAsCollateralDisabled(reserve, user) Emitted when a user disables a reserve asset as collateral.

    • reserve: Address of the reserve asset.

    • user: Address of the user who disabled collateral usage.


  • ReserveUsedAsCollateralEnabled(reserve, user) Emitted when a user enables a reserve asset as collateral.

    • reserve: Address of the reserve asset.

    • user: Address of the user who enabled collateral usage.


  • Supply(reserve, user, onBehalfOf, amount, referralCode) Emitted when a user supplies liquidity to the protocol.

    • reserve: Asset being supplied.

    • user: Address of the supplier.

    • onBehalfOf: Address that will receive the aTokens.

    • amount: Amount of the asset supplied.

    • referralCode: Referral code used for tracking incentives (if any).


  • Withdraw(reserve, user, to, amount) Emitted when a user withdraws liquidity from the protocol.

    • reserve: Asset being withdrawn.

    • user: Address of the withdrawing user.

    • to: Address receiving the withdrawn asset.

    • amount: Amount withdrawn.

Last updated

Was this helpful?