AOSSIE-Org / AOSSIE-Org/Agora-Blockchain
Issue: Centralized LINK Token Pool and Lack of Expenditure Tracking
- 主要言語
- JavaScript
- スター
- 97
- フォーク
- 199
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
## Description
The current implementation of the CCIPSender contract has a centralized liquidity pool of LINK tokens for all whitelisted elections.

This design has the following issues:
### Centralized Liquidity Pool:
- All elections share a single pool of LINK tokens, which can lead to resource exhaustion if one election consumes a disproportionate amount of tokens.
- There is no mechanism to track or limit LINK token expenditure per election.
### No Replenishment Mechanism:
Once the LINK tokens in the contract are exhausted, there is no built-in way to replenish them, making the contract non-functional until the owner manually adds more tokens.
### Lack of Transparency:
There is no way to track how many LINK tokens are spent by each election, making it difficult to identify resource-intensive elections.
## Proposed Solution
### 1. Per-Election LINK Token Tracking:
- Introduce a mapping to track the LINK token balance for each election separately.
- Ensure that each election can only spend the LINK tokens allocated to it.
- Allow elections to replenish their LINK token balance by depositing more tokens.
### 2. Cross chain voter pays additional charges
In this approach, the responsibility of paying cross-chain voting fees is shifted from the election owner to the voter. The voter pays the required link tokens . This eliminates the need for the election owner to manage LINK tokens and reduces their interference in the process.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。