Skip to content

Commit cb82451

Browse files
committed
Force max unstake on Kiln ETH positions
This is a hack to prevent users from being able to enter a greater amount of LP tokens than they actually have. Since the currency plugins and GUI's stake plugins all still rely on currency code, the actual balance of LP tokens isn't readily available and would recover some hacking to override the balance used in the flip input modal. We're not passing the correct tokenId in anyway so introducing hack in the stake scenes and flip input could just cause more issues.
1 parent 131ff77 commit cb82451

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased (develop)
44

5+
- changed: Force max unstake on Kiln ETH positions
6+
57
## 4.22.0 (staging)
68

79
- added: `NotificationCenterScene`

src/plugins/stake-plugins/generic/pluginInfo/ethereumKilnPool.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const kilnPolicyConfig: Array<StakePolicyConfig<EthereumPooledKilnAdapterConfig>
2121
pluginId: 'holesky',
2222
rpcProviderUrls: [`https://ethereum-holesky-rpc.publicnode.com`, 'https://1rpc.io/holesky']
2323
},
24+
mustMaxUnstake: true, // TODO: This can be removed once engines have LP token balances
2425
hideUnstakeAndClaimAction: true,
2526
stakeAssets: [{ pluginId: 'holesky', currencyCode: 'ETH' }],
2627
rewardAssets: [{ pluginId: 'holesky', currencyCode: 'ETH' }]
@@ -43,6 +44,7 @@ const kilnPolicyConfig: Array<StakePolicyConfig<EthereumPooledKilnAdapterConfig>
4344
pluginId: 'ethereum',
4445
rpcProviderUrls: [`https://ethereum-rpc.publicnode.com`, 'https://1rpc.io/eth']
4546
},
47+
mustMaxUnstake: true, // TODO: This can be removed once engines have LP token balances
4648
hideUnstakeAndClaimAction: true,
4749
stakeAssets: [{ pluginId: 'ethereum', currencyCode: 'ETH' }],
4850
rewardAssets: [{ pluginId: 'ethereum', currencyCode: 'ETH' }]

0 commit comments

Comments
 (0)