@@ -31,7 +31,7 @@ async function testPayout(network, fromBlock, toBlock) {
3131
3232}
3333
34- async function testStrategy ( network , strategyName , fromBlock , toBlock ) {
34+ async function testStrategy ( network , fromBlock , toBlock ) {
3535
3636 const providerUrl = require ( "./dev-keys.json" ) [ `web3${ network } ` ]
3737
@@ -52,7 +52,7 @@ async function testStrategy(network, strategyName, fromBlock, toBlock) {
5252 const form = await strategyNotification . onSubscribeForm ( { } ) ;
5353
5454 const subscription = {
55- strategy : strategyName ,
55+ strategy : form . find ( o => o . id === 'strategy' ) . values [ 0 ] . value ,
5656 } ;
5757
5858 console . log ( form ) ;
@@ -74,11 +74,11 @@ async function main() {
7474 console . log ( await testPayout ( "optimism" , 106155876 , 106155878 ) ) ;
7575 // console.log(await testPayout("zksync", 730251, 730253));
7676
77- console . log ( await testStrategy ( "polygon" , "Balancer USDC" , 44512809 , 44512809 ) ) ;
78- console . log ( await testStrategy ( "arbitrum" , "Sushiswap USDC/USDT" , 110392139 , 110392141 ) ) ;
79- console . log ( await testStrategy ( "bsc" , "Thena USDC/USDT" , 29875608 , 29875608 ) ) ;
80- console . log ( await testStrategy ( "optimism" , "Pika v4" , 106777666 , 106777666 ) ) ;
81- // console.log(await testStrategy("zksync", "Nexon USDC", 2279899, 2279899));
77+ console . log ( await testStrategy ( "polygon" , 44512809 , 44512809 ) ) ;
78+ console . log ( await testStrategy ( "arbitrum" , 110392139 , 110392141 ) ) ;
79+ console . log ( await testStrategy ( "bsc" , 29875608 , 29875608 ) ) ;
80+ console . log ( await testStrategy ( "optimism" , 106777666 , 106777666 ) ) ;
81+ // console.log(await testStrategy("zksync", 2279899, 2279899));
8282}
8383
8484
0 commit comments