Skip to content

Commit

Permalink
fix: priceToSy
Browse files Browse the repository at this point in the history
  • Loading branch information
57Ark committed Dec 2, 2024
2 parents f43e53b + a96d69a commit 988d0f9
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 1 deletion.
1 change: 1 addition & 0 deletions bindings/PriceFeedDataLive.sol
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ struct PendlePriceFeedData {
uint256 underlying;
address market;
uint32 twapWindow;
bool priceToSy;
bool reserve;
bool trusted;
}
Expand Down
22 changes: 22 additions & 0 deletions contracts/PriceFeedDataLive.sol
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ struct PendlePriceFeedData {
uint256 underlying;
address market;
uint32 twapWindow;
bool priceToSy;
bool reserve;
bool trusted;
}
Expand Down Expand Up @@ -8045,6 +8046,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_rsETH,
market: 0x6b4740722e46048874d84306B2877600ABCea3Ae,
twapWindow: 3600,
priceToSy: true,
trusted: false,
reserve: false
})
Expand All @@ -8057,6 +8059,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_USDe,
market: 0xa0ab94DeBB3cC9A7eA77f3205ba4AB23276feD08,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: false
})
Expand All @@ -8067,6 +8070,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_USDe,
market: 0xa0ab94DeBB3cC9A7eA77f3205ba4AB23276feD08,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: true
})
Expand All @@ -8079,6 +8083,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WETH,
market: 0x7d372819240D14fB477f17b964f95F33BeB4c704,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: false
})
Expand All @@ -8089,6 +8094,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WETH,
market: 0x7d372819240D14fB477f17b964f95F33BeB4c704,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: true
})
Expand All @@ -8101,6 +8107,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WETH,
market: 0xD8F12bCDE578c653014F27379a6114F67F0e445f,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: false
})
Expand All @@ -8111,6 +8118,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WETH,
market: 0xD8F12bCDE578c653014F27379a6114F67F0e445f,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: true
})
Expand All @@ -8123,6 +8131,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0x36d3ca43ae7939645C306E26603ce16e39A89192,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: false
})
Expand All @@ -8133,6 +8142,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0x36d3ca43ae7939645C306E26603ce16e39A89192,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: true
})
Expand All @@ -8145,6 +8155,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0xEb4d3057738b9Ed930F451Be473C1CCC42988384,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: false
})
Expand All @@ -8155,6 +8166,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0xEb4d3057738b9Ed930F451Be473C1CCC42988384,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: true
})
Expand All @@ -8167,6 +8179,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0xf8208fB52BA80075aF09840A683143C22DC5B4dd,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: false
})
Expand All @@ -8177,6 +8190,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0xf8208fB52BA80075aF09840A683143C22DC5B4dd,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: true
})
Expand All @@ -8189,6 +8203,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0xCaE62858DB831272A03768f5844cbe1B40bB381f,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: false
})
Expand All @@ -8199,6 +8214,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0xCaE62858DB831272A03768f5844cbe1B40bB381f,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: true
})
Expand All @@ -8211,6 +8227,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0x70B70Ac0445C3eF04E314DFdA6caafd825428221,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: false
})
Expand All @@ -8221,6 +8238,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0x70B70Ac0445C3eF04E314DFdA6caafd825428221,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: true
})
Expand All @@ -8233,6 +8251,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0x2C71Ead7ac9AE53D05F8664e77031d4F9ebA064B,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: false
})
Expand All @@ -8243,6 +8262,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_WBTC,
market: 0x2C71Ead7ac9AE53D05F8664e77031d4F9ebA064B,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: true
})
Expand All @@ -8255,6 +8275,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_USDe,
market: 0xcDd26Eb5EB2Ce0f203a84553853667aE69Ca29Ce,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: false
})
Expand All @@ -8265,6 +8286,7 @@ contract PriceFeedDataLive {
underlying: TOKEN_USDe,
market: 0xcDd26Eb5EB2Ce0f203a84553853667aE69Ca29Ce,
twapWindow: 1800,
priceToSy: false,
trusted: false,
reserve: true
})
Expand Down
1 change: 1 addition & 0 deletions src/bindings/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ class BindingsGenerator {
)},
market: ${priceFeedData.market},
twapWindow: ${priceFeedData.twapWindow},
priceToSy: ${priceFeedData.priceToSy},
trusted: ${
!reserve
? (priceFeedData as PriceFeedData & { trusted: boolean }).trusted
Expand Down
21 changes: 21 additions & 0 deletions src/oracles/priceFeeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3825,6 +3825,7 @@ export const priceFeedsByToken: Record<
underlying: "rsETH",
market: "0x6b4740722e46048874d84306B2877600ABCea3Ae",
twapWindow: HOUR_1,
priceToSy: true,
trusted: false,
},
},
Expand All @@ -3836,13 +3837,15 @@ export const priceFeedsByToken: Record<
underlying: "USDe",
market: "0xa0ab94DeBB3cC9A7eA77f3205ba4AB23276feD08",
twapWindow: HOUR_1 / 2,
priceToSy: false,
trusted: false,
},
Reserve: {
type: PriceFeedType.PENDLE_PT_TWAP_ORACLE,
underlying: "USDe",
market: "0xa0ab94DeBB3cC9A7eA77f3205ba4AB23276feD08",
twapWindow: HOUR_1 / 2,
priceToSy: false,
},
},
},
Expand All @@ -3853,13 +3856,15 @@ export const priceFeedsByToken: Record<
underlying: "WETH",
market: "0x7d372819240D14fB477f17b964f95F33BeB4c704",
twapWindow: HOUR_1 / 2,
priceToSy: false,
trusted: false,
},
Reserve: {
type: PriceFeedType.PENDLE_PT_TWAP_ORACLE,
underlying: "WETH",
market: "0x7d372819240D14fB477f17b964f95F33BeB4c704",
twapWindow: HOUR_1 / 2,
priceToSy: false,
},
},
},
Expand All @@ -3870,13 +3875,15 @@ export const priceFeedsByToken: Record<
underlying: "WETH",
market: "0xD8F12bCDE578c653014F27379a6114F67F0e445f",
twapWindow: HOUR_1 / 2,
priceToSy: false,
trusted: false,
},
Reserve: {
type: PriceFeedType.PENDLE_PT_TWAP_ORACLE,
underlying: "WETH",
market: "0xD8F12bCDE578c653014F27379a6114F67F0e445f",
twapWindow: HOUR_1 / 2,
priceToSy: false,
},
},
},
Expand All @@ -3888,13 +3895,15 @@ export const priceFeedsByToken: Record<
underlying: "WBTC",
market: "0x36d3ca43ae7939645C306E26603ce16e39A89192",
twapWindow: HOUR_1 / 2,
priceToSy: false,
trusted: false,
},
Reserve: {
type: PriceFeedType.PENDLE_PT_TWAP_ORACLE,
underlying: "WBTC",
market: "0x36d3ca43ae7939645C306E26603ce16e39A89192",
twapWindow: HOUR_1 / 2,
priceToSy: false,
},
},
},
Expand All @@ -3906,13 +3915,15 @@ export const priceFeedsByToken: Record<
underlying: "WBTC",
market: "0xEb4d3057738b9Ed930F451Be473C1CCC42988384",
twapWindow: HOUR_1 / 2,
priceToSy: false,
trusted: false,
},
Reserve: {
type: PriceFeedType.PENDLE_PT_TWAP_ORACLE,
underlying: "WBTC",
market: "0xEb4d3057738b9Ed930F451Be473C1CCC42988384",
twapWindow: HOUR_1 / 2,
priceToSy: false,
},
},
},
Expand All @@ -3923,13 +3934,15 @@ export const priceFeedsByToken: Record<
underlying: "WBTC",
market: "0xf8208fB52BA80075aF09840A683143C22DC5B4dd",
twapWindow: HOUR_1 / 2,
priceToSy: false,
trusted: false,
},
Reserve: {
type: PriceFeedType.PENDLE_PT_TWAP_ORACLE,
underlying: "WBTC",
market: "0xf8208fB52BA80075aF09840A683143C22DC5B4dd",
twapWindow: HOUR_1 / 2,
priceToSy: false,
},
},
},
Expand All @@ -3941,13 +3954,15 @@ export const priceFeedsByToken: Record<
underlying: "WBTC",
market: "0xCaE62858DB831272A03768f5844cbe1B40bB381f",
twapWindow: HOUR_1 / 2,
priceToSy: false,
trusted: false,
},
Reserve: {
type: PriceFeedType.PENDLE_PT_TWAP_ORACLE,
underlying: "WBTC",
market: "0xCaE62858DB831272A03768f5844cbe1B40bB381f",
twapWindow: HOUR_1 / 2,
priceToSy: false,
},
},
},
Expand All @@ -3959,13 +3974,15 @@ export const priceFeedsByToken: Record<
underlying: "WBTC",
market: "0x70B70Ac0445C3eF04E314DFdA6caafd825428221",
twapWindow: HOUR_1 / 2,
priceToSy: false,
trusted: false,
},
Reserve: {
type: PriceFeedType.PENDLE_PT_TWAP_ORACLE,
underlying: "WBTC",
market: "0x70B70Ac0445C3eF04E314DFdA6caafd825428221",
twapWindow: HOUR_1 / 2,
priceToSy: false,
},
},
},
Expand All @@ -3977,13 +3994,15 @@ export const priceFeedsByToken: Record<
underlying: "WBTC",
market: "0x2C71Ead7ac9AE53D05F8664e77031d4F9ebA064B",
twapWindow: HOUR_1 / 2,
priceToSy: false,
trusted: false,
},
Reserve: {
type: PriceFeedType.PENDLE_PT_TWAP_ORACLE,
underlying: "WBTC",
market: "0x2C71Ead7ac9AE53D05F8664e77031d4F9ebA064B",
twapWindow: HOUR_1 / 2,
priceToSy: false,
},
},
},
Expand All @@ -3994,13 +4013,15 @@ export const priceFeedsByToken: Record<
underlying: "USDe",
market: "0xcDd26Eb5EB2Ce0f203a84553853667aE69Ca29Ce",
twapWindow: HOUR_1 / 2,
priceToSy: false,
trusted: false,
},
Reserve: {
type: PriceFeedType.PENDLE_PT_TWAP_ORACLE,
underlying: "USDe",
market: "0xcDd26Eb5EB2Ce0f203a84553853667aE69Ca29Ce",
twapWindow: HOUR_1 / 2,
priceToSy: false,
},
},
},
Expand Down
1 change: 1 addition & 0 deletions src/oracles/pricefeedType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,5 @@ export type PriceFeedData =
market: Address;
underlying: SupportedToken;
twapWindow: number;
priceToSy: boolean;
};
7 changes: 6 additions & 1 deletion src/verification/audits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
{
Expand Down

0 comments on commit 988d0f9

Please sign in to comment.