Farming Liquidity
This document provides descriptions to interact with the AlphaHunter contract.
stakePosition
async function stakePosition(positionId: number)import { stakePosition } from '@storyhunt/wrapper-sdk';
(async () => {
try {
const txHash = await stakePosition(1234);
console.log(`Stake successful: ${txHash}`);
} catch (error) {
console.error('Error staking position:', error);
}
})();