Sovryn-smart-contracts icon indicating copy to clipboard operation
Sovryn-smart-contracts copied to clipboard

Turn the parameter `loanId` as an indexed parameter in the `DepositCollateral` event

Open jjmr007 opened this issue 3 years ago • 0 comments

Rationale

It simplifies the searching of all collateral added to a specific loan position

Change

from this: event DepositCollateral(bytes32 loanId, uint256 depositAmount, uint256 rate);

to this:

event DepositCollateral(bytes32 indexed loanId, uint256 depositAmount, uint256 rate);

jjmr007 avatar Nov 06 '21 18:11 jjmr007