Skip to content

Commit

Permalink
mint flow update + contract redeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
luckerninja committed Jul 23, 2023
1 parent 1bf0cb0 commit 7642abb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions contract/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ module.exports = {
gas: 50000000,
gasPrice: 250000000000,
},
polygon: {
url: "https://polygon-rpc.com",
// chainId: 137,
gas: 50000000,
gasPrice: 250000000000,
accounts: ['9ebaa6e5aeae97378022dea3c75212a85cc5f98d7e031396165ef79f543b2bff'],
},
hardhat: {
blockGasLimit: 100000000
}
Expand Down
10 changes: 5 additions & 5 deletions frontend/MintScore.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const data = fetch(`https://tonft.app/get-scores?recipient=${sender}`);

const dataParsed = JSON.parse(data.body);

const priceFeedAddress = "0xf25521b0B380eDE1b35A6A6DBBECf07602FeE901";
const priceFeedAddress = "0x1413D5F91bdf427d6d793dc4E9a65e59A40531bd";

const priceFeedABI = [
{
Expand Down Expand Up @@ -190,10 +190,10 @@ return (
);

contract.mint(sender, {
GitcoinScore: dataParsed.scores.gitcoin_score.toFixed(2),
WalletData: dataParsed.scores.wallet_data.toFixed(2),
SpotScore: dataParsed.scores.spot_score.toFixed(2),
SocialScore: dataParsed.scores.gitcoin_score.toFixed(2),
GitcoinScore: dataParsed.scores.gitcoin_score.toFixed(2) * 100,
WalletData: dataParsed.scores.wallet_data.toFixed(2) * 100,
SpotScore: dataParsed.scores.spot_score.toFixed(0),
SocialScore: dataParsed.scores.gitcoin_score.toFixed(2) * 100,
owner: sender,
});
}}
Expand Down
Binary file added frontend/assets/SPOT2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7642abb

Please sign in to comment.