Closed jshiohaha closed 4 months ago
There is no TWAP value in the edge case that the only recorded value on-chain is the initial value.
To Reproduce Steps to reproduce the behavior:
Expect a TWAP value to always be returned, as long as oracle is defined. Below, you can see the TWAP value displayed on my localhost environment.
Note: as is currently configured, 10_000 (1 * 1e4) is the initially configured TWAP value.
First reported by Taipan in the metadao discord https://discord.com/channels/1155877543174475859/1178032815221264405/1209363962840490005
Closing, as associated PR was merged
Describe the bug
There is no TWAP value in the edge case that the only recorded value on-chain is the initial value.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Expect a TWAP value to always be returned, as long as oracle is defined. Below, you can see the TWAP value displayed on my localhost environment.
Note: as is currently configured, 10_000 (1 * 1e4) is the initially configured TWAP value.
Additional context
First reported by Taipan in the metadao discord https://discord.com/channels/1155877543174475859/1178032815221264405/1209363962840490005