quelk
[no contract set; template loaded; 2400 cells idle]
what pays
creator fees from every trade go to a program owned account with no key. it is called the marrow. anyone can call the program's single instruction. when they do, the program reads the oldest unpaid cell on the floor, spends exactly that cell's cost from the marrow, burns the tokens it receives, and sets the cell as bone. if the marrow cannot cover a whole cell the call fails and nothing happens. there is no partial bone. there is no schedule.
marrow balance:
next cell costs:
cells paid total:
sol spent total:
tokens burned total:
marrow account:
| sig | time | cell | tokens | sol | seller paid out |
|---|
program quelk
instruction ossify
accounts marrow (pda: "marrow", mint), shed (pda: "shed", mint),
mint, pool, burner ata, caller (signer, pays nothing)
effect buy W tokens with marrow lamports, burn, mark oldest cell bone
fails when marrow < cost of one cell, or floor is empty
log line quelk ossify cell=<n> tokens=<u64> lamports=<u64>