mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-17 08:41:38 +03:00
fix incorrect definition of useExchangeBalance
This commit is contained in:
@@ -170,7 +170,7 @@ export async function generateSwapCalldata({
|
||||
true
|
||||
);
|
||||
const useExchangeBalance =
|
||||
initiatorExchangeBalance !== 0n && (srcToken === ZeroAddress || amountNativeDecimals < initiatorWalletBalance);
|
||||
initiatorExchangeBalance !== 0n && (srcToken === ZeroAddress || initiatorWalletBalance < amountNativeDecimals);
|
||||
if (useExchangeBalance) {
|
||||
swapDescription.flags = 1n << 255n;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user