Events

Git Source

Author: Morpho Labs

Library exposing events used in Morpho.

Events

Supplied

Emitted when a supply happens.

event Supplied(
    address indexed from,
    address indexed onBehalf,
    address indexed underlying,
    uint256 amount,
    uint256 scaledOnPool,
    uint256 scaledInP2P
);

CollateralSupplied

Emitted when a supply collateral happens.

event CollateralSupplied(
    address indexed from, address indexed onBehalf, address indexed underlying, uint256 amount, uint256 scaledBalance
);

Borrowed

Emitted when a borrow happens.

event Borrowed(
    address caller,
    address indexed onBehalf,
    address indexed receiver,
    address indexed underlying,
    uint256 amount,
    uint256 scaledOnPool,
    uint256 scaledInP2P
);

Repaid

Emitted when a repay happens.

event Repaid(
    address indexed repayer,
    address indexed onBehalf,
    address indexed underlying,
    uint256 amount,
    uint256 scaledOnPool,
    uint256 scaledInP2P
);

Withdrawn

Emitted when a withdraw happens.

event Withdrawn(
    address caller,
    address indexed onBehalf,
    address indexed receiver,
    address indexed underlying,
    uint256 amount,
    uint256 scaledOnPool,
    uint256 scaledInP2P
);

CollateralWithdrawn

Emitted when a withdraw collateral happens.

event CollateralWithdrawn(
    address caller,
    address indexed onBehalf,
    address indexed receiver,
    address indexed underlying,
    uint256 amount,
    uint256 scaledBalance
);

Liquidated

Emitted when a liquidate happens.

event Liquidated(
    address indexed liquidator,
    address indexed borrower,
    address indexed underlyingBorrowed,
    uint256 amountLiquidated,
    address underlyingCollateral,
    uint256 amountSeized
);

ManagerApproval

Emitted when a manager is approved or unapproved to act on behalf of a delegator.

event ManagerApproval(address indexed delegator, address indexed manager, bool isAllowed);

SupplyPositionUpdated

Emitted when a supply position is updated.

event SupplyPositionUpdated(
    address indexed user, address indexed underlying, uint256 scaledOnPool, uint256 scaledInP2P
);

BorrowPositionUpdated

Emitted when a borrow position is updated.

event BorrowPositionUpdated(
    address indexed user, address indexed underlying, uint256 scaledOnPool, uint256 scaledInP2P
);

P2PSupplyDeltaUpdated

Emitted when a peer-to-peer supply delta is updated.

event P2PSupplyDeltaUpdated(address indexed underlying, uint256 scaledDelta);

P2PBorrowDeltaUpdated

Emitted when a peer-to-peer borrow delta is updated.

event P2PBorrowDeltaUpdated(address indexed underlying, uint256 scaledDelta);

P2PTotalsUpdated

Emitted when the peer-to-peer total amounts are updated.

event P2PTotalsUpdated(address indexed underlying, uint256 scaledTotalSupplyP2P, uint256 scaledTotalBorrowP2P);

RewardsClaimed

Emitted when a rewards are claimed.

event RewardsClaimed(
    address indexed claimer, address indexed onBehalf, address indexed rewardToken, uint256 amountClaimed
);

IsCollateralSet

Emitted when the collateral status of the underlying market is set to isCollateral.

event IsCollateralSet(address indexed underlying, bool isCollateral);

IsClaimRewardsPausedSet

Emitted when the claim rewards status is set to isPaused.

event IsClaimRewardsPausedSet(bool isPaused);

IsSupplyPausedSet

Emitted when the supply pause status of the underlying market is set to isPaused.

event IsSupplyPausedSet(address indexed underlying, bool isPaused);

IsSupplyCollateralPausedSet

Emitted when the supply collateral pause status of the underlying market is set to isPaused.

event IsSupplyCollateralPausedSet(address indexed underlying, bool isPaused);

IsBorrowPausedSet

Emitted when the borrow pause status of the underlying market is set to isPaused.

event IsBorrowPausedSet(address indexed underlying, bool isPaused);

IsWithdrawPausedSet

Emitted when the withdraw pause status of the underlying market is set to isPaused.

event IsWithdrawPausedSet(address indexed underlying, bool isPaused);

IsWithdrawCollateralPausedSet

Emitted when the withdraw collateral pause status of the underlying market is set to isPaused.

event IsWithdrawCollateralPausedSet(address indexed underlying, bool isPaused);

IsRepayPausedSet

Emitted when the repay pause status of the underlying market is set to isPaused.

event IsRepayPausedSet(address indexed underlying, bool isPaused);

IsLiquidateCollateralPausedSet

Emitted when the liquidate collateral pause status of the underlying market is set to isPaused.

event IsLiquidateCollateralPausedSet(address indexed underlying, bool isPaused);

IsLiquidateBorrowPausedSet

Emitted when the liquidate borrow pause status of the underlying market is set to isPaused.

event IsLiquidateBorrowPausedSet(address indexed underlying, bool isPaused);

P2PDeltasIncreased

Emitted when an _increaseP2PDeltas is triggered.

event P2PDeltasIncreased(address indexed underlying, uint256 amount);

MarketCreated

Emitted when a new market is created.

event MarketCreated(address indexed underlying);

DefaultIterationsSet

Emitted when the default iterations are set.

event DefaultIterationsSet(uint128 repay, uint128 withdraw);

PositionsManagerSet

Emitted when the positions manager is set.

event PositionsManagerSet(address indexed positionsManager);

RewardsManagerSet

Emitted when the rewards manager is set.

event RewardsManagerSet(address indexed rewardsManager);

TreasuryVaultSet

Emitted when the treasury vault is set.

event TreasuryVaultSet(address indexed treasuryVault);

ReserveFactorSet

Emitted when the reserve factor is set.

event ReserveFactorSet(address indexed underlying, uint16 reserveFactor);

P2PIndexCursorSet

Emitted when the peer-to-peer index cursor is set.

event P2PIndexCursorSet(address indexed underlying, uint16 p2pIndexCursor);

IsP2PDisabledSet

Emitted when the peer-to-peer disabled status is set.

event IsP2PDisabledSet(address indexed underlying, bool isP2PDisabled);

IsDeprecatedSet

Emitted when the deprecation status is set.

event IsDeprecatedSet(address indexed underlying, bool isDeprecated);

IndexesUpdated

Emitted when the indexes are updated.

event IndexesUpdated(
    address indexed underlying,
    uint256 poolSupplyIndex,
    uint256 p2pSupplyIndex,
    uint256 poolBorrowIndex,
    uint256 p2pBorrowIndex
);

IdleSupplyUpdated

Emitted when the idle supply is updated.

event IdleSupplyUpdated(address indexed underlying, uint256 idleSupply);

ReserveFeeClaimed

Emitted when the reserve fee is claimed.

event ReserveFeeClaimed(address indexed underlying, uint256 claimed);

UserNonceIncremented

Emitted when a user nonce is incremented.

event UserNonceIncremented(address indexed caller, address indexed signatory, uint256 usedNonce);