docs: ADR 003 says redemption clamps to deliveryFloor; PaymentPoolBase NatSpec gives operatorBps 6000

オープン 初心者向け
#3,114 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
markdown, solidity

調査の方向性

ADR 003の25行目付近にある用語集の項目と129行目付近にある記述を読み、続いて385行目と834行目にある既存の補足を確認してください。PaymentPoolBase.sol:105をDeployPaymentPool.s.sol:34およびADR 016の390行目と比較してください。2つのADRの記述とNatSpecの値を更新してください。それぞれがFeeRouterの投票クレジット動作とデプロイ時のデフォルト値に一致したら完了です。

索引モデルが issue の本文から書いたものです。

説明

area:contracts kind:docs prio:low
Component

adr, contracts

What

Three statements disagree with the code or with other ADR text:

  1. ADR 003 § Glossary, "Voucher" (adr/003-payments.md:25) says "the floor clamp at redemption still reads the live deliveryFloor". The pool applies no byte clamp. deliveryFloor is a governance-chain FeeRouter parameter, and ADR 003 says so itself at L385 ("The pool applies no byte clamp") and L834.
  2. ADR 003 L129 says the chain's "payability floor is the deliveryFloor the contract already enforces". No payment-chain contract enforces it. FeeRouter uses it only to price vote credit (L432: "The FeeRouter delivery floor prices vote weight and is not a quote gate").
  3. PaymentPoolBase.operatorBps NatSpec (contracts/src/PaymentPoolBase.sol:105) says "6000 in the reference deployment". DeployPaymentPool.s.sol:34 sets DEFAULT_OPERATOR_BPS = 9000, and ADR 016 L390 says "default 9000".
Trigger

An x-ray pre-audit pass at ccce396e.

Done when
  • ADR 003 L25 and L129 describe deliveryFloor as the FeeRouter vote-credit price, with no redemption clamp.
  • PaymentPoolBase.sol:105 gives the reference value that DeployPaymentPool uses.
主要言語
Rust
スター
20
フォーク
0
平均マージ
14時間 36分
マージ済み PR(30日)
156

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

decdn/decdn のほかの issue

decdn/decdn の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。