Skip to content

Commit

Permalink
Merge pull request #525 from logion-network/feature/recurrent-fees-di…
Browse files Browse the repository at this point in the history
…splay

Show recurrent fees in estimation
  • Loading branch information
gdethier authored Nov 8, 2023
2 parents 5986840 + 9ba6f1c commit 60605be
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
24 changes: 24 additions & 0 deletions src/loc/fees/EstimatedFees.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,30 @@ export default function EstimatedFees(props: Props) {
{ showPaidBy && <td>{ props.otherFeesPaidBy || "" }</td> }
</tr>
}
{ props.fees.collectionItemFee !== undefined &&
<tr>
<td>Collection item fee</td>
<td>
<AmountFormat
amount={ Currency.toPrefixedNumberAmount(props.fees.collectionItemFee).convertTo(Numbers.NONE) }
decimals={4}
/>
</td>
{ showPaidBy && <td>{ props.otherFeesPaidBy || "" }</td> }
</tr>
}
{ props.fees.tokensRecordFee !== undefined &&
<tr>
<td>Tokens record fee</td>
<td>
<AmountFormat
amount={ Currency.toPrefixedNumberAmount(props.fees.tokensRecordFee).convertTo(Numbers.NONE) }
decimals={4}
/>
</td>
{ showPaidBy && <td>{ props.otherFeesPaidBy || "" }</td> }
</tr>
}
<tr>
<td>Total</td>
<td>
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2986,14 +2986,14 @@ __metadata:
linkType: hard

"@logion/client@npm:^0.34.0-1":
version: 0.34.0-2
resolution: "@logion/client@npm:0.34.0-2"
version: 0.34.0-5
resolution: "@logion/client@npm:0.34.0-5"
dependencies:
"@logion/node-api": ^0.25.0-1
"@logion/node-api": ^0.25.0-2
axios: ^0.27.2
luxon: ^3.0.1
mime-db: ^1.52.0
checksum: 312e5c72a4fdb1b290e88ab489e78f4fa874ea75ac5e0df4a29de60d712c419311ccf226e195fb60b0b2d45c79298b0138da659eb7cdc5efac0ecc15a4935e53
checksum: 9ddf6144f49f69ca85a3fa91937f66d26e193dbb181000360f02fb28765d60ce1e5c3df1c0ca8b431bdbbde2c6287f698d81a8cbde594a3f3c4625b1495c1241
languageName: node
linkType: hard

Expand Down Expand Up @@ -3035,17 +3035,17 @@ __metadata:
languageName: node
linkType: hard

"@logion/node-api@npm:^0.25.0-1":
version: 0.25.0-1
resolution: "@logion/node-api@npm:0.25.0-1"
"@logion/node-api@npm:^0.25.0-2":
version: 0.25.0-2
resolution: "@logion/node-api@npm:0.25.0-2"
dependencies:
"@polkadot/api": ^10.10.1
"@polkadot/util": ^12.5.1
"@polkadot/util-crypto": ^12.5.1
"@types/uuid": ^9.0.2
fast-sha256: ^1.3.0
uuid: ^9.0.0
checksum: 8ab62d0207ddc79f9642ce8f10c4bdda574127c1ddf382b58a8023e25ca37eed92373801820ff3efbd2ef08923f2fb3d6c634fd3cbf014192fb0cb302819129d
checksum: 70da426c762bba8c7efc51fda59b47841988a1ed99cf31282fe40f2da52a5fd912f59ea8106b95e40580b3ee6d8ac50c2e9366fc3549be5fd05749bee1361481
languageName: node
linkType: hard

Expand Down

0 comments on commit 60605be

Please sign in to comment.