Skip to content

Commit ebaa26f

Browse files
committed
feat(app): final things to instant
1 parent a92ea9f commit ebaa26f

File tree

6 files changed

+238
-255
lines changed

6 files changed

+238
-255
lines changed

app2/src/lib/components/stake/ProxyDustRecovery.svelte

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ const buttonLabel = $derived(
105105
!hasDust
106106
? "No Dust Available"
107107
: O.isNone(WalletStore.evmAddress)
108-
? "Connect Wallet"
109-
: "Recover Dust to Wallet"),
108+
? "Connect Wallet"
109+
: "Recover Dust to Wallet"),
110110
Match.when(DustWithdrawState.$is("SwitchingChain"), () => "Switching..."),
111111
Match.when(DustWithdrawState.$is("CheckingAllowance"), () => "Checking..."),
112112
Match.when(DustWithdrawState.$is("ApprovingAllowance"), () => "Confirm in Wallet"),
@@ -121,7 +121,7 @@ const buttonLabel = $derived(
121121
Match.when(DustWithdrawState.$is("Success"), () => "Recovery Pending"),
122122
Match.when(DustWithdrawState.$is("Error"), () => hasDust ? "Try Again" : "No Dust Available"),
123123
Match.exhaustive,
124-
)
124+
),
125125
)
126126
127127
// Execute dust withdrawal
@@ -362,12 +362,12 @@ const handleDustWithdraw = () => {
362362
O.map(([dust, rate]) => {
363363
const valueInU = BigDecimal.multiply(dust, rate)
364364
return `≈ ${
365-
Utils.formatBigDecimal(BigDecimal.round({ mode: "from-zero", scale: 2 })(valueInU))
365+
Utils.formatBigDecimal(
366+
BigDecimal.round({ mode: "from-zero", scale: 2 })(valueInU),
367+
)
366368
} U`
367369
}),
368-
O.getOrElse(() =>
369-
O.isSome(proxyEuDust) && O.isSome(redemptionRate) ? "loading" : ""
370-
),
370+
O.getOrElse(() => O.isSome(proxyEuDust) && O.isSome(redemptionRate) ? "loading" : ""),
371371
)}
372372
/>
373373
{:else}
@@ -402,7 +402,8 @@ const handleDustWithdraw = () => {
402402
class="w-full"
403403
>
404404
{#if isWithdrawing}
405-
<div class="w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin mr-2"></div>
405+
<div class="w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin mr-2">
406+
</div>
406407
{:else if isSuccess}
407408
<svg
408409
class="w-4 h-4 text-current mr-2"

0 commit comments

Comments
 (0)