Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libraries/MarketEvents.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ function emit_Deposit(address account, uint256 assetAmount, uint256 scaledAmount
}
}

function emit_Borrow(uint256 assetAmount) {
function emit_Borrow(address borrower, uint256 assetAmount) {
assembly {
mstore(0, assetAmount)
log1(0, 0x20, 0xb848ae6b1253b6cb77e81464128ce8bd94d3d524fea54e801e0da869784dca33)
log2(0, 0x20, 0xb848ae6b1253b6cb77e81464128ce8bd94d3d524fea54e801e0da869784dca33, borrower)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/market/WildcatMarket.sol
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ contract WildcatMarket is

asset.safeTransfer(msg.sender, amount);
_writeState(state);
emit_Borrow(amount);
emit_Borrow(msg.sender, amount);
}

function _repay(MarketState memory state, uint256 amount, uint256 baseCalldataSize) internal {
Expand Down