diff --git a/public/math-spec-a0.pdf b/public/math-spec-a0.pdf index b342c9375..1fd9a3af3 100644 Binary files a/public/math-spec-a0.pdf and b/public/math-spec-a0.pdf differ diff --git a/public/math-spec-alph.pdf b/public/math-spec-alph.pdf index fd4d7e8c2..6b5b8558d 100644 Binary files a/public/math-spec-alph.pdf and b/public/math-spec-alph.pdf differ diff --git a/public/recruitment-tasks.pdf b/public/recruitment-tasks.pdf index 1e2e1f09c..c7b230bc1 100644 Binary files a/public/recruitment-tasks.pdf and b/public/recruitment-tasks.pdf differ diff --git a/src/store/sagas/bonds.ts b/src/store/sagas/bonds.ts index 7d4135303..6b9fa6139 100644 --- a/src/store/sagas/bonds.ts +++ b/src/store/sagas/bonds.ts @@ -142,7 +142,7 @@ export function* handleBuyBondWithWSOL(data: BuyBond) { const initialTx = new Transaction().add(createIx).add(transferIx).add(initIx) - const initialBlockhash = yield* call([connection, connection.getRecentBlockhash]) + const initialBlockhash = yield* call([connection, connection.getLatestBlockhash]) initialTx.recentBlockhash = initialBlockhash.blockhash initialTx.feePayer = wallet.publicKey @@ -155,12 +155,12 @@ export function* handleBuyBondWithWSOL(data: BuyBond) { }, bondKeypair.publicKey ) - const bondBlockhash = yield* call([connection, connection.getRecentBlockhash]) + const bondBlockhash = yield* call([connection, connection.getLatestBlockhash]) bondTx.recentBlockhash = bondBlockhash.blockhash bondTx.feePayer = wallet.publicKey const unwrapTx = new Transaction().add(unwrapIx) - const unwrapBlockhash = yield* call([connection, connection.getRecentBlockhash]) + const unwrapBlockhash = yield* call([connection, connection.getLatestBlockhash]) unwrapTx.recentBlockhash = unwrapBlockhash.blockhash unwrapTx.feePayer = wallet.publicKey @@ -339,7 +339,7 @@ export function* handleBuyBond(action: PayloadAction) { }, bondKeypair.publicKey ) - const blockhash = yield* call([connection, connection.getRecentBlockhash]) + const blockhash = yield* call([connection, connection.getLatestBlockhash]) tx.recentBlockhash = blockhash.blockhash tx.feePayer = wallet.publicKey @@ -452,7 +452,7 @@ export function* handleRedeemBondWithWSOL(data: RedeemBond) { const initialTx = new Transaction().add(createIx).add(initIx) - const initialBlockhash = yield* call([connection, connection.getRecentBlockhash]) + const initialBlockhash = yield* call([connection, connection.getLatestBlockhash]) initialTx.recentBlockhash = initialBlockhash.blockhash initialTx.feePayer = wallet.publicKey @@ -461,12 +461,12 @@ export function* handleRedeemBondWithWSOL(data: RedeemBond) { bondId: data.bondId, ownerBondAccount: wrappedSolAccount.publicKey }) - const blockhash = yield* call([connection, connection.getRecentBlockhash]) + const blockhash = yield* call([connection, connection.getLatestBlockhash]) redeemTx.recentBlockhash = blockhash.blockhash redeemTx.feePayer = wallet.publicKey const unwrapTx = new Transaction().add(unwrapIx) - const unwrapBlockhash = yield* call([connection, connection.getRecentBlockhash]) + const unwrapBlockhash = yield* call([connection, connection.getLatestBlockhash]) unwrapTx.recentBlockhash = unwrapBlockhash.blockhash unwrapTx.feePayer = wallet.publicKey @@ -636,7 +636,7 @@ export function* handleRedeemBond(action: PayloadAction) { bondId: action.payload.bondId, ownerBondAccount }) - const blockhash = yield* call([connection, connection.getRecentBlockhash]) + const blockhash = yield* call([connection, connection.getLatestBlockhash]) tx.recentBlockhash = blockhash.blockhash tx.feePayer = wallet.publicKey diff --git a/src/store/sagas/farms.ts b/src/store/sagas/farms.ts index 258da2cb2..977f8d2cd 100644 --- a/src/store/sagas/farms.ts +++ b/src/store/sagas/farms.ts @@ -717,7 +717,7 @@ export function* handleWithdrawRewardsWithWSOL(data: FarmPositionData) { const initialTx = new Transaction().add(createIx).add(initIx) - const initialBlockhash = yield* call([connection, connection.getRecentBlockhash]) + const initialBlockhash = yield* call([connection, connection.getLatestBlockhash]) initialTx.recentBlockhash = initialBlockhash.blockhash initialTx.feePayer = wallet.publicKey @@ -747,12 +747,12 @@ export function* handleWithdrawRewardsWithWSOL(data: FarmPositionData) { }) const withdrawTx = new Transaction().add(updateIx).add(withdrawIx) - const blockhash = yield* call([connection, connection.getRecentBlockhash]) + const blockhash = yield* call([connection, connection.getLatestBlockhash]) withdrawTx.recentBlockhash = blockhash.blockhash withdrawTx.feePayer = wallet.publicKey const unwrapTx = new Transaction().add(unwrapIx) - const unwrapBlockhash = yield* call([connection, connection.getRecentBlockhash]) + const unwrapBlockhash = yield* call([connection, connection.getLatestBlockhash]) unwrapTx.recentBlockhash = unwrapBlockhash.blockhash unwrapTx.feePayer = wallet.publicKey diff --git a/src/store/sagas/positions.ts b/src/store/sagas/positions.ts index 051429946..e605e6eb9 100644 --- a/src/store/sagas/positions.ts +++ b/src/store/sagas/positions.ts @@ -174,11 +174,11 @@ function* handleInitPositionAndPoolWithSOL(action: PayloadAction tx.add(ix), new Transaction()) const connection = yield* call(getConnection) - const blockhash = yield* call([connection, connection.getRecentBlockhash]) + const blockhash = yield* call([connection, connection.getLatestBlockhash]) tx.feePayer = wallet.publicKey tx.recentBlockhash = blockhash.blockhash const signedTx = yield* call([wallet, wallet.signTransaction], tx) @@ -227,7 +227,7 @@ export function* getCollateralTokenAirdrop( export function* signAndSend(wallet: WalletAdapter, tx: Transaction): SagaGenerator { const connection = yield* call(getConnection) - const blockhash = yield* call([connection, connection.getRecentBlockhash]) + const blockhash = yield* call([connection, connection.getLatestBlockhash]) tx.feePayer = wallet.publicKey tx.recentBlockhash = blockhash.blockhash const signedTx = yield* call([wallet, wallet.signTransaction], tx) diff --git a/src/web3/connection.ts b/src/web3/connection.ts index 48181ece1..0552f514c 100644 --- a/src/web3/connection.ts +++ b/src/web3/connection.ts @@ -11,7 +11,7 @@ const getSolanaConnection = (url: string): Connection => { if (_connection && _network === url) { return _connection } - _connection = new Connection(url, 'recent') + _connection = new Connection(url, 'processed') _network = url return _connection