|
@@ -231,13 +231,17 @@ async function faucetLunch(concurrency: number = 8) {
|
|
|
)
|
|
|
console.log(`${index}: register done`)
|
|
|
}
|
|
|
- await client.post(
|
|
|
- 'https://api.lunchlunch.xyz/v1/dish/submit-action/airdrop',
|
|
|
- {
|
|
|
- dishId: 43,
|
|
|
- },
|
|
|
- )
|
|
|
- console.log(`${index}: airdrop done`)
|
|
|
+ await polly()
|
|
|
+ .waitAndRetry([2000, 2000, 3000, 3000, 3000])
|
|
|
+ .executeForPromise(async () => {
|
|
|
+ await client.post(
|
|
|
+ 'https://api.lunchlunch.xyz/v1/dish/submit-action/airdrop',
|
|
|
+ {
|
|
|
+ dishId: 43,
|
|
|
+ },
|
|
|
+ )
|
|
|
+ console.log(`${index}: airdrop done`)
|
|
|
+ })
|
|
|
|
|
|
await DBClient.instance.account.update({
|
|
|
where: { id: account.id },
|
|
@@ -266,7 +270,7 @@ async function faucetLunch(concurrency: number = 8) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-await faucetLunch(40)
|
|
|
+await faucetLunch(20)
|
|
|
//
|
|
|
// const phase =
|
|
|
// 'leave bone supply chair brain thunder giant fatigue winter shrimp father stairs'
|