Update PriceFeedConsumer.sol contract
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- solidity
- 領域
- blockchain
調査の方向性
Start with PriceFeedConsumer.sol and inspect the current getLatestPrice() implementation and its feed configuration. Use Chainlink Local's MockV3Aggregator updateAnswer and updateRoundData references to exercise zero values, stale timestamps, and decimal formatting; done means all listed edge cases are covered by tests and the contract exposes the renamed function.
索引モデルが issue の本文から書いたものです。
説明
- Rename the
getLatestPrice()function togetChainlinkDataFeedLatestAnswer() - Revert if returned
answerorroundIdare zero - Have a check for a stale answer. The
timeStamp/updatedAtshould be compared against the storage variable provided by the user that ideally should be a value close to a heartbeat of an actual feed. Ifblock.timestamp - s_usdcUsdFeedHeartbeatis greater thantimeStampcontract should revert - Currently contract returns plain
answer. We should format that value based on thedecimals()of the feed and token's decimals - Test all of these edge cases using Chainlink Local
- https://docs.chain.link/chainlink-local/api-reference/solidity/data-feeds/mockv3aggregator#updateanswer
- https://docs.chain.link/chainlink-local/api-reference/solidity/data-feeds/mockv3aggregator#updaterounddata
- https://docs.chain.link/chainlink-local/api-reference/solidity/data-feeds/mockoffchainaggregator#updateminandmaxanswers (optionally)
- 主要言語
- Solidity
- スター
- 364
- フォーク
- 107
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
smartcontractkit/foundry-starter-kit のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
smartcontractkit/foundry-starter-kit#37 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
smartcontractkit/foundry-starter-kit#36 · コメント 1 件 ·
smartcontractkit/foundry-starter-kit の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
icon-project/sodax-sdks#696 ·
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
th30d4y/OpenLearnX#737 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
btclib-org/btclib-node#2656 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hiero-ledger/hiero-sdk-js#4832 ·
メンテナーはふだん 1 日以内に返信
-
Bigint RPC params are sent as strings when the application defines BigInt.prototype.toJSON対応中かも @andreisilviudragnea が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信