We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce47bf commit 68a42eaCopy full SHA for 68a42ea
lib/agent/positionsCreateWithAnyTokens.ts
@@ -87,7 +87,13 @@ export async function positionsCreateWithAnyTokens(
87
: options.tokenAmount
88
? await cont.getEstimatedDevForTokens(
89
options.path,
90
- options.tokenAmount,
+ typeof options.gatewayBasisPoints === 'number'
91
+ ? (
92
+ (BigInt(options.tokenAmount) *
93
+ BigInt(options.gatewayBasisPoints)) /
94
+ BigInt('10000')
95
+ ).toString()
96
+ : options.tokenAmount,
97
)
98
: 'Neither devAmountOut nor tokenAmount provided'
99
const deadline = options.deadline
0 commit comments