Contracts
Four contracts, each with one job.
| Contract | Job |
|---|---|
FissipToken | SFISSIP. Holds the deposited FISSIP, stores shares, applies the split factor |
SplitEngine | Samples the market price, checks the trigger, executes the split |
BonusTreasury | Tracks holding time, converts ETH into stock tokens, pays the bonus |
FissipRouter | Buy and deposit, or withdraw and sell, in one transaction |
Addresses will be published here at deployment.
FissipToken
| Function | Purpose |
|---|---|
deposit(shares, to) | Deposit FISSIP, receive SFISSIP |
withdraw(shares, to) | Return SFISSIP, receive FISSIP |
balanceOf(account) | Shares × split factor |
sharesOf(account) | Shares |
splitFactor() / splitCount() | Current multiplier, number of splits |
base() | The FISSIP token address |
Only the Split Engine can apply a split. Nobody can mint SFISSIP without depositing.
SplitEngine
| Function | Purpose |
|---|---|
executeSplit() | Execute the split. Open to anyone |
poke() | Record a price sample. Open to anyone |
canSplit() | Whether the conditions hold now |
referencePrice() / nextTriggerPrice() | Reference and trigger |
twapPrice() / spotPrice() | Average and current price |
The engine only reads the market. It holds no funds and cannot trade.
BonusTreasury
| Function | Purpose |
|---|---|
claimAll() | Collect every pending bonus |
claim(epochIds) | Collect specific epochs |
pendingBonus(account) | Bonus waiting for an account |
currentWeight(account) | Weight in the running epoch |
currentEpoch() | Running epoch number |
FissipRouter
| Function | Purpose |
|---|---|
buy(minAmountOut, to) | Send ETH, receive SFISSIP |
sell(amount, minEthOut, to) | Send SFISSIP, receive ETH |
Both take a minimum output, so a trade that would execute worse than you accepted reverts.
Events
| Event | Emitted when |
|---|---|
Split(splitCount, splitFactor, referencePrice, timestamp) | A split executes |
SplitApplied(splitCount, splitFactor) | The token applies it |
EpochClosed(epoch, totalShareSeconds) | An epoch closes |
BonusClaimed(holder, epoch, stockToken, amount) | A bonus is collected |
