dsa-connectors/contracts/mainnet/connectors/notional/events.sol

92 lines
2.2 KiB
Solidity
Raw Normal View History

2022-03-31 15:27:31 +00:00
// SPDX-License-Identifier: MIT
2021-11-10 22:52:16 +00:00
pragma solidity ^0.7.6;
contract Events {
2021-12-16 01:49:32 +00:00
event LogDepositCollateral(
address indexed account,
uint16 currencyId,
bool isUnderlying,
uint256 depositAmount,
uint256 assetCashDeposited
);
2021-11-10 22:52:16 +00:00
2021-12-16 01:49:32 +00:00
event LogWithdrawCollateral(
address indexed account,
uint16 currencyId,
bool isUnderlying,
uint256 amountWithdrawn
);
event LogClaimNOTE(address indexed account, uint256 notesClaimed);
event LogRedeemNTokenRaw(
address indexed account,
uint16 currencyId,
bool sellTokenAssets,
uint96 tokensToRedeem,
int256 assetCashChange
);
event LogRedeemNTokenWithdraw(
address indexed account,
uint16 currencyId,
uint96 tokensToRedeem,
uint256 amountToWithdraw,
bool redeemToUnderlying
);
event LogRedeemNTokenAndDeleverage(
address indexed account,
uint16 currencyId,
uint96 tokensToRedeem,
uint8 marketIndex,
uint88 fCashAmount
);
event LogDepositAndMintNToken(
address indexed account,
uint16 currencyId,
bool isUnderlying,
uint256 depositAmount,
int256 nTokenBalanceChange
);
event LogMintNTokenFromCash(
address indexed account,
uint16 currencyId,
uint256 cashBalanceToMint,
int256 nTokenBalanceChange
);
event LogDepositAndLend(
address indexed account,
uint16 currencyId,
bool isUnderlying,
uint256 depositAmount,
uint8 marketIndex,
uint88 fCashAmount,
uint32 minLendRate
);
event LogDepositCollateralBorrowAndWithdraw(
2022-02-01 03:23:43 +00:00
address indexed account,
2021-12-16 01:49:32 +00:00
bool useUnderlying,
uint256 depositAmount,
uint16 borrowCurrencyId,
uint8 marketIndex,
uint88 fCashAmount,
uint32 maxBorrowRate,
bool redeemToUnderlying
);
event LogWithdrawLend(
2022-02-01 03:23:43 +00:00
address indexed account,
2021-12-16 01:49:32 +00:00
uint16 currencyId,
uint8 marketIndex,
uint88 fCashAmount,
uint32 maxBorrowRate
);
event LogBatchActionRaw(address indexed account);
2021-11-10 22:52:16 +00:00
}