Monad testnet
Funding-cost calculator
What a position on Perpl pays in funding if the rate holds. Pick a perp, a side, a size and how long. No wallet needed. Then see the Hunch Book markets that would pay out if it does.
building
Where the numbers come from
Funding comes straight from Perpl's Exchange contract: getPerpetualInfoV2 for the perp's decimals and mark price, and getFundingSumAtBlock at each of the last 48 funding events. The count of funding events ahead uses the block time measured on chain over the last 10,000 blocks. The math is the hedge assistant's. The math, step by step.
The position
Side
USD
Notional in USD, turned into units at Perpl's mark price
Over
At the rate of
Funding over the next 7 days
Reading funding from Perpl