Skip to content

Mint Dsc Invariant test lesson 24 error on call depositCollateral. #2827

Answered by EngrPips
Totiruzi asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Totiruzi, In the below line of code you should be getting the balance of DSCE and not dsc

uint256 totalWethDeposited = IERC20(weth).balanceOf(address(dsc));
uint256 totalWbtcDeposited = IERC20(wbtc).balanceOf(address(dsc));

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
7 replies
@Totiruzi
Comment options

@EngrPips
Comment options

@Totiruzi
Comment options

@Totiruzi
Comment options

@Totiruzi
Comment options

Comment options

You must be logged in to vote
4 replies
@Totiruzi
Comment options

@EngrPips
Comment options

Answer selected by Totiruzi
@Totiruzi
Comment options

@EngrPips
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants