Skip to content

Add integrator fee#72

Open
UnDeleteRU wants to merge 10 commits into
masterfrom
feature/PT9-759-add-integrator-fee
Open

Add integrator fee#72
UnDeleteRU wants to merge 10 commits into
masterfrom
feature/PT9-759-add-integrator-fee

Conversation

@UnDeleteRU

Copy link
Copy Markdown

Change Summary

What does this PR change?
Add integrator fee

Related Issue/Ticket:
https://1inch.atlassian.net/browse/PT9-759

Testing & Verification

How was this tested?

  • Unit tests
  • Integration tests
  • Manual testing (describe steps)
  • Verified on staging

Risk Assessment

Risk Level:

  • Low - Minor changes, no operational impact
  • Medium - Moderate changes, limited impact, standard rollback available
  • High - Significant changes, potential operational impact, complex rollback

Comment thread src/sdk/integrator-fee.util.ts Outdated
Comment thread src/sdk/sdk.ts
const order = new LimitOrderWithFee(orderInfo, makerTraits, feeExt)

if (feeParams.source) {
order.setSource(feeParams.source)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After this change createOrder silently starts embedding integrator fees and setting the source track code for keys with portal fee config - existing integrators get new behavior on upgrade without touching code. Can we call this out in the changelog/README and bump the version accordingly?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added README section

Comment thread src/bps.ts
Comment thread src/sdk/sdk.spec.ts Outdated
Comment thread src/api/api.ts Outdated
Comment thread src/sdk/integrator-fee.util.ts Outdated
Comment thread src/bps.ts
Comment thread src/sdk/sdk.ts
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