This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 283
(#2002, 2005, 2006, 2012) Handle zero mod fee #2018
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can one of the admins verify this patch? |
drwasho
added
ethereum
Ethereum integration-related issues.
🔍 readyForReview
Issue or PR ready for code review prior to closing.
labels
Mar 4, 2020
This was
linked to
issues
Mar 4, 2020
drwasho
changed the title
(#2012, 2005, 2006) Handle zero mod fee
(#2005, 2006, 2012) Handle zero mod fee
Mar 4, 2020
drwasho
changed the title
(#2005, 2006, 2012) Handle zero mod fee
(#2002, 2005, 2006, 2012) Handle zero mod fee
Mar 4, 2020
Moderator settings: {
"description": "I am test moderator.",
"termsAndConditions": "Will moderate anything and everything legal.",
"languages": [
"English",
"Spanish"
],
"fee": {
"feeType": "PERCENTAGE",
"percentage": 0
},
"acceptedCurrencies": [
"TBTC",
"TBCH",
"TLTC",
"TZEC",
"TETH"
]
} ✅ Normal moderated tx test: ✅ Split dispute payout (buyer disputed @ ✅ Split dispute payout (buyer disputed @ ✅ Split dispute payout (seller disputed @ ^ confirmed on Etherscan |
Moderator settings: {
"description": "I am test moderator.",
"termsAndConditions": "Will moderate anything and everything legal.",
"languages": [
"English",
"Spanish"
],
"fee": {
"feeType": "FIXED_PLUS_PERCENTAGE",
"percentage": 0,
"fixedFee": {
"bigAmount": "0",
"amountCurrency": {
"code": "USD",
"divisibility": 2
}
}
},
"acceptedCurrencies": [
"TBTC",
"TBCH",
"TLTC",
"TZEC",
"TETH"
]
} Same tests as the previous comment passed, the only wrinkle was for seller dispute split payout: The bug corresponded with this error in stdout:
Despite this, the funds were still successfully received and making the same API call a few minutes later was successful. |
Tests passing with moderator settings: {
"description": "I am test moderator.",
"termsAndConditions": "Will moderate anything and everything legal.",
"languages": [
"English",
"Spanish"
],
"fee": {
"feeType": "FIXED",
"fixedFee": {
"bigAmount": "0",
"amountCurrency": {
"code": "USD",
"divisibility": 2
}
}
},
"acceptedCurrencies": [
"TBTC",
"TBCH",
"TLTC",
"TZEC",
"TETH"
]
} |
Normal moderator settings are also working: {
"description": "I am test moderator.",
"termsAndConditions": "Will moderate anything and everything legal.",
"languages": [
"English",
"Spanish"
],
"fee": {
"feeType": "FIXED_PLUS_PERCENTAGE",
"percentage": 1,
"fixedFee": {
"bigAmount": "10",
"amountCurrency": {
"code": "USD",
"divisibility": 2
}
}
},
"acceptedCurrencies": [
"TBTC",
"TBCH",
"TLTC",
"TZEC",
"TETH"
]
} |
cpacia
approved these changes
Mar 6, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
ethereum
Ethereum integration-related issues.
🔍 readyForReview
Issue or PR ready for code review prior to closing.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes issue #2002 #2005 #2006 #2012