# Dividends

Mined `$BEM` is paid to `$MTAPE` holders. The treasury takes no cut.

This is not a slice of the 5% trade tax. That tax is BNB, and after Flap's fee it enters the treasury to buy miners. `$BEM` is miner output. The treasury deposits it into the Flap Dividend whose reward token is `$BEM`.

`$MTAPE` is the unit that meters the claim. It is not `$BEM`, and it is not a share of treasury BNB. Comparison: [Comparison](/comparison).

Three things decide a new claim: whether the balance is at least 10,000 `$MTAPE`, whether the address is excluded, and whether mined `$BEM` has already been deposited. Transferring `$MTAPE` does not harvest miners. It updates the share. `$BEM` already booked stays where it was booked.

`$BEM` has 8 decimals. `$MTAPE` has 18. They are not 1:1. The Dividend scales shares by `2^128`. Reward debt rounds up, so a sole holder can be short 1 raw unit.

There is no lock. Selling ends further accrual. It does not erase `$BEM` already booked.

```mermaid
%%{init: {"theme":"base","themeVariables":{"primaryColor":"#1a120c","primaryTextColor":"#f5ede4","primaryBorderColor":"#953307","lineColor":"#f46622","secondaryColor":"#221710","tertiaryColor":"#120d09","edgeLabelBackground":"#120d09","noteBkgColor":"#221710","noteTextColor":"#f5ede4","noteBorderColor":"#953307","actorBkg":"#1a120c","actorBorder":"#953307","actorTextColor":"#f5ede4","signalColor":"#f46622","signalTextColor":"#f5ede4","fontFamily":"inherit"}}}%%
sequenceDiagram
  participant PodMining
  participant Treasury
  participant Dividend as Flap Dividend
  participant Token as MTAPE
  participant Holder
  Token->>Dividend: transfer calls setShare
  PodMining-->>Treasury: harvest pulls BEM
  Treasury->>Dividend: deposit
  Note right of Dividend: split by current shares
  Holder->>Dividend: withdrawDividendsFor
  Dividend-->>Holder: BEM paid, no MTAPE minted
  Note over Dividend,Holder: floor 10000 MTAPE
```

## Shares

The denominator is `totalShares` on the Flap Dividend. It is the sum of balances that clear the floor and are not excluded. It is not an exchange's float.

| Balance | Share |
|---|---|
| Below 10,000 `$MTAPE` | 0. No new deposits |
| Exactly 10,000 `$MTAPE` or more | Equal to the token balance |
| Portal, token, dead, pools | Excluded. Share stays 0 |

A buy that lands after a deposit does not receive that deposit. The buyer's debt is set at the current accumulator.

If `totalShares` is 0, `deposit` returns false and does not take the tokens. The `$BEM` stays in the treasury until a later `distributeBem` or harvest.

## Floor

The floor is 10,000 `$MTAPE`, set at launch as `minimumShareBalance`. It filters dust. It is not a staking lock.

Falling under the floor stops new deposits for that address. `$BEM` already booked remains claimable. Crossing back to exactly 10,000 restores a share for future deposits. It does not restore the deposits missed while the share was 0.

## Booking and claiming

Harvest pulls `$BEM` from PodMining only while the circuit NFT is owned by the treasury, then deposits the treasury's `$BEM` balance. `distributeBem` retries a deposit that was refused.

| Call | Role |
|---|---|
| `harvestRange` / `harvestMany` / `claimMining` | Pull miner `$BEM`, then deposit |
| `distributeBem` | Deposit `$BEM` still sitting in the treasury |
| `withdrawDividendsFor(holder)` | Pay the holder. Anyone may call it. The caller is not paid |
| `account(user)` | Token balance, share, booked `$BEM`, and a preview that adds unharvested output |

After a successful claim, that address's withdrawable balance is 0. A second claim in the same state returns false.

The preview adds unharvested miner output and `$BEM` still sitting in the treasury, pro-rata on `totalShares`. That is a preview, not a booked balance. Booking needs a harvest and a successful deposit.

## Sells and transfers

A transfer does three things on the Dividend:

1. Keep `$BEM` already booked on the sender.
2. Set the sender's share from the new balance.
3. Give the receiver a share for future deposits only. The receiver does not inherit the sender's booked `$BEM`.

Selling the entire balance leaves the booked amount claimable and sets the share to 0. There is no lock, so there is no second unstake step.

Read your numbers with `account`. Emission, rounding, and Flap's admin rights on the Dividend: [Risks](/risks).
