Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Manna app #40

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Fix typo
  • Loading branch information
MiKoronjoo committed Nov 6, 2023
commit ef6d7616c78e785c13c78c3fff11c0dba2d44141
2 changes: 1 addition & 1 deletion general/manna.js
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ const MannaApp = {
};
const data = (await axios.post(scorerUrl, params, config)).data;
if (data.score == null)
throw {message: "We have relieved rate limit error from gitcoin. Please try again later"}
throw {message: "We have received rate limit error from gitcoin. Please try again later"}
let score = Math.floor(data.score * 10 ** 6);
await this.redis.set(redisPrefix + address, JSON.stringify({timestamp: timeNow, score: score}));
return {score, timestamp, address};