Skip to content

Commit 0977385

Browse files
authored
Merge pull request elizaOS#2150 from ChainRex/fix-plugin-sui
fix: correct SUI/USD price calculation
2 parents 2ab9af7 + 4721bf3 commit 0977385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-sui/src/providers/wallet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class WalletProvider {
181181
}
182182
);
183183
const prices: Prices = {
184-
sui: { usd: suiPriceData.pair.priceUsd },
184+
sui: { usd: (1 / suiPriceData.pair.priceNative).toString() },
185185
};
186186
this.setCachedData(cacheKey, prices);
187187
return prices;

0 commit comments

Comments
 (0)