Skip to content

Commit

Permalink
temporarily disable the proposal fee (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xShuk authored Oct 23, 2024
1 parent 1d8212d commit 21cd1bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions actions/createLUTproposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { deduplicateObjsFilter } from '@utils/instructionTools'
import { sendSignAndConfirmTransactions } from '@utils/modifiedMangolana'
import { InstructionDataWithHoldUpTime } from './createProposal'
import { fetchProgramVersion } from '@hooks/queries/useProgramVersionQuery'
import { chargeFee, PROPOSAL_FEE } from './createChargeFee'
// import { chargeFee, PROPOSAL_FEE } from './createChargeFee'

/** This is a modified version of createProposal that makes a lookup table, which is useful for especially large instructions */
// TODO make a more generic, less redundant solution
Expand Down Expand Up @@ -106,7 +106,7 @@ export const createLUTProposal = async (
payer
)

instructions.push(...chargeFee(wallet.publicKey!, PROPOSAL_FEE))
// instructions.push(...chargeFee(wallet.publicKey!, PROPOSAL_FEE))
// TODO: Return signatoryRecordAddress from the SDK call
const signatoryRecordAddress = await getSignatoryRecordAddress(
programId,
Expand Down
4 changes: 2 additions & 2 deletions actions/createProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { trySentryLog } from '@utils/logs'
import { deduplicateObjsFilter } from '@utils/instructionTools'
import { NftVoterClient } from '@utils/uiTypes/NftVoterClient'
import { fetchProgramVersion } from '@hooks/queries/useProgramVersionQuery'
import { chargeFee, PROPOSAL_FEE } from './createChargeFee'
// import { chargeFee, PROPOSAL_FEE } from './createChargeFee'
export interface InstructionDataWithHoldUpTime {
data: InstructionData | null
holdUpTime: number | undefined
Expand Down Expand Up @@ -142,7 +142,7 @@ export const createProposal = async (
payer
)

instructions.push(...chargeFee(wallet.publicKey!, PROPOSAL_FEE))
// instructions.push(...chargeFee(wallet.publicKey!, PROPOSAL_FEE))

// TODO: Return signatoryRecordAddress from the SDK call
const signatoryRecordAddress = await getSignatoryRecordAddress(
Expand Down
4 changes: 2 additions & 2 deletions cli/helpers/createBase64Proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
getVoterPDA,
getVoterWeightPDA,
} from 'VoteStakeRegistry/sdk/accounts'
import { chargeFee, PROPOSAL_FEE } from 'actions/createChargeFee'
// import { chargeFee, PROPOSAL_FEE } from 'actions/createChargeFee'

export const createBase64Proposal = async (
connection: Connection,
Expand Down Expand Up @@ -110,7 +110,7 @@ export const createBase64Proposal = async (
payer
)

instructions.push(...chargeFee(wallet.publicKey!, PROPOSAL_FEE))
// instructions.push(...chargeFee(wallet.publicKey!, PROPOSAL_FEE))

const signatoryRecordAddress = await getSignatoryRecordAddress(
governanceProgram,
Expand Down

0 comments on commit 21cd1bd

Please sign in to comment.