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

Added description for errors #92

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions common-ts/src/constants/autogenerated/driftErrors.json
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,11 @@
"NoSpotPositionAvailable": {
"code": 6084,
"name": "NoSpotPositionAvailable",
"msg": "NoSpotPositionAvailable"
"msg": "NoSpotPositionAvailable",
"toast": {
"message": "No Spot Position Available",
"description": "This transaction failed because it would have exceeded the limit of available spot balances. The limit is 8. You'll need to close one of your existing spot positions (withdraw or swap it all) to open a new one."
}
},
"InvalidSpotMarketInitialization": {
"code": 6085,
Expand Down Expand Up @@ -517,7 +521,11 @@
"AMMNotUpdatedInSameSlot": {
"code": 6096,
"name": "AMMNotUpdatedInSameSlot",
"msg": "AMMNotUpdatedInSameSlot"
"msg": "AMMNotUpdatedInSameSlot",
"toast": {
"message": "AMM Not Updated in Same Slot",
"description": "This can happen when the oracle is stale. Please try again."
}
},
"AuctionNotComplete": {
"code": 6097,
Expand Down