diff --git a/package.json b/package.json index f95ab1d56c..45f386ddd9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rubic-sdk", - "version": "1.3.2", + "version": "1.3.3", "description": "Simplify dApp creation", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/features/cross-chain/providers/celer-trade-provider/celer-cross-chain-trade.ts b/src/features/cross-chain/providers/celer-trade-provider/celer-cross-chain-trade.ts index 451933eadd..e2420c546f 100644 --- a/src/features/cross-chain/providers/celer-trade-provider/celer-cross-chain-trade.ts +++ b/src/features/cross-chain/providers/celer-trade-provider/celer-cross-chain-trade.ts @@ -76,9 +76,9 @@ export class CelerCrossChainTrade extends CrossChainTrade { private readonly transitFeeToken: PriceTokenAmount; - private readonly from: PriceTokenAmount; + public readonly from: PriceTokenAmount; - private readonly to: PriceTokenAmount; + public readonly to: PriceTokenAmount; public readonly toTokenAmountMin: BigNumber; diff --git a/src/features/cross-chain/providers/common/cross-chain-trade.ts b/src/features/cross-chain/providers/common/cross-chain-trade.ts index a4a3a16be6..67ec3b3c4a 100644 --- a/src/features/cross-chain/providers/common/cross-chain-trade.ts +++ b/src/features/cross-chain/providers/common/cross-chain-trade.ts @@ -53,6 +53,10 @@ export abstract class CrossChainTrade { protected abstract readonly toWeb3Public: Web3Public; + public abstract readonly to: PriceTokenAmount; + + public abstract readonly from: PriceTokenAmount; + protected get walletAddress(): string { return Injector.web3Private.address; } diff --git a/src/features/cross-chain/providers/rubic-trade-provider/rubic-cross-chain-trade.ts b/src/features/cross-chain/providers/rubic-trade-provider/rubic-cross-chain-trade.ts index 52ceeeed8d..df45b986a6 100644 --- a/src/features/cross-chain/providers/rubic-trade-provider/rubic-cross-chain-trade.ts +++ b/src/features/cross-chain/providers/rubic-trade-provider/rubic-cross-chain-trade.ts @@ -71,9 +71,9 @@ export class RubicCrossChainTrade extends CrossChainTrade { private readonly transitFeeToken: PriceTokenAmount; - private readonly from: PriceTokenAmount; + public readonly from: PriceTokenAmount; - private readonly to: PriceTokenAmount; + public readonly to: PriceTokenAmount; public readonly toTokenAmountMin: BigNumber;