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:
Ernesto Boado 2020-10-16 07:08:38 +00:00
commit 7a076a8d11
2 changed files with 15 additions and 1 deletions

View File

@ -65,7 +65,7 @@ library ValidationLogic {
GenericLogic.balanceDecreaseAllowed( GenericLogic.balanceDecreaseAllowed(
reserveAddress, reserveAddress,
msg.sender, msg.sender,
userBalance, amount,
reservesData, reservesData,
userConfig, userConfig,
reserves, reserves,

View File

@ -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"
}
]
} }
] ]
} }