@ape.swap/bonds-sdk 2.7.9 → 3.0.0-test.0
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.
- package/dist/components/uikit-sdk/Svg/tokens/index.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/types.d.ts +0 -1
- package/dist/config/constants/addresses.d.ts +0 -1
- package/dist/config/constants/tokens.d.ts +2 -2
- package/dist/config/constants/tooltips.d.ts +1 -0
- package/dist/main.js +23190 -23222
- package/dist/state/useSDKConfig.d.ts +1 -0
- package/dist/state/zap/useSoulZapBondQuote.d.ts +1 -1
- package/dist/types/bonds.d.ts +3 -0
- package/dist/utils/displayHelpers.d.ts +5 -3
- package/dist/views/BondModal/components/Estimations.d.ts +2 -2
- package/dist/views/Bonds/utils.d.ts +1 -0
- package/package.json +2 -2
- package/dist/components/uikit-sdk/Svg/tokens/CROSSFI.d.ts +0 -4
- package/dist/config/constants/zapInputTokens.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Token } from '@ape.swap/apeswap-lists';
|
|
2
2
|
import { BondsData } from '../../types/bonds';
|
|
3
|
-
declare const useSoulZapBondQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, bond: BondsData | undefined, account?: string) => [loading: boolean, response: any,
|
|
3
|
+
declare const useSoulZapBondQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, bond: BondsData | undefined, account?: string) => [loading: boolean, response: any, depositAmount: string, error: boolean];
|
|
4
4
|
export default useSoulZapBondQuote;
|
package/dist/types/bonds.d.ts
CHANGED
|
@@ -25,7 +25,9 @@ export declare function formatNumber(input: string): string;
|
|
|
25
25
|
export declare function formatUSDNumber(input: string): string;
|
|
26
26
|
export declare const youSpend: (inputValue: string) => string;
|
|
27
27
|
export declare const youSpendUSD: (bond: BondsData, inputValue: string) => string;
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const getRawPayoutAmount: (bond?: BondsData, inputValue?: string) => number;
|
|
29
|
+
export declare const getPayoutAmount: (bond?: BondsData, inputValue?: string) => number;
|
|
29
30
|
export declare const youGetUSD: (bond: BondsData, inputValue: string) => string;
|
|
30
|
-
export declare const
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const getRawBonus: (bond?: BondsData, inputValue?: string) => string;
|
|
32
|
+
export declare const getFeeAmount: (bond?: BondsData, inputValue?: string) => number | "0";
|
|
33
|
+
export declare const getBonusColor: (premiumString: string) => string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Token } from '@ape.swap/apeswap-lists';
|
|
3
3
|
import { BondsData } from '../../../types/bonds';
|
|
4
|
-
declare const Estimations: ({ bondData, inputValue, inputToken,
|
|
4
|
+
declare const Estimations: ({ bondData, inputValue, inputToken, depositAmount, inputTokenPrice, isZap, fetchingZapQuote, zapError, }: {
|
|
5
5
|
bondData: BondsData;
|
|
6
6
|
inputValue: string;
|
|
7
7
|
inputToken: Token | "NATIVE" | undefined;
|
|
8
|
-
|
|
8
|
+
depositAmount: string;
|
|
9
9
|
inputTokenPrice?: number;
|
|
10
10
|
isZap?: boolean;
|
|
11
11
|
fetchingZapQuote?: boolean;
|
|
@@ -14,3 +14,4 @@ export declare const vestingTime: (vestingTerm?: number) => {
|
|
|
14
14
|
export declare const remainingPercentage: (bond: BondsData) => number;
|
|
15
15
|
export declare const getDiscountColor: (discount?: number) => string;
|
|
16
16
|
export declare const calculateARR: (bond: BondsData | BillsConfig) => string;
|
|
17
|
+
export declare const isBondSupported: (SDKVersion: string, bondVersion: string) => boolean;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Ape Bond SDK",
|
|
4
4
|
"author": "Ape Bond",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "3.0.0-test.0",
|
|
7
7
|
"module": "dist/main.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "dist/main.d.ts",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"yalc": "^1.0.0-pre.53"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@ape.swap/apeswap-lists": "
|
|
59
|
+
"@ape.swap/apeswap-lists": "4.0.0",
|
|
60
60
|
"@emotion/react": "11.11.4",
|
|
61
61
|
"bignumber.js": "^9.1.2",
|
|
62
62
|
"chart.js": "4.2.0",
|