Skip to content

Commit

Permalink
Fixed #69
Browse files Browse the repository at this point in the history
  • Loading branch information
The3D committed Oct 15, 2020
1 parent 81df469 commit b4f8592
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/libraries/logic/ValidationLogic.sol
Expand Up @@ -65,7 +65,7 @@ library ValidationLogic {
GenericLogic.balanceDecreaseAllowed(
reserveAddress,
msg.sender,
userBalance,
amount,
reservesData,
userConfig,
reserves,
Expand Down
14 changes: 14 additions & 0 deletions test/helpers/scenarios/withdraw.json
Expand Up @@ -342,6 +342,20 @@
"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"
}
]
}
]
}

0 comments on commit b4f8592

Please sign in to comment.