diff --git a/ui/pages/lock.tsx b/ui/pages/lock.tsx index ebe8631..e6730ae 100644 --- a/ui/pages/lock.tsx +++ b/ui/pages/lock.tsx @@ -175,7 +175,16 @@ export default function Lock() { }) const withdraw = useVeNationWithdrawLock() - + + const handleWithdraw = async () => { + try { + const result = await withdraw.writeAsync() + console.log('Withdraw successful:', result) + } catch (error) { + console.error('Withdraw failed:', error) + } + } + const approval = useMemo( () => ({ token: nationToken, @@ -455,7 +464,7 @@ export default function Lock() {
Withdraw