Skip to content

Commit

Permalink
Update getting-started.mdx (#1690)
Browse files Browse the repository at this point in the history
Updated the URL for AggregatorV3Interface.sol

Co-authored-by: Dwight Lyle <dwightjl@gmail.com>
  • Loading branch information
bsilagani and dwightjl authored Dec 11, 2023
1 parent e290e27 commit b127b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/data-feeds/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This example contract obtains the latest price answer from the [BTC / USD feed](

The contract has the following components:

- The `import` line imports an interface named `AggregatorV3Interface`. Interfaces define functions without their implementation, which leaves inheriting contracts to define the actual implementation themselves. In this case, `AggregatorV3Interface` defines that all v3 Aggregators have the function `latestRoundData`. You can [see the complete code](https://github.com/smartcontractkit/chainlink/blob/develop/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol) for the `AggregatorV3Interface` on GitHub.
- The `import` line imports an interface named `AggregatorV3Interface`. Interfaces define functions without their implementation, which leaves inheriting contracts to define the actual implementation themselves. In this case, `AggregatorV3Interface` defines that all v3 Aggregators have the function `latestRoundData`. You can [see the complete code](https://github.com/smartcontractkit/chainlink/blob/master/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol) for the `AggregatorV3Interface` on GitHub.

- The `constructor() {}` initializes an interface object named `dataFeed` that uses `AggregatorV3Interface` and connects specifically to a proxy aggregator contract that is already deployed at `0x1b44F3514812d835EB1BDB0acB33d3fA3351Ee43`. The interface allows your contract to run functions on that deployed aggregator contract.

Expand Down

1 comment on commit b127b1f

@vercel
Copy link

@vercel vercel bot commented on b127b1f Dec 11, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.