Skip to content

Commit

Permalink
add amount as well
Browse files Browse the repository at this point in the history
  • Loading branch information
vvalecha519 committed Aug 16, 2024
1 parent 96ed91b commit a5a20b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WithdrawRequestNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +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);
event UpdateFinalizedRequestId(uint32 indexed requestId, uint128 finalizedAmount);

error IncorrectRole();

Expand Down Expand Up @@ -253,7 +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));
emit UpdateFinalizedRequestId(uint32(lastRequestId), totalAmount);
lastFinalizedRequestId = uint32(lastRequestId);
liquidityPool.addEthAmountLockedForWithdrawal(totalAmount);
}
Expand Down

0 comments on commit a5a20b2

Please sign in to comment.