diff --git a/bindings/PriceFeedDataLive.sol b/bindings/PriceFeedDataLive.sol index f0369b3..ae4aefa 100644 --- a/bindings/PriceFeedDataLive.sol +++ b/bindings/PriceFeedDataLive.sol @@ -123,6 +123,7 @@ struct PendlePriceFeedData { uint256 underlying; address market; uint32 twapWindow; + bool priceToSy; bool reserve; bool trusted; } diff --git a/contracts/PriceFeedDataLive.sol b/contracts/PriceFeedDataLive.sol index 5afc67b..69a414b 100644 --- a/contracts/PriceFeedDataLive.sol +++ b/contracts/PriceFeedDataLive.sol @@ -123,6 +123,7 @@ struct PendlePriceFeedData { uint256 underlying; address market; uint32 twapWindow; + bool priceToSy; bool reserve; bool trusted; } @@ -8045,6 +8046,7 @@ contract PriceFeedDataLive { underlying: TOKEN_rsETH, market: 0x6b4740722e46048874d84306B2877600ABCea3Ae, twapWindow: 3600, + priceToSy: true, trusted: false, reserve: false }) @@ -8057,6 +8059,7 @@ contract PriceFeedDataLive { underlying: TOKEN_USDe, market: 0xa0ab94DeBB3cC9A7eA77f3205ba4AB23276feD08, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: false }) @@ -8067,6 +8070,7 @@ contract PriceFeedDataLive { underlying: TOKEN_USDe, market: 0xa0ab94DeBB3cC9A7eA77f3205ba4AB23276feD08, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: true }) @@ -8079,6 +8083,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WETH, market: 0x7d372819240D14fB477f17b964f95F33BeB4c704, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: false }) @@ -8089,6 +8094,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WETH, market: 0x7d372819240D14fB477f17b964f95F33BeB4c704, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: true }) @@ -8101,6 +8107,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WETH, market: 0xD8F12bCDE578c653014F27379a6114F67F0e445f, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: false }) @@ -8111,6 +8118,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WETH, market: 0xD8F12bCDE578c653014F27379a6114F67F0e445f, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: true }) @@ -8123,6 +8131,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0x36d3ca43ae7939645C306E26603ce16e39A89192, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: false }) @@ -8133,6 +8142,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0x36d3ca43ae7939645C306E26603ce16e39A89192, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: true }) @@ -8145,6 +8155,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0xEb4d3057738b9Ed930F451Be473C1CCC42988384, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: false }) @@ -8155,6 +8166,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0xEb4d3057738b9Ed930F451Be473C1CCC42988384, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: true }) @@ -8167,6 +8179,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0xf8208fB52BA80075aF09840A683143C22DC5B4dd, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: false }) @@ -8177,6 +8190,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0xf8208fB52BA80075aF09840A683143C22DC5B4dd, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: true }) @@ -8189,6 +8203,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0xCaE62858DB831272A03768f5844cbe1B40bB381f, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: false }) @@ -8199,6 +8214,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0xCaE62858DB831272A03768f5844cbe1B40bB381f, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: true }) @@ -8211,6 +8227,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0x70B70Ac0445C3eF04E314DFdA6caafd825428221, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: false }) @@ -8221,6 +8238,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0x70B70Ac0445C3eF04E314DFdA6caafd825428221, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: true }) @@ -8233,6 +8251,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0x2C71Ead7ac9AE53D05F8664e77031d4F9ebA064B, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: false }) @@ -8243,6 +8262,7 @@ contract PriceFeedDataLive { underlying: TOKEN_WBTC, market: 0x2C71Ead7ac9AE53D05F8664e77031d4F9ebA064B, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: true }) @@ -8255,6 +8275,7 @@ contract PriceFeedDataLive { underlying: TOKEN_USDe, market: 0xcDd26Eb5EB2Ce0f203a84553853667aE69Ca29Ce, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: false }) @@ -8265,6 +8286,7 @@ contract PriceFeedDataLive { underlying: TOKEN_USDe, market: 0xcDd26Eb5EB2Ce0f203a84553853667aE69Ca29Ce, twapWindow: 1800, + priceToSy: false, trusted: false, reserve: true }) diff --git a/src/bindings/generate.ts b/src/bindings/generate.ts index 6221d4c..0141639 100644 --- a/src/bindings/generate.ts +++ b/src/bindings/generate.ts @@ -750,6 +750,7 @@ class BindingsGenerator { )}, market: ${priceFeedData.market}, twapWindow: ${priceFeedData.twapWindow}, + priceToSy: ${priceFeedData.priceToSy}, trusted: ${ !reserve ? (priceFeedData as PriceFeedData & { trusted: boolean }).trusted diff --git a/src/oracles/priceFeeds.ts b/src/oracles/priceFeeds.ts index a80e79a..87412c2 100644 --- a/src/oracles/priceFeeds.ts +++ b/src/oracles/priceFeeds.ts @@ -3825,6 +3825,7 @@ export const priceFeedsByToken: Record< underlying: "rsETH", market: "0x6b4740722e46048874d84306B2877600ABCea3Ae", twapWindow: HOUR_1, + priceToSy: true, trusted: false, }, }, @@ -3836,6 +3837,7 @@ export const priceFeedsByToken: Record< underlying: "USDe", market: "0xa0ab94DeBB3cC9A7eA77f3205ba4AB23276feD08", twapWindow: HOUR_1 / 2, + priceToSy: false, trusted: false, }, Reserve: { @@ -3843,6 +3845,7 @@ export const priceFeedsByToken: Record< underlying: "USDe", market: "0xa0ab94DeBB3cC9A7eA77f3205ba4AB23276feD08", twapWindow: HOUR_1 / 2, + priceToSy: false, }, }, }, @@ -3853,6 +3856,7 @@ export const priceFeedsByToken: Record< underlying: "WETH", market: "0x7d372819240D14fB477f17b964f95F33BeB4c704", twapWindow: HOUR_1 / 2, + priceToSy: false, trusted: false, }, Reserve: { @@ -3860,6 +3864,7 @@ export const priceFeedsByToken: Record< underlying: "WETH", market: "0x7d372819240D14fB477f17b964f95F33BeB4c704", twapWindow: HOUR_1 / 2, + priceToSy: false, }, }, }, @@ -3870,6 +3875,7 @@ export const priceFeedsByToken: Record< underlying: "WETH", market: "0xD8F12bCDE578c653014F27379a6114F67F0e445f", twapWindow: HOUR_1 / 2, + priceToSy: false, trusted: false, }, Reserve: { @@ -3877,6 +3883,7 @@ export const priceFeedsByToken: Record< underlying: "WETH", market: "0xD8F12bCDE578c653014F27379a6114F67F0e445f", twapWindow: HOUR_1 / 2, + priceToSy: false, }, }, }, @@ -3888,6 +3895,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0x36d3ca43ae7939645C306E26603ce16e39A89192", twapWindow: HOUR_1 / 2, + priceToSy: false, trusted: false, }, Reserve: { @@ -3895,6 +3903,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0x36d3ca43ae7939645C306E26603ce16e39A89192", twapWindow: HOUR_1 / 2, + priceToSy: false, }, }, }, @@ -3906,6 +3915,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0xEb4d3057738b9Ed930F451Be473C1CCC42988384", twapWindow: HOUR_1 / 2, + priceToSy: false, trusted: false, }, Reserve: { @@ -3913,6 +3923,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0xEb4d3057738b9Ed930F451Be473C1CCC42988384", twapWindow: HOUR_1 / 2, + priceToSy: false, }, }, }, @@ -3923,6 +3934,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0xf8208fB52BA80075aF09840A683143C22DC5B4dd", twapWindow: HOUR_1 / 2, + priceToSy: false, trusted: false, }, Reserve: { @@ -3930,6 +3942,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0xf8208fB52BA80075aF09840A683143C22DC5B4dd", twapWindow: HOUR_1 / 2, + priceToSy: false, }, }, }, @@ -3941,6 +3954,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0xCaE62858DB831272A03768f5844cbe1B40bB381f", twapWindow: HOUR_1 / 2, + priceToSy: false, trusted: false, }, Reserve: { @@ -3948,6 +3962,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0xCaE62858DB831272A03768f5844cbe1B40bB381f", twapWindow: HOUR_1 / 2, + priceToSy: false, }, }, }, @@ -3959,6 +3974,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0x70B70Ac0445C3eF04E314DFdA6caafd825428221", twapWindow: HOUR_1 / 2, + priceToSy: false, trusted: false, }, Reserve: { @@ -3966,6 +3982,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0x70B70Ac0445C3eF04E314DFdA6caafd825428221", twapWindow: HOUR_1 / 2, + priceToSy: false, }, }, }, @@ -3977,6 +3994,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0x2C71Ead7ac9AE53D05F8664e77031d4F9ebA064B", twapWindow: HOUR_1 / 2, + priceToSy: false, trusted: false, }, Reserve: { @@ -3984,6 +4002,7 @@ export const priceFeedsByToken: Record< underlying: "WBTC", market: "0x2C71Ead7ac9AE53D05F8664e77031d4F9ebA064B", twapWindow: HOUR_1 / 2, + priceToSy: false, }, }, }, @@ -3994,6 +4013,7 @@ export const priceFeedsByToken: Record< underlying: "USDe", market: "0xcDd26Eb5EB2Ce0f203a84553853667aE69Ca29Ce", twapWindow: HOUR_1 / 2, + priceToSy: false, trusted: false, }, Reserve: { @@ -4001,6 +4021,7 @@ export const priceFeedsByToken: Record< underlying: "USDe", market: "0xcDd26Eb5EB2Ce0f203a84553853667aE69Ca29Ce", twapWindow: HOUR_1 / 2, + priceToSy: false, }, }, }, diff --git a/src/oracles/pricefeedType.ts b/src/oracles/pricefeedType.ts index ebf3936..e32407d 100644 --- a/src/oracles/pricefeedType.ts +++ b/src/oracles/pricefeedType.ts @@ -182,4 +182,5 @@ export type PriceFeedData = market: Address; underlying: SupportedToken; twapWindow: number; + priceToSy: boolean; }; diff --git a/src/verification/audits.ts b/src/verification/audits.ts index 2283bc0..f8ae126 100644 --- a/src/verification/audits.ts +++ b/src/verification/audits.ts @@ -312,7 +312,12 @@ export const audits: Audits = { }, { type: "commit", - commit: "593aba9c41c374152e1fa57101f186a58e79c6c3", + commit: "593aba9c41c374152e1fa57101f186a58e79c6c3", // v3.1 + report: auditReports["2024_Oct_Watchpug_Pendle"], + }, + { + type: "commit", + commit: "044a7059d3c098900dac8c240bc7ec4102240add", // v3.0 report: auditReports["2024_Oct_Watchpug_Pendle"], }, {