Skip to content

Commit

Permalink
feat: storage
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
  • Loading branch information
md0x committed Nov 17, 2023
1 parent d7da74a commit 2c26cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HoneyPot.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ contract HoneyPot is Ownable {
(, int256 currentPrice,,,) = oracle.latestRoundData();
require(currentPrice >= 0, "Invalid price from oracle");

HoneyPotDetails memory userPot = honeyPots[honeyPotCreator];
HoneyPotDetails storage userPot = honeyPots[honeyPotCreator];

require(currentPrice != userPot.liquidationPrice, "Liquidation price reached for this user");
require(userPot.balance > 0, "No balance to withdraw");
Expand Down

0 comments on commit 2c26cf7

Please sign in to comment.