Skip to content

Commit

Permalink
set Masa Green mint price to 1 USD
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Feb 15, 2023
1 parent 19d66ad commit fcfed67
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/SoulboundCreditScore.ts
Expand Up @@ -86,7 +86,7 @@ const func: DeployFunction = async ({
.connect(signer)
.addAuthority(env.AUTHORITY_WALLET || admin.address);

// add authority to soulboundCreditScore
// add mint price to soulboundCreditScore
await soulboundCreditScore.connect(signer).setMintPrice(20_000_000); // 20 USDC

// we add payment methods
Expand Down
3 changes: 3 additions & 0 deletions deploy/SoulboundGreen.ts
Expand Up @@ -95,6 +95,9 @@ const func: DeployFunction = async ({
.connect(signer)
.addAuthority(env.AUTHORITY_WALLET || admin.address);

// add mint price to soulboundCreditScore
await soulboundGreen.connect(signer).setMintPrice(1_000_000); // 1 USDC

// we add payment methods
env.PAYMENT_METHODS_SOULBOUNDGREEN.split(" ").forEach(
async (paymentMethod) => {
Expand Down
2 changes: 1 addition & 1 deletion test/SoulboundCreditScore.test.ts
Expand Up @@ -370,7 +370,7 @@ describe("Soulbound Credit Score", () => {

describe("mint paying a minting fee", () => {
beforeEach(async () => {
await soulboundCreditScore.connect(owner).setMintPrice(1); // 1 USD
await soulboundCreditScore.connect(owner).setMintPrice(1_000_000); // 1 USD
});

it("should mint from final user address paying with ETH", async () => {
Expand Down
2 changes: 2 additions & 0 deletions test/SoulboundGreen.test.ts
Expand Up @@ -134,6 +134,8 @@ describe("Soulbound Two-factor authentication (Green)", () => {
// we add authority account
await soulboundGreen.addAuthority(authority.address);

await soulboundGreen.setMintPrice(0); // 0 USDC

signatureToIdentity = await signMintCreditGreenToIdentity(
identityId1,
authority
Expand Down

0 comments on commit fcfed67

Please sign in to comment.