lira-dao / ecosystem

2 stars 4 forks source link

[dex] get all referrals #60

Closed fredev closed 3 months ago

fredev commented 3 months ago

Expand the get referral call with the total count of the three referral levels

For the first level we calculate the number of referrals registered directly from the address present in the path parameter

For the second level we count all the referrals made by the first level referrals

The same goes for the third level but using the referrals from the second level

method: GET path: /referrals/:address

nicholas-aternum commented 3 months ago

It's ok? Screenshot from 2024-08-20 17-25-46