# sidecoo Daylock

Daylock has a fixed 250-card supply. No administrator, pause or upgrade. No owner withdrawal: only the original payer can reclaim a deposit, to their own wallet or to an address they choose. Verify the sole collection address on [sidecoo](https://sidecoo.com/daylock/) and compare its [BscScan source](https://bscscan.com/address/0xAD2533F7CFD653BC23daDFf1C6238c8b0f3354f0#code) before transacting.
- Sourcify: https://repo.sourcify.dev/56/0xAD2533F7CFD653BC23daDFf1C6238c8b0f3354f0

- Network: BNB Smart Chain, chain ID 56.
- Contract: `0xAD2533F7CFD653BC23daDFf1C6238c8b0f3354f0`
- Agent ID registry: `0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F`.
- Exact price per card: **1000000000000000 wei** (0.001 BNB).
- Of that price, **950000000000000 wei** (0.00095 BNB) is the refundable deposit and **50000000000000 wei** (0.00005 BNB) is the card fee sent at mint to `0x225784F1F10aF2c0Bfc50C746c1c0E4d3eA68C51`.
- Two lifetime cards per payer wallet and two per Agent ID. Paid value determines fill within those caps and remaining supply. Unused BNB returns to the payer in the same transaction.

## Mint

1. Read `agentKeyOf(wallet)` and `remainingSupply()`. A zero key means the wallet cannot mint.
2. Read `quote(wallet, paymentWei)`. It returns quantity, deposit, fee and change, in that order. Verify quantity and that deposit + fee + change equals the input. For one card, use `1000000000000000` wei. For two, start with `2000000000000000` wei. If only one is quoted, pay the exact single-card price and quote again. The integer argument to `mint(uint256)` is a hint. Gas is separate.
3. Simulate the exact calldata and value from the payer address. Show the resulting card quantity, deposit, fee, change, fee recipient and estimated gas. Check for any added approval or extra asset movement. Submit only after the user confirms.

## Recover a deposit

1. Use the original payer wallet. Read `claimQuote(wallet)`, which returns the ready amount in wei and the next locked maturity as a Unix timestamp (or zero). `positionOf(wallet, 0)` and `positionOf(wallet, 1)` give each pending amount and timestamp.
2. Each deposit can be claimed from its own mint timestamp plus 86,400 seconds, with no expiry. The caller can claim all of its matured batches while later batches remain locked. NFT transfers and changes to Agent ID eligibility do not change the payer's refund rights.
3. Preview `claim()` to the payer or `claimTo(address)` to an address chosen and confirmed by the payer. Both require **zero value**. Check the recipient and gas, then request a separate confirmation before submitting. Use the payer's own verified destination for `claimTo`, including when the payer is a contract wallet that cannot receive BNB.

## Calldata examples

| Call | Calldata | Transaction value (wei) |
| --- | --- | --- |
| mint() | `0x1249c58b` | `1000000000000000` |
| mint(1) | `0xa0712d680000000000000000000000000000000000000000000000000000000000000001` | `1000000000000000` |
| Empty calldata | `0x` | `1000000000000000` |
| claim() | `0x4e71d92d` | `0` |
| claimTo(example) | `0xa262f5f8000000000000000000000000000000000000000000000000000000000da710c2` | `0` |

The `claimTo(example)` address is a test fixture. Replace its final 32-byte argument with the payer's confirmed destination, left-padded with zeroes.

`DaylockBelowPrice(sentWei, priceWei)` means the supplied BNB cannot buy one card. `DaylockAgentRequired`, `DaylockSoldOut` and `DaylockQuotaUsed` identify the other mint gates. A refund before its maturity returns `DaylockNotReady(earliestUnlockAt)`. A payer with no pending refund gets `DaylockNoDeposit`.

- ABI (entries in `abi`): https://sidecoo.com/daylock/abi.json
