Summary
Very small deposits (e.g., 0.01 USD) create market token entries that cost more in rent than their pool contribution. A minimum deposit size prevents dust accumulation and simplifies keeper economics.
Proposed Design
Store min_deposit_usd_key(market) in data_store (admin-configurable, default 0 = no minimum).
In exchange_router::create_deposit, compute the USD value of the deposited tokens and revert with DepositError::BelowMinimumDeposit if below the minimum.
Acceptance Criteria
Affected Contracts
exchange_router, data_store
Summary
Very small deposits (e.g., 0.01 USD) create market token entries that cost more in rent than their pool contribution. A minimum deposit size prevents dust accumulation and simplifies keeper economics.
Proposed Design
Store
min_deposit_usd_key(market)indata_store(admin-configurable, default 0 = no minimum).In
exchange_router::create_deposit, compute the USD value of the deposited tokens and revert withDepositError::BelowMinimumDepositif below the minimum.Acceptance Criteria
Affected Contracts
exchange_router,data_store