mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
59 lines
2.0 KiB
Solidity
59 lines
2.0 KiB
Solidity
pragma solidity ^0.7.6;
|
|
|
|
contract Events {
|
|
|
|
/* Trove */
|
|
event LogOpen(
|
|
address indexed borrower,
|
|
uint maxFeePercentage,
|
|
uint depositAmount,
|
|
uint borrowAmount,
|
|
uint256[] getIds,
|
|
uint256[] setIds
|
|
);
|
|
event LogClose(address indexed borrower, uint setId);
|
|
event LogDeposit(address indexed borrower, uint amount, uint getId, uint setId);
|
|
event LogWithdraw(address indexed borrower, uint amount, uint getId, uint setId);
|
|
event LogBorrow(address indexed borrower, uint amount, uint getId, uint setId);
|
|
event LogRepay(address indexed borrower, uint amount, uint getId, uint setId);
|
|
event LogAdjust(
|
|
address indexed borrower,
|
|
uint maxFeePercentage,
|
|
uint depositAmount,
|
|
uint withdrawAmount,
|
|
uint borrowAmount,
|
|
uint repayAmount,
|
|
uint256[] getIds,
|
|
uint256[] setIds
|
|
);
|
|
event LogClaimCollateralFromRedemption(address indexed borrower, uint amount, uint setId);
|
|
|
|
/* Stability Pool */
|
|
event LogStabilityDeposit(
|
|
address indexed borrower,
|
|
uint amount,
|
|
uint ethGain,
|
|
uint lqtyGain,
|
|
address frontendTag,
|
|
uint getDepositId,
|
|
uint setDepositId,
|
|
uint setEthGainId,
|
|
uint setLqtyGainId
|
|
);
|
|
event LogStabilityWithdraw(address indexed borrower,
|
|
uint amount,
|
|
uint ethGain,
|
|
uint lqtyGain,
|
|
uint getWithdrawId,
|
|
uint setWithdrawId,
|
|
uint setEthGainId,
|
|
uint setLqtyGainId
|
|
);
|
|
event LogStabilityMoveEthGainToTrove(address indexed borrower, uint amount);
|
|
|
|
/* Staking */
|
|
event LogStake(address indexed borrower, uint amount, uint getStakeId, uint setStakeId, uint setEthGainId, uint setLusdGainId);
|
|
event LogUnstake(address indexed borrower, uint amount, uint getUnstakeId, uint setUnstakeId, uint setEthGainId, uint setLusdGainId);
|
|
event LogClaimStakingGains(address indexed borrower, uint ethGain, uint lusdGain, uint setEthGainId, uint setLusdGainId);
|
|
}
|