15,000 USDC
View results
Submission Details
Severity: low

tests/unit/test_dsce.py:288: AssertionError if liquidate a bigger amount of eth

Summary

I adjusted the AMOUNT_COLLATERAL in the conftest.py file in brownie framework and the unit test failed as liquidator_weth_balance>expected_weth + 55.

tests/unit/test_dsce.py:288: AssertionError
def test_liquidation_payout_is_correct(liquidated_dsce, liquidator):

assert expected_weth - 55 <= liquidator_weth_balance <= expected_weth + 55
E assert 611111111111111111111110 <= (611111111111111110555555 + 55)

AMOUNT_COLLATERAL = web3.toWei(1000000, "ether")
AMOUNT_DSC_TO_MINT = web3.toWei(101000000, "ether")
COLLATERAL_TO_COVER = web3.toWei(2
1000000, "ether")

Vulnerability Details

There are errors if big amount of eth to liquidate.

Impact

There are errors if big amount of eth to liquidate.

Tools Used

brownie framework

Recommendations

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.