Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add account slots and fees pages #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Lou-Kamades
Copy link

No description provided.

@@ -0,0 +1,13 @@
# 🫙 Account Slots

In order to fit the transaction requirements of the Solana blockchain, each `MangoAccount` need to have a maximum size. However, there are many more markets on Solana than a single `MangoAccount` could possibly fit. Mango solves this problem by providing "slots" for different user actions. This gives users the freedom to trade and borrow their preferred tokens, while still fulfilling the maximum size requirement.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"needs to have"

@@ -0,0 +1,15 @@
# 💰 Fees

Mango Markets charges fees on various markets and operations. All fees are voted on by the DAO and accrue to a DAO controlled wallet (FrkLPsCadx4tE4qDobbu2GTD5ffjWBpormHbLLy35PUS) which can be seen via governance: [https://dao.mango.markets/dao/MNGO/treasury/v2] (https://dao.mango.markets/dao/MNGO/treasury/v2).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might make people think no fees are accruing - because fees are first kept in the program and only transfer into that wallet once withdrawn from the program, which only happens sometimes.


### Market Based Fees
* **Openbook** - Maker/taker fees are -0.02%/0.04%. Since Mango is integrated with Openbook the DAO only receives a fraction of what Openbook collects via referrer fees
* **Mango Swaps** - Swap fees are 0.1%, with a fee of 0.2% for stop-loss/take-profit orders
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is right. Where do the numbers come from? I'd also prefer if we could have a fees overview page in the ui that displays the true values from on-chain - then we won't ever forget to update this page.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should be no fees on swaps currently and the dao also hasn't set fees on stop loss yet

### Market Based Fees
* **Openbook** - Maker/taker fees are -0.02%/0.04%. Since Mango is integrated with Openbook the DAO only receives a fraction of what Openbook collects via referrer fees
* **Mango Swaps** - Swap fees are 0.1%, with a fee of 0.2% for stop-loss/take-profit orders
* **Mango Perps** - Maker/taker fees are -0.03%/0.1%. Stop-loss orders have a fee of 0.2%
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no stop loss on perps

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the actually fees are 6bps taker / -3bps maker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants