1import useEthereumTransaction from 'lib/useEthereumTransaction';
2import { useCallback } from 'react';
3import { usePointCache } from 'store/pointCache';
4import { useStarReleaseCache } from 'store/starRelease';
6export function useWithdrawStars() {
7 const { syncControlledPoints }: any = usePointCache();
9 const { syncStarReleaseDetails, withdraw }: any = useStarReleaseCache();
10 return useEthereumTransaction(
11 useCallback((to: string, amount: number) => withdraw(amount, to), [
15 () => Promise.all([syncControlledPoints(), syncStarReleaseDetails()]),
16 [syncStarReleaseDetails, syncControlledPoints]
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list