Documentation ¶
Index ¶
Constants ¶
View Source
const Context = "UNISWAP_V3"
Context for logging
Variables ¶
This section is empty.
Functions ¶
func GetTwrpPrice ¶
GetTwrpPrice from given seconds in the past til now. Using the Uniswap TWRP is safe for low-stakes pricing on assets that we can't determine the price for, but should be avoided in general. It's safer to use Chainlink where possible. This will only work for the current block, when normally several blocks could be scanned, so be careful when there's low liquidity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.