-
Notifications
You must be signed in to change notification settings - Fork 128
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
[ANCHOR-749] Add SEP-38 validation documentation #943
[ANCHOR-749] Add SEP-38 validation documentation #943
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to run yarn api
to generate the MDX files too.
If the validation fails, the Platform will respond to the client application's request with a HTTP status | ||
code of `502 Bad Gateway`. | ||
|
||
The `sell_mount`, `buy_amount`, `price`, and `fee` are validated as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: sell_amount
The `sell_mount`, `buy_amount`, `price`, and `fee` are validated as follows: | ||
|
||
- if `rate.fee` exists, | ||
- `rate.fee.asset` must be defined with proper `significant_decimals` in the asset configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does proper mean here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exists and positive.
Preview is available here: |
Preview is available here: |
@@ -718,7 +718,7 @@ Fetches a list of receivers within a specific disbursement using the disbursemen | |||
required={false} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should remove the SDP changes.
Preview is available here: |
Preview is available here: |
1 similar comment
Preview is available here: |
…-749-update-sep38-quote-validation-v2
Preview is available here: |
* Add SEP-38 validation rules --------- Co-authored-by: Elliot Voris <[email protected]>
*** Recreated due to operation mistake
Many validation rules are added to the response of the /rate endpoint. This PR adds the validations that may not be straight forward to the endpoint developers.