mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
91 lines
2.1 KiB
Solidity
91 lines
2.1 KiB
Solidity
pragma solidity ^0.7.6;
|
|
|
|
contract Events {
|
|
event LogDepositCollateral(
|
|
address indexed account,
|
|
uint16 currencyId,
|
|
bool isUnderlying,
|
|
uint256 depositAmount,
|
|
uint256 assetCashDeposited
|
|
);
|
|
|
|
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(
|
|
address indexed account,
|
|
bool useUnderlying,
|
|
uint256 depositAmount,
|
|
uint16 borrowCurrencyId,
|
|
uint8 marketIndex,
|
|
uint88 fCashAmount,
|
|
uint32 maxBorrowRate,
|
|
bool redeemToUnderlying
|
|
);
|
|
|
|
event LogWithdrawLend(
|
|
address indexed account,
|
|
uint16 currencyId,
|
|
uint8 marketIndex,
|
|
uint88 fCashAmount,
|
|
uint32 maxBorrowRate
|
|
);
|
|
|
|
event LogBatchActionRaw(address indexed account);
|
|
}
|