starkKey
signatures, the forced actions are also the recommended way for users that lost their private starkKey
to get their funds from the system.fullWithdrawalRequest
function in the StarkEx contract. This function gets three parameters: starkKey
,vaultId
and amount.
starkKey
parameter is associated with the Ethereum address that initiated the transaction. Otherwise, the request is rejected by the StarkEx smart contract.starkKey
corresponds to the provided vaultId
, and the supplied amount of funds can indeed be withdrawn without falling below the maintenance margin.starkKey
and vaultId
of both partiescollateralAssetId
and amountCollateral
to transfersyntheticAssetId
and amountSynthetic
to transfer in returna_is_buying_synthetic
- a flag that indicates which of them is buying the syntheticssubmission_expiration_timestamp
- given in hours. This is to protect the non-submitter side from executing the trade in an arbitrary future time nonce
- used to protect the non-submitter side in the trade against replay attacketh_signature
- the non-submitter signature on all the parameterspremiumCost
- a parameter that determines the gas-cost of the transaction. See forcedWithdrawal for details.starkKey
values of both traders match their Ethereum addresses, there has been no request with the same parameters (including the nonce) before, and blockchain_time / 3600 <= submission_expiration_time
.vaultId
values correspond to the specified starkKey
values and the trade leaves both positions above the maintenance margin (or improve their value to maintenance margin ratio)