Skip to content

Commit

Permalink
removed irrelevant tokens from relayer
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDeadCe11 committed Jul 13, 2024
1 parent a090e77 commit 22dca66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/contracts/oracles/pendle/PendleLpToSyRelayer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import '@interfaces/oracles/pendle/IPMarket.sol';
*/
contract PendleLpToSyRelayer {
IStandardizedYield public SY;
IPPrincipalToken public PT;
IPYieldToken public YT;

IPMarket public market;
IPOracle public oracle;
Expand All @@ -28,7 +26,7 @@ contract PendleLpToSyRelayer {
oracle = IPOracle(_oracle);
twapDuration = _twapDuration;

(SY, PT, YT) = market.readTokens();
(SY,,) = market.readTokens();
symbol = string(abi.encodePacked('LP / ', SY.symbol()));
// test if oracle is ready
(bool increaseCardinalityRequired,, bool oldestObservationSatisfied) = oracle.getOracleState(_market, _twapDuration);
Expand Down
3 changes: 1 addition & 2 deletions src/contracts/oracles/pendle/PendlePtToSyRelayer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import 'forge-std/console2.sol';
contract PendlePtToSyRelayer {
IStandardizedYield public SY;
IPPrincipalToken public PT;
IPYieldToken public YT;

IPMarket public market;
IPOracle public oracle;
Expand All @@ -29,7 +28,7 @@ contract PendlePtToSyRelayer {
oracle = IPOracle(_oracle);
twapDuration = _twapDuration;

(SY, PT, YT) = market.readTokens();
(SY, PT,) = market.readTokens();
symbol = string(abi.encodePacked(PT.symbol(), ' / ', SY.symbol()));

// test if oracle is ready
Expand Down
3 changes: 1 addition & 2 deletions src/contracts/oracles/pendle/PendleYtToSyRelayer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import '@interfaces/oracles/pendle/IPMarket.sol';
*/
contract PendleYtToSyRelayer {
IStandardizedYield public SY;
IPPrincipalToken public PT;
IPYieldToken public YT;

IPMarket public market;
Expand All @@ -28,7 +27,7 @@ contract PendleYtToSyRelayer {
oracle = IPOracle(_oracle);
twapDuration = _twapDuration;

(SY, PT, YT) = market.readTokens();
(SY,, YT) = market.readTokens();
symbol = string(abi.encodePacked(YT.symbol(), ' / ', SY.symbol()));
// test if oracle is ready
(bool increaseCardinalityRequired,, bool oldestObservationSatisfied) = oracle.getOracleState(_market, _twapDuration);
Expand Down

0 comments on commit 22dca66

Please sign in to comment.