Skip to content

Commit

Permalink
Add USD price to assets response (#825) (#833)
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Mindov <antonio.mindov@limechain.tech>
  • Loading branch information
rokn authored Feb 14, 2023
1 parent 5b1cd89 commit b9c69b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/router/assets/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type fungibleBridgeDetails struct {
*asset.FungibleAssetInfo
FeePercentage feePercentageInfo `json:"feePercentage"`
MinAmount string `json:"minAmount"`
UsdPrice string `json:"usdPrice"`
Networks map[uint64]string `json:"networks"`
ReserveAmount string `json:"reserveAmount"`
ReleaseTimestamp uint64 `json:"releaseTimestamp,omitempty"`
Expand Down Expand Up @@ -101,6 +102,7 @@ func generateResponseContent(assetsService service.Assets, pricingService servic
FungibleAssetInfo: fungibleAssetInfo,
FeePercentage: feePercentageInfo{feePercentage, constants.FeeMaxPercentage},
MinAmount: minAmount.MinAmountWithFee.String(),
UsdPrice: minAmount.UsdPrice.String(),
Networks: bridgeTokenInfo.Networks,
ReserveAmount: fungibleAssetInfo.ReserveAmount.String(),
ReleaseTimestamp: bridgeTokenInfo.ReleaseTimestamp,
Expand Down

0 comments on commit b9c69b5

Please sign in to comment.