Full withdrawal

On Brine, which is a spot trading system, the only forced action is a withdrawal of all the funds. This guarantees that Brine, which is a L2 application cannot block users from getting their funds, which is an essential attribute of a DeFi application.

This section describes the specific parameters of a Full Withdrawal request.

Full Withdrawal parameters

When a User wants to perform Full Withdrawal, s/he calls the fullWithdrawalRequestfunction in Starkware contract. This function gets two parameters: starkKey and vaultId. The request is valid only if the starkKey parameter is associated with the Ethereum address that initiated the transaction. Otherwise, the request is rejected by the Starkware smart contract (and won’t be treated by Brine).

Last updated