-
Notifications
You must be signed in to change notification settings - Fork 0
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 product fee to the quote #348
Conversation
docker-compose/local/.env.regtest
Outdated
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_REGION= | ||
[email protected] |
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 dont use mailgun anymore
docker-compose/local/.env.regtest
Outdated
[email protected] | ||
MAILGUN_DOMAIN=b30c8b203ade9013f16fbd24232f7580-102c75d8-2e73f63d | ||
|
||
AWS_ACCESS_KEY_ID=AKIARRR3WWCRU722UAHK |
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.
please dont push this to the repo !!
@@ -74,6 +74,7 @@ const GetCollateralError = "Unable to get collateral" | |||
const ErrorAddingProvider = "Error Adding New provider: %v" | |||
const ErrorRetrivingProviderAddress = "Error Retrieving Provider Address from MongoDB" | |||
const ErrorNotLiquidity = "Not enough liquidity" | |||
const ErrorRetrievingDaoFeePercentage = "Error retrieving dao fee percentage" |
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 need to stop doing this pattern of error msg and switch to sentinel errors (not to you or this PR, just adding to my tech debt list)
http/server.go
Outdated
@@ -1260,6 +1283,7 @@ func getPegOutProviderByAddress(liquidityProviders []pegout.LiquidityProvider, a | |||
} | |||
|
|||
func (s *Server) storeQuote(q *pegin.Quote) (string, error) { | |||
log.Debug(q.ProductFeeAmount) |
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.
pls delete this or add more context to the message
connectors/rsk.go
Outdated
@@ -980,6 +982,7 @@ func (rsk *RSK) ParsePegOutQuote(q *pegout.Quote) (bindings.QuotesPegOutQuote, e | |||
pq.TransferTime = q.TransferTime | |||
pq.ExpireDate = q.ExpireDate | |||
pq.ExpireBlock = q.ExpireBlock | |||
pq.ProductFeeAmount = types.NewWei(int64(q.ProductFeeAmount)).AsBigInt() |
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.
why do you parse using wei here and above you parse using big int directly?
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 6 New issues |
No description provided.