Skip to content

Commit c4dd51e

Browse files
committed
smh fix
Signed-off-by: Ihor Farion <ihor@umaproject.org>
1 parent 5784205 commit c4dd51e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/periphery/mintburn/HyperCoreFlowExecutor.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ contract HyperCoreFlowExecutor is AccessControlUpgradeable, AuthorizedFundedFlow
865865
// User account can be absent if our AccountCreationMode is `FromUserFunds`. We need to adjust our transfer amount to user based on this
866866
if (!HyperCoreLib.coreUserExists(swap.finalRecipient)) {
867867
// This is enforced by `_initiateSwapFlow`. If the setting changed, this revert can trigger. Requires manual resolution (creating an account)
868-
if (!finalCoreTokenInfo.canBeUsedForAccountActivation) revert TokenNotEligibleForActivation();
868+
require(finalCoreTokenInfo.canBeUsedForAccountActivation, TokenNotEligibleForActivation());
869869
accountActivationFee = finalCoreTokenInfo.accountActivationFeeCore;
870870
}
871871

@@ -1133,7 +1133,7 @@ contract HyperCoreFlowExecutor is AccessControlUpgradeable, AuthorizedFundedFlow
11331133
}
11341134

11351135
// If the order total is not enough to cover account creation, the account has to be created separately (by the User or Bot) to be able to finalize this swap flow
1136-
require(totalAttributableToUser < accountActivationFee + 1, InsufficientFundsForActivation());
1136+
require(totalAttributableToUser > accountActivationFee, InsufficientFundsForActivation());
11371137

11381138
amountToTransfer = totalAttributableToUser - accountActivationFee;
11391139
}

0 commit comments

Comments
 (0)