Skip to content

[P5-2] Trading Widget #24

@realproject7

Description

@realproject7

Context

§6.2 — buy/sell storyline tokens with $PLOT on the story page. Uses MCV2_Bond's mint() and burn() functions. The bonding curve makes the price deterministic — the widget should show an estimated price before the user confirms. Include slippage protection.

Effective royalty split: 5% on every trade — 80% (4%) to writer, 20% (1%) to Mint Club protocol.

Sub-tickets

  • P5-2a: Build the trading widget component — buy/sell tabs, amount input, estimated cost/return display. Reads estimates from MCV2_Bond view functions.
  • P5-2b: Implement buy flow — approve $PLOT → call MCV2_Bond.mint() for the storyline token. Show tx states.
  • P5-2c: Implement sell flow — call MCV2_Bond.burn() for the storyline token → receive $PLOT. Show tx states.

Proposal Reference

§3.2 (Mint Club Integration), §6.2 (Story Page — Trading widget)

Dependencies

P5-1 (price utility), P3-1 (wallet)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions