PoolLogic

This contract tracks:

  • Updates to debt levels in isolated reserves.

  • Protocol revenue collection, when a portion of reserve earnings is minted into the treasury.

Events

  • IsolationModeTotalDebtUpdated(asset, totalDebt) Emitted when the total debt of an isolated reserve is updated.

    • asset: The underlying asset of the isolated reserve.

    • totalDebt: The new total amount of debt in isolation mode.

Isolation mode restricts borrowing to a single asset (with limited correlations), and this event helps track the aggregate debt.


  • MintedToTreasury(reserve, amountMinted) Emitted when protocol revenue is minted to the treasury (usually from reserve factor allocations).

    • reserve: The underlying asset generating the revenue.

    • amountMinted: The amount minted to the treasury in aTokens.

[
  {
    "anonymous": false,
    "inputs": [
      { "indexed": true, "internalType": "address", "name": "asset", "type": "address" },
      { "indexed": false, "internalType": "uint256", "name": "totalDebt", "type": "uint256" }
    ],
    "name": "IsolationModeTotalDebtUpdated",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      { "indexed": true, "internalType": "address", "name": "reserve", "type": "address" },
      { "indexed": false, "internalType": "uint256", "name": "amountMinted", "type": "uint256" }
    ],
    "name": "MintedToTreasury",
    "type": "event"
  }
]

Last updated

Was this helpful?