Open jatitoam opened 1 year ago
May you please explain me more about "Add a derived field referredAmount which will be referred x 25. Tops is 150 (as referred top is 6)" @jatitoam
we only allow 6 referred per id, so if referrer > 6, return 6
in consequence, referredAmount (referred x 25) can only be 150 tops
This issue is penidng signature from FE, will check later on
Add a new
/preregistration/account/:account?signature=<signature>
(GET) endpoint to get the fullpreregistration
document in anapplication/json
format.Validations should be returning using 4xx error and a json document:
Validations:
preregistration
collection AND in theaccount
collection (it needs to be in both): 404Important:
After signature verification (using concordium-sdk) the nonce needs to be cleared in the
account
document to invalidate it (if validation passes or fails).Return:
If everything works, return the whole
preregistration
document in json format and a 200 http code.Transformations:
The following are two rules for transforming the presented data (it will not affect the database):
referred
count will be limited to 6. Anything more than 6 will be returned as 6 in this field.referredAmount
which will bereferred
x 25. Tops is 150 (asreferred
top is 6)