Skip to content

Commit

Permalink
Fix fee position adding when updating fees (#2089)
Browse files Browse the repository at this point in the history
* Add fallback

* Add fee position when updating fees
  • Loading branch information
sophialittlejohn authored Apr 18, 2024
1 parent b4f0fb2 commit 934f16c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion centrifuge-app/src/components/PoolFees/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export function PoolFees() {
percentOfNav: feeChainData?.amounts?.percentOfNav,
pendingFees: feeChainData?.amounts.pending,
receivingAddress: feeChainData?.destination,
feePosition: feeMetadata?.feePosition,
feePosition: feeMetadata?.feePosition || 'Top of waterfall',
action:
(isAllowedToCharge || poolAdmin) && !fixedFee ? (
<RouterLinkButton
Expand Down
3 changes: 1 addition & 2 deletions centrifuge-js/src/modules/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3611,10 +3611,9 @@ export function getPoolsModule(inst: Centrifuge) {
}) || []),
...add.map((metadata, index) => {
return {
// chain refactor required: feeId needs to be assigned to fee when it's proposed
// until then multiple fees have to be added at once or all pending fees have to be applied before adding more
id: parseInt(lastFeeId.toHuman() as string) + index + 1,
name: metadata.fee.name,
feePosition: metadata.fee.feePosition,
}
}),
],
Expand Down

0 comments on commit 934f16c

Please sign in to comment.