All
FAQ
Announcements
Product documents
Spot and futures cross margin mode
P&L Unrealized profit or loss of the current position.Calculation formula of P&L:1) Long positions with the trading currency serving as the margin currency, and the P&L is calculated in the trading currency.P&L = Total assets - (liability + interest) / mark price2) Long positions with the quote currency serving as the margin currency, and the P&L is calculated in the quote currency.P&L = Total assets * mark price - (liability + interest)3) Short positions with the quote currency serving as the marginPublished on Jun 17, 2022Updated on Nov 6, 2025Product documentationZero-Knowledge Proofs: what are zk-STARKs and how do they work? (zk-STARK V1)
For example, if we want to prove that p0(x), p1(x) and p2(x) are not more than D degrees, we can generate 2 random coefficients from the Merkle root generated in number 3, and calculate the linear-polynomial l(x) as: k0 = hash(root + "0") k1 = hash(root + "1") l(x) = k0 * p0(x) + k1 * p1(x) + p2(x) If l(x) could be proved to be not more than D degree, then the chance that the degree of any 6. Total balance verification: firstly, we verify the low-degree proof generated in number 5.Published on May 10, 2023Updated on Sep 8, 2025FAQ178
Showing 1-2 of 2 articles