Skip to content

Augmentation Hook Example - Eth Price#1793

Open
lindsgil wants to merge 5 commits intomainfrom
linds/publish-augmentation-hook-examples
Open

Augmentation Hook Example - Eth Price#1793
lindsgil wants to merge 5 commits intomainfrom
linds/publish-augmentation-hook-examples

Conversation

@lindsgil
Copy link
Contributor

@lindsgil lindsgil commented Apr 3, 2025

Description of the change

Publish a few basic PMP augmentation contracts as examples.

These examples can provide a starting point for future augmentation hook contracts.

@lindsgil lindsgil requested a review from ryley-o April 3, 2025 15:35
@lindsgil lindsgil changed the title [WIP] Augmentation Hook Examples Augmentation Hook Example - Eth Price Apr 4, 2025
@lindsgil lindsgil marked this pull request as ready for review April 4, 2025 14:59
@lindsgil lindsgil requested a review from a team as a code owner April 4, 2025 14:59
@lindsgil lindsgil requested review from yoshiwarab and removed request for a team April 4, 2025 14:59
Base automatically changed from ryley/pro-1239-publish-a-few-simple-augmentation-hooks-for-launch to main April 4, 2025 16:54
Copy link
Contributor

@ryley-o ryley-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 ⛓️ 🔗

* child contracts implement the required IWeb3Call functions.
*/
abstract contract InjectEthPrice is AbstractPMPAugmentHook {
AggregatorV3Interface internal dataFeed;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think could be immutable + public

Comment on lines +41 to +43
dataFeed = AggregatorV3Interface(
0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: prefer to make this a constructor arg to have source code be chain-agnostic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments