cloudfunctions for automatically calculation of profits and user hierarchy
Budget: €30 – €250 EUR
Hey, i need help to develop cloudfunctions for 2 things.
1) to set a 8-level hierarchy of each user.
-> each user has an unique ID.
-> during the registation, each user can set his/her sponsor to be in the downline of a particular user.
-> each user can have unlimited user in his own downline, but only for 8 level.
2) a user gets a profit share from his/her own downline.
-> when his/her partner in Level 1 get eg. 100 USD, he will receive 8% of it ( level 2 = 2 %, level 3 = 1% ...)
he will receive this bonus for each of his downline partners.
since we work with firebase, i think cloudfunctions would be the best fit.
1) to set a 8-level hierarchy of each user.
-> each user has an unique ID.
-> during the registation, each user can set his/her sponsor to be in the downline of a particular user.
-> each user can have unlimited user in his own downline, but only for 8 level.
2) a user gets a profit share from his/her own downline.
-> when his/her partner in Level 1 get eg. 100 USD, he will receive 8% of it ( level 2 = 2 %, level 3 = 1% ...)
he will receive this bonus for each of his downline partners.
since we work with firebase, i think cloudfunctions would be the best fit.