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(21000000, "ether")
There are errors if big amount of eth to liquidate.
There are errors if big amount of eth to liquidate.
brownie framework
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.