# sidecoo Charm Poll

Official site: https://sidecoo.com/charm-poll/

BNB Smart Chain, chain ID 56. Contract: `0x05568a9098bdd3E7c2e4e298EfAEBF212B2dE536` ([source](https://bscscan.com/address/0x05568a9098bdd3E7c2e4e298EfAEBF212B2dE536#code))

No administrator, privileged mint, upgrade, pause, freeze or withdrawal. The price and payee are fixed.

## Daily ballot

Read `today()` for the UTC day (integer Unix time divided by 86400). Read `round(day)` for the three vote counts followed by the neutral count. View the choices with `previewArt(day, option)`. Options 0, 1 and 2 mean A, B and C.

Check `agentKeyOf(wallet)` and `canParticipate(wallet)` for eligibility. Call `vote(day,option)` or `participate(day)` with 0 wei to receive an ERC-721 participation card. The neutral aliases `mint()`, `freeMint()`, `claim()`, `mint(1)`, and `mintFree()` use the current UTC day and value 0. Both paths share one daily allowance per Agent ID. Neutral participation counts only toward the neutral total. Network gas is separate.

## Collect a print

The sidecoo icon (`kind=0`) opens at deployment. From the second UTC day, the previous ballot’s winner (`kind=1`) is on offer for that day when `winner(day-1)` reports a winner. Check `today() > startDay()` before querying yesterday. Top ties follow A, B, C order. A ballot without votes has no winner, and the icon remains on offer with fresh daily stock.

Use the **current sale day** with `previewPrint(day,kind)`, `sold(day,kind)`, `purchased(day,wallet)`, and `quoteValue(wallet,day,kind,maximum,valueWei)`. Stock is 250 per kind per UTC day. Any wallet may buy up to 10 copies per UTC day across both kinds.

`PRICE()` is 250000000000000 wei (0.00025 BNB) per copy. The quote returns (copies, charge, refund). Fill is floor(value / price), bounded by stock, the shared wallet allowance, and the buyer’s maximum. Set maximum to 1–10 and minimum to 1 through maximum. Below one copy, a fill below minimum, or a stale day reverts. The charge goes to 0x225784F1F10aF2c0Bfc50C746c1c0E4d3eA68C51 and the change returns in the same transaction. Failed payment or change reverts all actions.

- Opening-day icon: `buyPrint(day,0,10,1)`, value 250000000000000 wei.
- Two winning prints with change: `buyPrint(day,1,10,2)`, value 500000000000001 wei, expected change 1 wei.
- Vote B and buy an icon together: `voteAndBuy(day,1,0,10,1)`, value 250000000000000 wei. Use option 3 for a neutral card.

Use the sole official contract address shown above. Simulate the exact calldata as the same sender with the same value. Verify the quote and send only after the wallet user authorizes the transaction. Checkout requires no token approvals. View items with `itemOf(tokenId)` and `tokenURI(tokenId)`. The item day is the print’s sale day for the icon and the source ballot day for a winning print.

Voting has no rewards or prize pool. Collectibles may lose value. Blockchain transactions are irreversible.
