Context
Add two MCV2_Bond view functions to the ABI. Reference: mint.club-v2-web and mintpad both use these patterns.
Functions to Add
priceForNextMint(address token) -> uint128
Simple current price, no amount param needed.
tokenBond(address token) -> (creator, mintRoyalty, burnRoyalty, createdAt, reserveToken, reserveBalance)
Full bond info including TVL (reserveBalance).
24h Price Change Utility (mintpad pattern)
Read priceForNextMint at current block and at currentBlock - 43200n (~24h on Base at 2s blocks). Return percentage change. No database or cron needed — pure on-chain reads.
Acceptance Criteria
Reference
- mintpad: src/helpers/contracts.ts (priceForNextMint + 24h change via block diff)
- mint.club-v2-web: app/hooks/price/mintclub.ts (priceForNextMint)
Dependencies
None
Context
Add two MCV2_Bond view functions to the ABI. Reference: mint.club-v2-web and mintpad both use these patterns.
Functions to Add
priceForNextMint(address token) -> uint128
Simple current price, no amount param needed.
tokenBond(address token) -> (creator, mintRoyalty, burnRoyalty, createdAt, reserveToken, reserveBalance)
Full bond info including TVL (reserveBalance).
24h Price Change Utility (mintpad pattern)
Read priceForNextMint at current block and at currentBlock - 43200n (~24h on Base at 2s blocks). Return percentage change. No database or cron needed — pure on-chain reads.
Acceptance Criteria
Reference
Dependencies
None