func (m *Multicall) GetSpotPrices(
	block uint64,
	pool string,
	tokensIn []string,
	tokensOut []string,
) ([]common.Address, []common.Address, []*big.Int, error) {
	poolAddr := common.HexToAddress(pool)
	var (
		tokenInAddrs  = make([]common.Address, len(tokensIn))
		tokenOutAddrs = make([]common.Address, len(tokensOut))
	)
	for i, tok := range tokensIn {
		tokenInAddrs[i] = common.HexToAddress(tok)
	}
	for i, tok := range tokensOut {
		tokenOutAddrs[i] = common.HexToAddress(tok)
	}
	return m.binding.GetSpotPrices(
		&bind.CallOpts{
			Context:     m.ctx,
			BlockNumber: new(big.Int).SetUint64(block),
		},
		poolAddr,
		tokenInAddrs,
		tokenOutAddrs,
	)
}
// GetSpotPrices returns the spot prices of various in/out pairs
GetSpotPrices returns the spot prices of various in/out pairs
// GetSpotPrices returns the spot prices of various in / out pairs
func (m *Multicall) GetSpotPrices(
	block uint64,
	pool string,
	tokensIn []string,
	tokensOut []string,
) ([]common.Address, []common.Address, []*big.Int, error) {
	poolAddr := common.HexToAddress(pool)
	var (
		tokenInAddrs  = make([]common.Address, len(tokensIn))
		tokenOutAddrs = make([]common.Address, len(tokensOut))
	)
	for i, tok := range tokensIn {
		tokenInAddrs[i] = common.HexToAddress(tok)
	}
	for i, tok := range tokensOut {
		tokenOutAddrs[i] = common.HexToAddress(tok)
	}
	return m.binding.GetSpotPrices(
		&bind.CallOpts{
			Context:     m.ctx,
			BlockNumber: new(big.Int).SetUint64(block),
		},
		poolAddr,
		tokenInAddrs,
		tokenOutAddrs,
	)
}
func ( m * Multicall ) GetSpotPrices ( block uint64 , pool string , tokensIn [ ] string , tokensOut [ ] string , ) ( [ ] common . Address , [ ] common . Address , [ ] * big . Int , error ) { poolAddr := common . HexToAddress ( pool ) var ( tokenInAddrs = make ( [ ] common . Address , len ( tokensIn ) ) tokenOutAddrs = make ( [ ] common . Address , len ( tokensOut ) ) ) for i , tok := range tokensIn { tokenInAddrs [ i ] = common . HexToAddress ( tok ) } for i , tok := range tokensOut { tokenOutAddrs [ i ] = common . HexToAddress ( tok ) } return m . binding . GetSpotPrices ( & bind . CallOpts { Context : m . ctx , BlockNumber : new ( big . Int ) . SetUint64 ( block ) , } , poolAddr , tokenInAddrs , tokenOutAddrs , ) }
GetSpotPrices returns the spot prices of various in/out pairs
GetSpotPrices returns the spot prices of various in / out pairs