Skip to content

Commit

Permalink
update price feed showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed Nov 3, 2023
1 parent 5478c6b commit 9ddb588
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
9 changes: 4 additions & 5 deletions packages/nextjs/components/automation/Showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,14 @@ export const Showcase = () => {
<div>
<p className="text-xl">
Since smart contracts cannot initate transactions without the help of an externally owned account, a service
like chainlink automation is required to reliably execute transactions via time based or conditional logic
triggers.
like chainlink automation is required to reliably execute transactions at regular intervals or based on
conditional logic triggers.
</p>

<p className="text-xl">
Click <InlineCode text="start" /> to update boolean state variable integrated with the{" "}
Click <InlineCode text="start" /> to update the boolean state variable integrated with the{" "}
<InlineCode text="checkUpkeep" /> function&apos;s return value that controls if chainlink nodes should call
the <InlineCode text="performUpkeep" /> function every <InlineCode text="interval" /> seconds. The contract
is set up to stop counting at 10
the <InlineCode text="performUpkeep" /> function every <InlineCode text="interval" /> seconds.
</p>

<div className="bg-base-200 rounded-xl flex flex-wrap justify-around items-center">
Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/components/price-feeds/FeedRegistry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const FeedRegistryDisplay = () => {

useEffect(() => {
setBaseAssetAddress(BASE_ASSET_OPTIONS[0].address);
setQuoteAssetAddress(QUOTE);
setQuoteAssetAddress(USD_QUOTE);
}, []);

const { data: description } = useContractRead({
Expand Down Expand Up @@ -123,4 +123,4 @@ const BASE_ASSET_OPTIONS = [
];

// address for USD
const QUOTE = "0x0000000000000000000000000000000000000348";
const USD_QUOTE = "0x0000000000000000000000000000000000000348";
6 changes: 3 additions & 3 deletions packages/nextjs/generated/deployedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const contracts = {
name: "sepolia",
contracts: {
AggregatorV3Consumer: {
address: "0x144379F31185749Ab6b8A77ece55FD3A614C66d4",
address: "0x94349c5f198Ae7d7468D563cC2aFdD1d3150E7a1",
abi: [
{
inputs: [
Expand Down Expand Up @@ -73,7 +73,7 @@ const contracts = {
],
},
AutomationConsumer: {
address: "0x388421109AD3eE7349Ead0CdF830284603d7dC79",
address: "0xaF2c60F0aBfaB8ea496609A0Bb1b5cd6B98e605a",
abi: [
{
inputs: [
Expand Down Expand Up @@ -604,7 +604,7 @@ const contracts = {
],
},
VRFConsumer: {
address: "0x0994A8aF29771ffc388e575FD7914321d36e2b69",
address: "0xE74dF4827A13a3D1ac365fAe435213958B07bB08",
abi: [
{
inputs: [
Expand Down

0 comments on commit 9ddb588

Please sign in to comment.