File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const { function_view } = require("../helper/chain/aptos");
2
2
3
3
async function _getPoolInfo ( offset , limit ) {
4
4
const poolInfo = await function_view ( {
5
- functionStr : "0x6cd504c269458a3a24ef21063c21bd222eb82cb75ac51f4622787a23558fa488::liquidity_pool ::all_pools_with_info" ,
5
+ functionStr : "0x8b4a2c4bb53857c718a04c020b98f8c2e1f99a68b0f57389a8bf5434cd22e05c::pool_v3 ::all_pools_with_info" ,
6
6
args : [ String ( offset ) , String ( limit ) ] ,
7
7
type_arguments : [ ] ,
8
8
} ) ;
@@ -56,11 +56,11 @@ module.exports = {
56
56
let balances = { } ;
57
57
58
58
for ( const pool of poolInfo ) {
59
- const coin1 = await _getCoinInfo ( pool . token_1 . inner ) || pool . token_1 . inner ;
60
- const coin2 = await _getCoinInfo ( pool . token_2 . inner ) || pool . token_2 . inner ;
59
+ const coin1 = await _getCoinInfo ( pool . token_a . inner ) || pool . token_a . inner ;
60
+ const coin2 = await _getCoinInfo ( pool . token_b . inner ) || pool . token_b . inner ;
61
61
62
- api . add ( coin1 , pool . token_1_reserve ) ;
63
- api . add ( coin2 , pool . token_2_reserve ) ;
62
+ api . add ( coin1 , pool . token_a_reserve ) ;
63
+ api . add ( coin2 , pool . token_b_reserve ) ;
64
64
}
65
65
} ,
66
66
} ,
You can’t perform that action at this time.
0 commit comments