We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 610aacf commit 0020cedCopy full SHA for 0020ced
packages/react/src/gho.ts
@@ -44,7 +44,7 @@ export function useSavingsGhoBalance(
44
* Fetches the current sGHO balance for a user.
45
*
46
* ```tsx
47
- * const { data, loading } = useSavingsGhoBalance({
+ * const { data, error, loading } = useSavingsGhoBalance({
48
* user: evmAddress('0x742d35cc…'),
49
* });
50
* ```
@@ -124,6 +124,11 @@ export function useSavingsGhoWithdraw(): UseAsyncTask<
124
* case 'ApprovalRequired':
125
* return sendTransaction(plan.approval)
126
* .andThen(() => sendTransaction(plan.originalTransaction));
127
+ *
128
+ * case 'InsufficientBalanceError':
129
+ * return errAsync(
130
+ * new Error(`Insufficient balance: ${plan.required.value} required.`)
131
+ * );
132
* }
133
134
0 commit comments