Commit bab6c1c
committed
feat: add protocolFee to getJoinSpacePriceDetails response (#4269)
### Description
Added protocol fee to the `getJoinSpacePriceDetails` method to properly
account for the total cost when joining a space.
### Changes
- Added `protocolFee` property to the return type of
`getJoinSpacePriceDetails`
- Updated the method to fetch protocol fee data via multicall
- Modified the method to decode and return the protocol fee value
- Updated tests to verify that the price includes the protocol fee
### Checklist
- [x] Tests added where required
- [x] Documentation updated where applicable
- [x] Changes adhere to the repository's contribution guidelines1 parent 8b93c7b commit bab6c1c
File tree
3 files changed
+18
-4
lines changed- packages
- sdk/src/tests/multi
- web3
- src/space-dapp
- tests
3 files changed
+18
-4
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
159 | 160 | | |
160 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1525 | 1525 | | |
1526 | 1526 | | |
1527 | 1527 | | |
| 1528 | + | |
1528 | 1529 | | |
1529 | 1530 | | |
1530 | 1531 | | |
| |||
1548 | 1549 | | |
1549 | 1550 | | |
1550 | 1551 | | |
| 1552 | + | |
| 1553 | + | |
1551 | 1554 | | |
1552 | 1555 | | |
1553 | 1556 | | |
1554 | 1557 | | |
1555 | 1558 | | |
| 1559 | + | |
1556 | 1560 | | |
1557 | 1561 | | |
1558 | 1562 | | |
1559 | 1563 | | |
1560 | 1564 | | |
| 1565 | + | |
1561 | 1566 | | |
1562 | 1567 | | |
1563 | 1568 | | |
| |||
1577 | 1582 | | |
1578 | 1583 | | |
1579 | 1584 | | |
1580 | | - | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1581 | 1589 | | |
1582 | 1590 | | |
1583 | 1591 | | |
| |||
1589 | 1597 | | |
1590 | 1598 | | |
1591 | 1599 | | |
| 1600 | + | |
1592 | 1601 | | |
1593 | 1602 | | |
1594 | 1603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | | - | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
0 commit comments