Skip to content

Commit

Permalink
Merge branch 'main' of github.com:sonarwatch/portfolio
Browse files Browse the repository at this point in the history
  • Loading branch information
Geninsus committed Nov 8, 2024
2 parents 268c741 + c2287af commit c5b6d09
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
4 changes: 4 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sonarwatch/portfolio-core",
"version": "0.14.27",
"version": "0.14.28",
"type": "commonjs",
"types": "./src/index.d.ts",
"dependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/core/src/utils/getNetworkIdFromString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
4 changes: 4 additions & 0 deletions packages/plugins/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sonarwatch/portfolio-plugins",
"version": "0.14.26",
"version": "0.14.27",
"type": "commonjs",
"types": "./src/index.d.ts",
"peerDependencies": {
Expand Down
10 changes: 6 additions & 4 deletions packages/plugins/src/plugins/nxfinance/stakingFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c5b6d09

Please sign in to comment.