Skip to content

Commit

Permalink
Adding getDeposit function to MezoPortalStub
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpar committed Apr 8, 2024
1 parent 98c6f00 commit ba702cb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions core/contracts/test/MezoPortalStub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,15 @@ contract MezoPortalStub {
depositCount++;
IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
}

function getDeposit(
address depositor,
address token,
uint256 depositId
) external view returns (uint96 balance, uint256 unlockAt) {
return (
uint96(IERC20(token).balanceOf(address(this))),
block.timestamp
);
}
}

0 comments on commit ba702cb

Please sign in to comment.