const TargetDCA, TargetLimit
Targets select independently managed order pool whitelists.
Package whitelist manages the direct pools available to GnoSwap orders.
Package whitelist manages the direct pools available to GnoSwap orders.
DCA and Limit have independent pool whitelists, selected by TargetDCA ("dca") and TargetLimit ("limit"). Adding or removing a pool affects only the selected target. Pools must exist before being added; removing one prevents that target's orders from trading on it, not from cancelling.
Admin, governance, or callers authorized by gno.land/r/gnoswap/order/keeper can update membership. At deployment, AddWhitelistedPool and RemoveWhitelistedPool are assigned to PoolManagerRole on this realm; the target argument selects the pool list, not the authorization policy. Queries expose membership, a read-only pool tree, and whether a pair has an existing whitelisted direct pool at any registered fee tier.
Files:
AddWhitelistedPool permits target's orders to trade on an existing pool. Admin, governance, or the role assigned to this selector may call it.
GetWhitelistedPools returns only target's read-only poolPath -> true tree.
HasWhitelistedPool reports whether target allows an existing direct pool of the pair.
RemoveWhitelistedPool stops only target's orders from using this pool. Existing orders remain cancellable. Authorization matches AddWhitelistedPool.