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 product fee to the quote #348

Merged
merged 5 commits into from
Dec 13, 2023
Merged

Conversation

gsoares85
Copy link
Collaborator

No description provided.

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
[email protected]
Copy link
Collaborator

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

[email protected]
MAILGUN_DOMAIN=b30c8b203ade9013f16fbd24232f7580-102c75d8-2e73f63d

AWS_ACCESS_KEY_ID=AKIARRR3WWCRU722UAHK
Copy link
Collaborator

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"
Copy link
Collaborator

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 Show resolved Hide resolved
http/server.go Show resolved Hide resolved
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)
Copy link
Collaborator

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

@@ -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()
Copy link
Collaborator

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?

@gsoares85 gsoares85 requested a review from Luisfc68 December 12, 2023 16:29
Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

6 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@gsoares85 gsoares85 merged commit 51adcf8 into QA-Test Dec 13, 2023
1 of 2 checks passed
@gsoares85 gsoares85 deleted the feature/GBI-1512-NewLBCVersion branch December 13, 2023 08:54
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