From 7b62c35febf0e230dea51ad02a7f392456c482e8 Mon Sep 17 00:00:00 2001 From: Rick <81699526+rick23p@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:21:32 +0330 Subject: [PATCH] SOV-4191: Raise the Gas Limit for OSSOV withdrawals (#928) * fix: convert page selector * fix: withdraw os fees gas limit * Create tasty-suits-float.md * fix: convert page selection --------- Co-authored-by: soulBit --- .changeset/tasty-suits-float.md | 5 +++++ apps/frontend/src/app/5_pages/ConvertPage/ConvertPage.tsx | 6 +++--- .../components/WithdrawLiquidOsFee/WithdrawLiquidOsFee.tsx | 2 +- apps/frontend/src/constants/gasLimits.ts | 1 + 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .changeset/tasty-suits-float.md diff --git a/.changeset/tasty-suits-float.md b/.changeset/tasty-suits-float.md new file mode 100644 index 000000000..f59f969a5 --- /dev/null +++ b/.changeset/tasty-suits-float.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-4191: Raise the Gas Limit for OSSOV withdrawals diff --git a/apps/frontend/src/app/5_pages/ConvertPage/ConvertPage.tsx b/apps/frontend/src/app/5_pages/ConvertPage/ConvertPage.tsx index 8069ccc87..838240309 100644 --- a/apps/frontend/src/app/5_pages/ConvertPage/ConvertPage.tsx +++ b/apps/frontend/src/app/5_pages/ConvertPage/ConvertPage.tsx @@ -438,7 +438,7 @@ const ConvertPage: FC = () => { {t(pageTranslations.meta.title)} -
+
{t(pageTranslations.title)} @@ -484,7 +484,7 @@ const ConvertPage: FC = () => { options={sourceTokenOptions} labelRenderer={() => getAssetRenderer(sourceToken)} className="min-w-[6.7rem]" - menuClassName="max-h-[10rem] sm:max-h-[20rem]" + menuClassName="max-h-[10rem] sm:max-h-[12rem]" dataAttribute="convert-from-asset" />
@@ -531,7 +531,7 @@ const ConvertPage: FC = () => { onChange={onDestinationTokenChange} options={destinationTokenOptions} className="min-w-[6.7rem]" - menuClassName="max-h-[10rem] sm:max-h-[20rem]" + menuClassName="max-h-[10rem] sm:max-h-[12rem]" dataAttribute="convert-to-asset" />
diff --git a/apps/frontend/src/app/5_pages/RewardsPage/components/Staking/components/WithdrawLiquidOsFee/WithdrawLiquidOsFee.tsx b/apps/frontend/src/app/5_pages/RewardsPage/components/Staking/components/WithdrawLiquidOsFee/WithdrawLiquidOsFee.tsx index 3ee34e588..8adf1c2d8 100644 --- a/apps/frontend/src/app/5_pages/RewardsPage/components/Staking/components/WithdrawLiquidOsFee/WithdrawLiquidOsFee.tsx +++ b/apps/frontend/src/app/5_pages/RewardsPage/components/Staking/components/WithdrawLiquidOsFee/WithdrawLiquidOsFee.tsx @@ -59,7 +59,7 @@ export const WithdrawLiquidOsFee: FC = ({ contract: stakingRewards, fnName: 'collectReward', args: [nextWithdrawTimestamp], - gasLimit: GAS_LIMIT.REWARDS, + gasLimit: GAS_LIMIT.REWARDS_OS_FEE, }, onComplete, }, diff --git a/apps/frontend/src/constants/gasLimits.ts b/apps/frontend/src/constants/gasLimits.ts index c6b4fac7d..37659155e 100644 --- a/apps/frontend/src/constants/gasLimits.ts +++ b/apps/frontend/src/constants/gasLimits.ts @@ -11,6 +11,7 @@ export const GAS_LIMIT = { STABILITY_POOL_DLLR_INC_WITHDRAW: 690_000, REWARDS: 240_000, REWARDS_CLAIM: 6_800_000, + REWARDS_OS_FEE: 600_000, TRANSFER_LOC: 900_000, LENDING_MINT: 350_000, LENDING_BURN: 450_000,