2021-06-02 10:19:05 +00:00
|
|
|
pragma solidity ^0.7.6;
|
2021-06-01 14:50:52 +00:00
|
|
|
|
|
|
|
contract Events {
|
|
|
|
|
|
|
|
/* Trove */
|
|
|
|
event LogOpen(
|
|
|
|
address indexed borrower,
|
|
|
|
uint maxFeePercentage,
|
|
|
|
uint depositAmount,
|
|
|
|
uint borrowAmount,
|
2021-06-30 16:16:05 +00:00
|
|
|
uint256[] getIds,
|
|
|
|
uint256[] setIds
|
2021-06-01 14:50:52 +00:00
|
|
|
);
|
|
|
|
event LogClose(address indexed borrower, uint setId);
|
2021-06-25 20:10:45 +00:00
|
|
|
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);
|
2021-06-01 14:50:52 +00:00
|
|
|
event LogAdjust(
|
|
|
|
address indexed borrower,
|
|
|
|
uint maxFeePercentage,
|
|
|
|
uint depositAmount,
|
|
|
|
uint withdrawAmount,
|
|
|
|
uint borrowAmount,
|
|
|
|
uint repayAmount,
|
2021-06-30 16:16:05 +00:00
|
|
|
uint256[] getIds,
|
|
|
|
uint256[] setIds
|
2021-06-01 14:50:52 +00:00
|
|
|
);
|
2021-06-04 11:18:16 +00:00
|
|
|
event LogClaimCollateralFromRedemption(address indexed borrower, uint amount, uint setId);
|
2021-06-01 14:50:52 +00:00
|
|
|
|
|
|
|
/* Stability Pool */
|
2021-06-04 14:55:04 +00:00
|
|
|
event LogStabilityDeposit(
|
|
|
|
address indexed borrower,
|
|
|
|
uint amount,
|
2021-06-09 20:02:06 +00:00
|
|
|
uint ethGain,
|
|
|
|
uint lqtyGain,
|
2021-06-04 14:55:04 +00:00
|
|
|
address frontendTag,
|
|
|
|
uint getDepositId,
|
2021-06-26 13:00:03 +00:00
|
|
|
uint setDepositId,
|
2021-06-04 14:55:04 +00:00
|
|
|
uint setEthGainId,
|
|
|
|
uint setLqtyGainId
|
|
|
|
);
|
|
|
|
event LogStabilityWithdraw(address indexed borrower,
|
|
|
|
uint amount,
|
2021-06-09 20:02:06 +00:00
|
|
|
uint ethGain,
|
|
|
|
uint lqtyGain,
|
2021-06-26 13:00:03 +00:00
|
|
|
uint getWithdrawId,
|
2021-06-04 14:55:04 +00:00
|
|
|
uint setWithdrawId,
|
|
|
|
uint setEthGainId,
|
|
|
|
uint setLqtyGainId
|
|
|
|
);
|
2021-06-04 11:18:16 +00:00
|
|
|
event LogStabilityMoveEthGainToTrove(address indexed borrower, uint amount);
|
2021-06-01 14:50:52 +00:00
|
|
|
|
|
|
|
/* Staking */
|
2021-06-30 16:16:05 +00:00
|
|
|
event LogStake(address indexed borrower, uint amount, uint getStakeId, uint setStakeId, uint setEthGainId, uint setLusdGainId);
|
2021-06-26 13:00:03 +00:00
|
|
|
event LogUnstake(address indexed borrower, uint amount, uint getUnstakeId, uint setUnstakeId, uint setEthGainId, uint setLusdGainId);
|
2021-06-04 14:55:04 +00:00
|
|
|
event LogClaimStakingGains(address indexed borrower, uint ethGain, uint lusdGain, uint setEthGainId, uint setLusdGainId);
|
2021-06-02 10:19:05 +00:00
|
|
|
}
|