Twap is an oracle for Cube Network, which provides a Time Weight Average Price Service base on the Capricorn. User can get prices of the specified tokens. We use the Sliding-Window to calculate the prices.
How to Use
User can call these functions to get the price of token.
1.get single token price
function consult(address tokenIn, uint amountIn, address tokenOut) public view returns (uint, bool)