-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from Cryptorubic/develop
Develop
- Loading branch information
Showing
21 changed files
with
2,707 additions
and
2,836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v16.6.0 | ||
v16.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/common/errors/cross-chain/cross-chain-max-amount-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { RubicSdkError } from '@common/errors/rubic-sdk.error'; | ||
import BigNumber from 'bignumber.js'; | ||
import { PriceTokenAmount } from 'src/core'; | ||
|
||
export class CrossChainMaxAmountError extends RubicSdkError { | ||
constructor(public readonly maxAmount: BigNumber, public readonly token: PriceTokenAmount) { | ||
super(`Max amount is ${maxAmount.toFixed()} ${token.symbol}`); | ||
Object.setPrototypeOf(this, CrossChainMaxAmountError.prototype); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/common/errors/cross-chain/cross-chain-min-amount-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { RubicSdkError } from '@common/errors/rubic-sdk.error'; | ||
import BigNumber from 'bignumber.js'; | ||
import { PriceTokenAmount } from 'src/core'; | ||
|
||
export class CrossChainMinAmountError extends RubicSdkError { | ||
constructor(public readonly minAmount: BigNumber, public readonly token: PriceTokenAmount) { | ||
super(`Min amount is ${minAmount.toFixed()} ${token.symbol}`); | ||
Object.setPrototypeOf(this, CrossChainMinAmountError.prototype); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.