Skip to content

Commit

Permalink
hardcode initial parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
0xodia committed Jun 19, 2022
1 parent 0f680b5 commit d1a7ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
12 changes: 2 additions & 10 deletions actions/registerRealm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,11 @@ async function prepareMintInstructions(
*/
function createGovernanceConfig(
yesVoteThreshold = 60,
tokenDecimals?: number,
minCommunityTokensToCreateGovernance?: string
_tokenDecimals?: number,
_minCommunityTokensToCreateGovernance?: string
): GovernanceConfig {
console.debug('mounting governance config')

const minCommunityTokensToCreateAsMintValue = getMintNaturalAmountFromDecimalAsBN(
minCommunityTokensToCreateGovernance &&
+minCommunityTokensToCreateGovernance > 0
? +minCommunityTokensToCreateGovernance
: MIN_COMMUNITY_TOKENS_TO_CREATE_W_0_SUPPLY,
tokenDecimals ?? COMMUNITY_MINT_DECIMALS
)

// Put community and council mints under the realm governance with default config
return new GovernanceConfig({
voteThresholdPercentage: new VoteThresholdPercentage({
Expand Down
1 change: 0 additions & 1 deletion tools/governance/prepareRealmCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export async function prepareRealmCreation({

realmName,
tokensToGovernThreshold,
maxVotingTimeInDays = 3,

nftCollectionCount = 0,
existingCommunityMintPk,
Expand Down

2 comments on commit d1a7ee9

@vercel
Copy link

@vercel vercel bot commented on d1a7ee9 Jun 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

governance-ui – ./

governance-ui-eta.vercel.app
governance-ui-test123z.vercel.app
governance-ui-git-main-test123z.vercel.app

@vercel
Copy link

@vercel vercel bot commented on d1a7ee9 Jun 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

solend-governance – ./

solend-governance.vercel.app
solend-governance-git-main-solend.vercel.app
solend-governance-solend.vercel.app

Please sign in to comment.