MCPcopy Create free account
hub / github.com/cutupdev/Solana-Token-Staking-Smart-Contract / createPool

Function createPool

cli/scripts.ts:101–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99};
100
101export const createPool = async () => {
102 const tx = await createPoolTx(
103 new BN(TEST_DURATION),
104 new BN(TEST_LOCK_PERIOD),
105 new BN(TEST_BOOST_TRIGGER_AMOUNT),
106 new BN(TEST_BOOST_PURCHASE_AMOUNT),
107 TEST_APY,
108 TEST_BOOST_APY_PERCENT,
109 TEST_PENALTY_FEE,
110 new BN(TEST_BOOST_DURATION),
111
112 payer.publicKey,
113 stakingMint,
114
115 solConnection,
116 program
117 );
118
119 await execTx(tx, solConnection, payer);
120};
121
122export const emergency = async (
123) => {

Callers 1

command.tsFile · 0.90

Calls 2

createPoolTxFunction · 0.90
execTxFunction · 0.90

Tested by

no test coverage detected