Skip to content

Commit

Permalink
constructor natspec 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDeadCe11 committed Jul 23, 2024
1 parent 4339d34 commit 51cb5bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/contracts/oracles/pendle/PendlePtToSyRelayer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ contract PendlePtToSyRelayer {
string public symbol;

/**
* @dev at the end of the constructor we must call IPMarket(market).increaseObservationsCardinalityNext(cardinalityRequired) and wait
* for at least the twapDuration, to allow data population.
* @dev at the end of the constructor we must call IPMarket(market).getOracleState(_market, _twapDuration) and check that
* increaseObservationsCardinalityRequired is false. If not we must wait for at least the twapDuration,
* to allow data population.
* @param _market the address of the pendle market we want to get the prices from
* @param _oracle the pendle oracle contract
* @param _twapDuration the desired TWAP duration in seconds (recommended 900s);
Expand Down

0 comments on commit 51cb5bd

Please sign in to comment.