Skip to content

feat: allow registering a referral through the proxy#21

Open
kraikov wants to merge 1 commit intomasterfrom
feat/proxy-register-referrals
Open

feat: allow registering a referral through the proxy#21
kraikov wants to merge 1 commit intomasterfrom
feat/proxy-register-referrals

Conversation

@kraikov
Copy link
Collaborator

@kraikov kraikov commented Feb 15, 2022

Fixes LIQ-1040

@kraikov kraikov requested review from koderholic and monokh February 15, 2022 08:00
@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Feb 15, 2022
@linear
Copy link

linear bot commented Feb 15, 2022

LIQ-1040 Liquality Proxy - Register Referral

Background:

  • The proxy proxies to other contracts like 1inch

Problem:

  • It needs to also register referral in the same call if required see LIQ-728

Proposal:

  • Register the referral passed to calls to proxy

Comment on lines +30 to +31
// handle referrals
Referral memory referral = referralRegistry.getReferral(user);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think referralRegistry was ever initialized, at what point did you equate referralRegistry to the Referral smart contract address?

@trafico-bot trafico-bot bot added ⚠️ Changes requested Pull Request needs changes before it can be reviewed again and removed 🔍 Ready for Review Pull Request is not reviewed yet labels Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ Changes requested Pull Request needs changes before it can be reviewed again size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants