sora-xor / sora2-network

SORA is a new economic system aimed at creating a supranational, world economic system with built-in tools for decentralized finance (DeFi). The SORA network implements a new way of parachain architecture on Polkadot and Kusama network, with the capability to bridge external blockchains (like Ethereum) to the Polkadot ecosystem.
Other
51 stars 23 forks source link

[Tech]: Add limit to buy and sell functions for synthetic assets #541

Closed Tieumsan closed 10 months ago

Tieumsan commented 1 year ago

Problem statement

To mitigate the risk of manipulation on synthetics, we want to add a limit to the amount of XST that can be bought or sold at the beginning of the launch of the synthetic platform.

We will get rid of the limitation in the future.

Description

We will add a limit of 10 million on the base asset (XST) when buying or selling synthetic assets.

If the quote on the trade for a synthetic asset involves more than 10 million XST, we should return an error.

Definition of Done

Requirements

Nolan730 commented 10 months ago

Its been too long and right now 10m xst is around 6$. Limiting all syntetic transactions to 6$ wont make any sense at all. If this kind of limit is needed, it should be $$ based. I believe it can be achieved with price tools data.