diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index bcc121d3..10dfd3fe 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -2,6 +2,10 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.14.28](https://github.com/sonarwatch/portfolio/compare/core-0.14.27...core-0.14.28) (2024-11-08) + + + ## [0.14.27](https://github.com/sonarwatch/portfolio/compare/core-0.14.26...core-0.14.27) (2024-11-07) diff --git a/packages/core/package.json b/packages/core/package.json index a5a29f77..5f0636d4 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@sonarwatch/portfolio-core", - "version": "0.14.27", + "version": "0.14.28", "type": "commonjs", "types": "./src/index.d.ts", "dependencies": { diff --git a/packages/core/src/utils/getNetworkIdFromString.ts b/packages/core/src/utils/getNetworkIdFromString.ts index c68752f1..581d331c 100644 --- a/packages/core/src/utils/getNetworkIdFromString.ts +++ b/packages/core/src/utils/getNetworkIdFromString.ts @@ -6,3 +6,9 @@ export function getNetworkIdFromString( if (networkId in NetworkId) return networkId as NetworkIdType; return null; } + +export function networkIdFromString(networkId: string): NetworkIdType { + const nNetworkId = getNetworkIdFromString(networkId); + if (!nNetworkId) throw new Error(`networkId not valid: ${networkId}`); + return nNetworkId; +} diff --git a/packages/plugins/CHANGELOG.md b/packages/plugins/CHANGELOG.md index 7bddf1bc..474e5897 100644 --- a/packages/plugins/CHANGELOG.md +++ b/packages/plugins/CHANGELOG.md @@ -2,6 +2,10 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.14.27](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.26...plugins-0.14.27) (2024-11-08) + + + ## [0.14.26](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.25...plugins-0.14.26) (2024-11-07) diff --git a/packages/plugins/package.json b/packages/plugins/package.json index e8782503..a2672b1c 100644 --- a/packages/plugins/package.json +++ b/packages/plugins/package.json @@ -1,6 +1,6 @@ { "name": "@sonarwatch/portfolio-plugins", - "version": "0.14.26", + "version": "0.14.27", "type": "commonjs", "types": "./src/index.d.ts", "peerDependencies": { diff --git a/packages/plugins/src/plugins/nxfinance/stakingFetcher.ts b/packages/plugins/src/plugins/nxfinance/stakingFetcher.ts index b96002ca..9ed79eda 100644 --- a/packages/plugins/src/plugins/nxfinance/stakingFetcher.ts +++ b/packages/plugins/src/plugins/nxfinance/stakingFetcher.ts @@ -77,10 +77,12 @@ const executor: FetcherExecutor = async (owner: string, cache: Cache) => { amount: (M.isGreaterThan(A) ? A : M).toNumber(), }); */ - element.addRewardAsset({ - address: solanaNativeAddress, - amount: stakingAccount.claimableReward, - }); + if (new BigNumber(stakingAccount.claimableReward).isGreaterThan(0.002)) { + element.addRewardAsset({ + address: solanaNativeAddress, + amount: stakingAccount.claimableReward, + }); + } element.addSuppliedAsset({ address: stakePoolAccount.stakeTokenMint,