Skip to content

Commit

Permalink
add events
Browse files Browse the repository at this point in the history
  • Loading branch information
sirnicolaz committed Dec 5, 2023
1 parent 6ada436 commit 892e5ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/InternalMarket/InternalMarketBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ contract InternalMarketBase {

event OfferMatched(uint128 id, address from, address to, uint256 amount);
event Withdrawn(address from, address to, uint256 amount);
event Deposited(address from, uint256 amount);
event Settled(address from);

struct Offer {
uint256 expiredAt;
Expand Down Expand Up @@ -221,10 +223,12 @@ contract InternalMarketBase {

function _deposit(address to, uint256 amount) internal virtual {
tokenInternal.wrap(to, amount);
emit Deposited(to, amount);
}

function _finalizeDeposit(address to) internal virtual {
tokenInternal.settleTokens(to);
emit Settled(to);
}

function _redeem(address from, uint256 amount) internal virtual {
Expand Down

0 comments on commit 892e5ee

Please sign in to comment.