Home

Awesome

privx-exchange-contract

PrivX, a decentralized exchange built on Aleo, will bring immense value to the ecosystem. By leveraging Aleo's privacy features, PrivX ensures anonymous and secure crypto trading, eliminating the concern for centralization. It enhances liquidity, and attracts privacy-conscious users, positioning Aleo as a leading blockchain platform for private and secured trading. Additionally, there are some other benefits that PrivX may bring to the Aleo ecosystem.

We are still in developing stage & will publish plan and roadmap recently. Feel free to contact us via email: privx.exchange.lab@gmail.com, in case of any questions. Thanks for your interest!

Build Guide

To compile this Aleo program, run:

aleo build

Intruduction

You can trade in privx, which protects your privacy!

image

mapping

struct

function

1.mint_credits

Params

Description

Mint specify amount credits to an address.

2.deposit_credits

Params

Description

Move specific amount credits from credits_balance to credits_deposited

3.withdraw_credits

Params

Description

Move specific amount credits from credits_deposited to credits_balance

4.mint_token

Params

Description

Mint specify amount arc20's token to an address.

5.deposit_token

Params

Description

Move specific amount credits from token_balance to token_deposited

6.withdraw_credits

Params

Description

Move specific amount credits from token_deposited to token_balance

7.buy

Params

Description

decrease the credits_deposited, increase the credits_locked and generate a new buy Order with a seq id

8.sell

Params

Description

decrease the token_deposited, increaase the token_locked and genarate a new sell Order with a seq id

9.knockdown

Params

Description

Specify a sell order's id and a buy order's id and check whether the transaction conditions are met and if so, the transaction is completed.

10.cancel

Params

Description

Cancel an order belongs to the caller, return back the locked amount to deposited amount