Skip to main content

set_tier

Function set_tier 

Source
pub async fn set_tier(
    __arg0: State<AdminState>,
    __arg1: SonicJson<AdminSetTierRequest>,
) -> impl IntoResponse
Expand description

POST /monitoring/set-tier - Set a user’s tier with limits from tier_defaults

Looks up the requested tier in tier_defaults and applies those limits to the wallet in user_tiers. Used by market makers to self-register on boot.

Authentication: Requires X-Admin-Key header.