> For the complete documentation index, see [llms.txt](https://docs.aftermath.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aftermath.finance/farms/faqs.md).

# FAQs

## How are rewards calculated?

The APR each staked position earns is a function of the amount of unclaimed rewards deposited in the vault for the current epoch, the size of the staked position relative to the total amount of LP tokens staked into the vault, and any rewards multiplier applied to the position by locking for a certain duration.

The calculation used to determine the emissions rate for each farming vault is as follows:

```typescript
 const emissionRateUsd =
            Coin.balanceWithDecimals(rewardCoin.emissionRate, decimals) * price;

        dayjs.extend(duration);
        const oneYearMs = dayjs.duration(1, "year").asMilliseconds();
        const rewardsUsdOneYear =
            emissionRateUsd * (oneYearMs / rewardCoin.emissionSchedulesMs);

        const apy = rewardsUsdOneYear / tvlUsd;
```

The rewards earned by each user position is then calculated by dividing the total emissions of the vault by the relative size of each position compared to the total number of LP tokens staked into the vault. A position with a lock multiplier receives a proportional increase in rewards accrued.

The general APR calculation for each position is then:

```typescript
dayjs.extend(duration);
const oneYearMs = dayjs.duration(1, "year").asMilliseconds();
const timeSinceLastHarvestMs =
  dayjs().valueOf() - this.trueLastHarvestRewardsTimestamp;

const rewardsUsdOneYear =
  timeSinceLastHarvestMs > 0
    ? rewardsUsd * (oneYearMs / timeSinceLastHarvestMs)
    : 0;

const apr = stakeUsd > 0 ? rewardsUsdOneYear / stakeUsd : 0;
return apr < 0 ? 0 : apr;
```

At any given point in time, our Front End displays accurate rewards accrued for that given moment. Until the rewards are realized, treat the figure as an estimate. This means the more often you claim rewards the more accurately your claimed rewards will match what is displayed on our Front End.

Our vaults utilize the ownership semantics inherent to Sui. When you stake assets, such as our afSUI/SUI LP, into one of our vaults, you create a position that wraps the coin you've staked. As the owner of this position, you are the only one who can invoke transactions that interact with it. The vault cannot access the funds you stake, so it does nothing with them.

Our vaults are unable to interact with your StakedPosition - as they are owned by you and only you - including distributing rewards to your position. Thus your position's rewards are only updated on-chain after you sign a transaction to interact with your position. Any action you perform on the position updates its accrued rewards, not only claiming.

## Why can't I lock?

Our vaults do not allow users to lock their position beyond the end of the current epoch, as rewards are fully distributed each epoch. If you are unable to lock your position, the current epoch is about to end. This currently occurs every two weeks on Sunday. Aftermath always announces on twitter when a new epoch has begun, how long it will run for, and the amount of incentives which will be distributed. If you are unable to lock, check our twitter feed for the announcement and try again once it has been posted.

## Can I auto-compound rewards or auto-relock?

Positions are not relocked automatically. When your lock expires, your position keeps earning the lock multiplier until you next interact with it, and you can unstake at any time. Your next action on the position, including claiming rewards or unstaking, credits the multiplier rewards earned up to that point and returns the position to base rewards. To keep earning a multiplier, relock the position.

The LP coin you stake is held within your staked position, so Aftermath or another contract cannot interact with it unless you sign off first. For the same reason, rewards cannot auto-compound; you must compound them manually.

## How long do farming emissions last?

Currently emissions run for two week epochs, with one ending and the next beginning on Sunday.

## How do I know when new rewards added to the Afterburner vaults?

Aftermath always announces on twitter when a new epoch begins, how long it will run for, and the amount of incentives which will be distributed.

## How do I stake/unstake/claim rewards?

See [Staking into a Farm](https://docs.aftermath.finance/farms/tutorials/staking-into-a-farm.md), [Claiming Rewards](https://docs.aftermath.finance/farms/tutorials/claiming-rewards.md), and [Unstaking](https://docs.aftermath.finance/farms/tutorials/unstaking.md).

## How do I keep track of all of my farming positions?

See the [Viewing your Porfolio: Farms ](https://docs.aftermath.finance/getting-started/navigating-aftermath/viewing-your-portfolio.md)section to monitor all of your farming positions through your Portfolio.
