Skip to content

Commit

Permalink
Merge pull request #145 from etherfi-protocol/vaibhav/add-withdraw-re…
Browse files Browse the repository at this point in the history
…quest-event

Add Event when Finalized Requested Updated
  • Loading branch information
vvalecha519 authored Aug 18, 2024
2 parents 1a31f12 + a5a20b2 commit eadb439
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/WithdrawRequestNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ contract WithdrawRequestNFT is ERC721Upgradeable, UUPSUpgradeable, OwnableUpgrad
event WithdrawRequestInvalidated(uint32 indexed requestId);
event WithdrawRequestValidated(uint32 indexed requestId);
event WithdrawRequestSeized(uint32 indexed requestId);
event UpdateFinalizedRequestId(uint32 indexed requestId, uint128 finalizedAmount);

error IncorrectRole();

Expand Down Expand Up @@ -252,6 +253,7 @@ contract WithdrawRequestNFT is ERC721Upgradeable, UUPSUpgradeable, OwnableUpgrad
function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}

function _finalizeRequests(uint256 lastRequestId, uint128 totalAmount) internal {
emit UpdateFinalizedRequestId(uint32(lastRequestId), totalAmount);
lastFinalizedRequestId = uint32(lastRequestId);
liquidityPool.addEthAmountLockedForWithdrawal(totalAmount);
}
Expand Down

0 comments on commit eadb439

Please sign in to comment.