Launch a new token backed by a real tokenized stock in a single transaction.
Call the permissionless sweep function to convert trading fees into stock payouts.
Hold a launched coin to passively accrue and claim real stock like Nvidia or Tesla.
Study the constant time dividend accounting pattern used to distribute payouts.
| alloyrh/alloyfund | capminal/capminal-contracts | 0xlocker/d17-contracts | |
|---|---|---|---|
| Stars | 463 | 24 | 1 |
| Language | Solidity | Solidity | Solidity |
| Setup difficulty | hard | hard | hard |
| Complexity | 4/5 | 4/5 | 5/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires deploying to Robinhood Chain and understanding Uniswap V3 pool mechanics.
Alloy is a set of smart contracts for a launchpad on Robinhood Chain that creates a new kind of token: a coin that pays its holders in real, tokenized stock. Each coin is tied at launch to one Robinhood-issued tokenized stock such as Nvidia, Tesla, or Apple. Every trade of that coin pays a small fee, and a portion of that fee is automatically used to buy the backing stock and send it, pro rata, to everyone holding the coin. The launch process happens in a single transaction. It deploys a fixed supply ERC-20 token with no ability to mint more later, opens a trading pool against a stablecoin, and puts the entire token supply into that pool as the starting liquidity. The liquidity position is never withdrawn, so the trading pool cannot be drained by the creator later. Anyone can trigger a function called sweep, which collects the fees built up in the pool, converts them to dollars, and splits them according to a fixed schedule: most goes toward buying the backing stock for holders, a smaller share goes to the person who created the coin, and the rest buys back the project's own token. The distribution of stock to holders uses a well known accounting pattern that lets it calculate each person's share in constant time, so it works no matter how many holders there are, without looping through a list. Addresses like the trading pool itself and the launchpad contract are excluded from receiving these dividends, so the payouts only reach real coin holders rather than being absorbed by the pool. The project also has its own token that collects a share of fees from every coin launched on the platform, and holding enough of it can waive launch fees or boost the dividends a creator receives. The contracts are written in Solidity and are verified and deployed on Robinhood Chain. The project documents its security properties directly, including that the owner cannot mint new tokens, pause the contracts, or seize balances, though it notes that the fee-sweeping trades are exposed to front running because they do not set a minimum output amount.
Smart contracts for launching a token that automatically pays holders real stock like Nvidia or Tesla shares from trading fees.
Mainly Solidity. The stack also includes Solidity, Uniswap V3, Robinhood Chain.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.