MCPcopy Create free account
hub / github.com/code100x/cms / fetchPayoutMethods

Function fetchPayoutMethods

src/app/bounty/page.tsx:19–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 const [isLoading, setIsLoading] = useState<boolean>(true);
18
19 const fetchPayoutMethods = async () => {
20 const result = await getPayoutMethods();
21 if (result.error) {
22 return;
23 }
24 if (result) {
25 setUpiAddresses(result.upiIds!);
26 setSolanaAddresses(result.solanaAddresses!);
27 setIsLoading(false);
28 }
29 };
30
31 const fetchUserBounties = async () => {
32 setIsLoading(true);

Callers 3

PageFunction · 0.70
PaymentMethodsDropdownFunction · 0.50
PageFunction · 0.50

Calls 1

getPayoutMethodsFunction · 0.90

Tested by

no test coverage detected