Policies
Policies are rules that define how Swivell components behave in response to events.
{
"effect": "proxy_forward",
"scope": "<proxy id>",
"condition": "deposit.asset.symbol == 'USDT' && !deposit.asset.is_possible_spam",
"forward": {
"network": "solana",
"asset": "USDT",
"recipient": "your address"
}
}
Structure
Policy definitions have the following fields:
effect
: what should happen if the condition is metcondition
: predicate that determines when this policy takes effectscope
: ID of the resource to which the policy should apply- Effect parameters:
forward
: defines where the deposit should be sent and what asset should be received
There are currently two effects:
effect_forward
: convert and forward the deposit to the specified asset and walleteffect_freeze
: hold the deposit at the proxy and prevent funds from reaching your wallets
Updated 5 days ago
What’s Next