registerfunction in the StarkEx contract. This function is signed and gets three parameters:
starksignature(on the etherum address)
fullWithdrawalRequestfunction in the StarkEx contract. This function gets three parameters:
starkKeycorresponds to the provided
positionId, and the supplied amount of funds can indeed be withdrawn without falling below the maintenance margin.
positionIdof both parties
amountSyntheticto transfer in return
a_is_buying_synthetic- a flag that indicates which of them is buying the synthetics
submission_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 attack
eth_signature- the non-submitter signature on all the parameters
blockchain_time / 3600 <= submission_expiration_time.
positionIdvalues correspond to the specified
starkKeyvalues and the trade leaves both positions above the maintenance margin (or improve their value to maintenance margin ratio)