Skip to content

Commit

Permalink
Changed asset variable name in getTokenEquivalent function
Browse files Browse the repository at this point in the history
  • Loading branch information
timofeytrepalin committed Mar 10, 2023
1 parent 27e3f40 commit a5663ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/routeAssets/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export default {

export function getTokenEquivalent(
priceObject: FiatPriceObject,
assetTo: Asset | AccountAsset | WhitelistArrayItem,
asset: Asset | AccountAsset | WhitelistArrayItem,
usd: number | string
): FPNumber {
return new FPNumber(usd).div(FPNumber.fromCodecValue(priceObject[assetTo.address], assetTo.decimals));
return new FPNumber(usd).div(FPNumber.fromCodecValue(priceObject[asset.address], asset.decimals));
}

export function getAssetUSDPrice(asset, fiatPriceObject) {
Expand Down

0 comments on commit a5663ec

Please sign in to comment.