Contracts
Types of Contracts in Dywe
The Dywe ecosystem utilises different types of smart contracts to support trading mechanisms and liquidity management.
1. Futures Contracts Positions
Futures contracts are designed to manage users' positions. They allow to perform the following operations:
Opening a position - creation of a trade order in the system.
Adding margin - increasing the margin of an open position.
Margin Withdrawal - partial withdrawal of funds from the margin collateral.
Changing Stop Loss - setting or adjusting the level of automatic closing of a position when a certain loss is reached.
Change Take Profit - setting or adjusting the level of automatic closing of a position when a certain profit is achieved.
Closing a position - fixing the result of trading and withdrawal of funds.
Each operation is realised through the execution of the corresponding op_code that defines the logic of interaction with the contract.
2. Liquidity Pool Contracts
Liquidity Pool Contracts are designed to manage funds of users participating in providing liquidity to the platform. Main functions:
Earnings on commissions and negative fixed P&L - liquidity funds are used in trading operations, generating profits for pool holders.
Pool replenishment (Provide) - depositing USDT into the liquidity pool in exchange for DLP tokens reflecting the user's share in the pool.
Withdraw - exchange DLP tokens for USDT at the current liquidity rate.
The Dywe contract system provides reliable and transparent functioning of trading instruments, as well as secure liquidity management on the platform.
Last updated