This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// @notice Get a quote based on the TWAP, using the TWAP window and slippage tolerance for the specified project. | |
/// @param projectId The ID of the project which the swap is associated with. | |
/// @param projectToken The project token being swapped for. | |
/// @param amountIn The number of terminal tokens being used to swap. | |
/// @param terminalToken The terminal token being paid in and used to swap. | |
/// @return amountOut The minimum number of tokens to receive based on the TWAP and its params. | |
function _getQuote( | |
uint256 projectId, | |
address projectToken, | |
uint256 amountIn, |