Potluck Start a pot

Docs

Potluck is one contract on Robinhood Chain, the book. Each pot collects USDG from its members for one Stock Token and buys it in a single swap.

What it is

start(token, target, daysOpen, firstPut) opens a pot: target from 10 USDG, open 1 to 30 days. chipIn(id, amount) adds from 1 USDG, trimmed to what the pot still needs. takeBack(id) returns your USDG while the pot has not bought.

A pot's life

Shares

A member's claim is bought × put / raised, exact to the unit. shareOf(id, who) shows the put and the stock (after the buy) or the stock it buys now at Chainlink (before it).

Fees and fills

The swap has a minimum out at the Chainlink price less 1.5% (owner cap 5%). COIN, MSTR and SPY route through WETH. Stock feeds pause between sessions.

The keeper

A Cloudflare worker checks every few minutes for pots that reached their target and buys them.

Owner limits

The book owner can set the price adapter, the router, the routes, the slippage (up to 5%), the treasury, the run fee and the cut inside the caps. There is no function that moves a pot's money anywhere except into its own swap or back to its members.

Risks

Contracts

BookOpening soon
Chainlink adapter0xe9bBcd46F9B0Df04B418e0207876984F9f8336cb
USDG0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168
Uniswap SwapRouter020xcaf681a66d020601342297493863e78c959e5cb2