mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Merge branch 'fix/69' into 'master'
Resolve "Fix Peckshield evidence PVE016: Business logic in validateWithdraw()" Closes #69 See merge request aave-tech/protocol-v2!78
This commit is contained in:
commit
7a076a8d11
|
@ -65,7 +65,7 @@ library ValidationLogic {
|
||||||
GenericLogic.balanceDecreaseAllowed(
|
GenericLogic.balanceDecreaseAllowed(
|
||||||
reserveAddress,
|
reserveAddress,
|
||||||
msg.sender,
|
msg.sender,
|
||||||
userBalance,
|
amount,
|
||||||
reservesData,
|
reservesData,
|
||||||
userConfig,
|
userConfig,
|
||||||
reserves,
|
reserves,
|
||||||
|
|
|
@ -342,6 +342,20 @@
|
||||||
"expected": "success"
|
"expected": "success"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Users 1 tries to withdraw 0.05 WETH, which does not bring the HF below 1",
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"name": "withdraw",
|
||||||
|
"args": {
|
||||||
|
"reserve": "WETH",
|
||||||
|
"amount": "0.05",
|
||||||
|
"user": "1"
|
||||||
|
},
|
||||||
|
"expected": "success"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user