@curvefi/api 2.68.30 → 2.68.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -184,6 +184,7 @@ export declare class PoolTemplate extends CorePool {
|
|
|
184
184
|
getSwapInfo(): Promise<ISwapMethodInfo>;
|
|
185
185
|
_swapWrappedExpected(i: number, j: number, _amount: bigint): Promise<bigint>;
|
|
186
186
|
swapWrappedExpected(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<string>;
|
|
187
|
+
swapWrappedExpectedBigInt(inputCoin: string | number, outputCoin: string | number, amount: bigint): Promise<bigint>;
|
|
187
188
|
swapWrappedPriceImpact(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<number>;
|
|
188
189
|
swapWrappedIsApproved(inputCoin: string | number, amount: number | string): Promise<boolean>;
|
|
189
190
|
private swapWrappedApproveEstimateGas;
|
|
@@ -1832,6 +1832,12 @@ export class PoolTemplate extends CorePool {
|
|
|
1832
1832
|
throw Error(`swapWrappedExpected method doesn't exist for pool ${this.name} (id: ${this.name})`);
|
|
1833
1833
|
});
|
|
1834
1834
|
}
|
|
1835
|
+
// OVERRIDE
|
|
1836
|
+
swapWrappedExpectedBigInt(inputCoin, outputCoin, amount) {
|
|
1837
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1838
|
+
throw Error(`swapWrappedExpectedBigInt method doesn't exist for pool ${this.name} (id: ${this.name})`);
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1835
1841
|
swapWrappedPriceImpact(inputCoin, outputCoin, amount) {
|
|
1836
1842
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1837
1843
|
if (this.isPlain || this.isFake) {
|