func (_Bmat *BmatCaller) CalcSpotPrice(opts *bind.CallOpts, tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, swapFee *big.Int) (*big.Int, error) {
	var out []interface{}
	err := _Bmat.contract.Call(opts, &out, "calcSpotPrice", tokenBalanceIn, tokenWeightIn, tokenBalanceOut, tokenWeightOut, swapFee)

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}
// CalcSpotPrice is a free data retrieval call binding the contract method 0xa221ee49.
//
// Solidity: function calcSpotPrice(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 swapFee) pure returns(uint256 spotPrice)
CalcSpotPrice is a free data retrieval call binding the contract method 0xa221ee49.


// CalcSpotPrice is a free data retrieval call binding the contract method 0xa221ee49 . // // Solidity : function calcSpotPrice ( uint256 tokenBalanceIn uint256 tokenWeightIn uint256 tokenBalanceOut uint256 tokenWeightOut uint256 swapFee ) pure returns ( uint256 spotPrice )
func (_Bmat *BmatCaller) CalcSpotPrice(opts *bind.CallOpts, tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, swapFee *big.Int) (*big.Int, error) {
	var out []interface{}
	err := _Bmat.contract.Call(opts, &out, "calcSpotPrice", tokenBalanceIn, tokenWeightIn, tokenBalanceOut, tokenWeightOut, swapFee)
	if err != nil {
		return *new(*big.Int), err
	}
	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
	return out0, err
}
func ( _Bmat * BmatCaller ) CalcSpotPrice ( opts * bind . CallOpts , tokenBalanceIn * big . Int , tokenWeightIn * big . Int , tokenBalanceOut * big . Int , tokenWeightOut * big . Int , swapFee * big . Int ) ( * big . Int , error ) { var out [ ] interface { } err := _Bmat . contract . Call ( opts , & out , " " , tokenBalanceIn , tokenWeightIn , tokenBalanceOut , tokenWeightOut , swapFee ) if err != nil { return * new ( * big . Int ) , err } out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int ) return out0 , err }
CalcSpotPrice is a free data retrieval call binding the contract method 0xa221ee49.
CalcSpotPrice is a free data retrieval call binding the contract method 0xa221ee49 .