Skip to content

value4value/time4value

Repository files navigation

Time4Value

A NEW WAY TO PAY.
Payment via the bonding curve and yield farming.
Sell your cryptocurrency time, and buy something with value.

A payment protocol designed for creators, it bridges the gap between creators and fans, where fans can donate, sponsor, subscribe, and more, while creators receive fees and yield.

  • For fans, pay early and earn more;
  • For creators, long-term income from fees and yield;
  • Lightweight with flexible curve and yield strategies;
  • No protocol fee, any client can be charged via referral fee;
  • Stake what you need, and withdraw when you want;
  • Made for creators like startups, indie hackers and KOLs.

Bug Bounty

If you are interested in the smart contracts, here's a simple bug bounty:

How it works?

The contract uses a sigmoid bonding curve for dynamic pricing. When you buy, it mints tokens and drives prices up, then when you sell, it burns tokens and drives prices down. The staked ETH is allocated in an interest-rate market to generate sustainable rewards, which are then redistributed to the creators.

Why is it better?

Features V4V Friendtech Patreon Coinbase Commerce
Flexible strategy ★★★★★ ★★★☆☆ ★★★☆☆ ★☆☆☆☆
Capital efficiency ★★★☆☆ ★☆☆☆☆ ★☆☆☆☆ ★☆☆☆☆
Permissionless ★★★★★ ★★★★★ ☆☆☆☆☆ ★★★☆☆
Tokenization ★★★★★ ★★★☆☆ ☆☆☆☆☆ ☆☆☆☆☆
Protocol Fee ★★★★☆ ★★☆☆☆ ★☆☆☆☆ ★★★☆☆

Smart Contracts

NFT

The token is a standard ERC1155 contract, with NFTs acting as shares in the bonding curve. When you trade shares, NFTs are minted or burned.

Network Address
Optimism Mainnet N/A
Optimism Sepolia 0x4aCF2aF23f51b7008dF3518A1511871F87083C38
Cyber Mainnet N/A
Cyber Sepolia 0x552d348657fafd661372f5864093dd9555a2ef06

Shares

SharesFactory is the core contract that contains the bonding curve and yield aggregator logic where you can mint, buy, and sell shares, as well as change yield strategies and claim yields.

Network Address
Optimism Mainnet N/A
Optimism Sepolia 0x9F94C75341D23EAb48793b2879F6062a400132e3
Cyber Mainnet N/A
Cyber Sepolia 0x1b05f188388b49ee9053914d3109119d228060b5

Yield

YieldAggregator is a yield strategy contract that provides a common interface for SharesFactory to use, such as deposit, withdraw, and claimable. However, the underlying logic can be any yield strategy, such as Aave, Pendle and LRT, or nothing at all.

Network Address
Optimism Mainnet N/A
Optimism Sepolia 0xc1eB8f8119De78Da6852F2607d5525d849FCBaaE
Cyber Mainnet N/A
Cyber Sepolia 0xba2553060e90551c797bebd48ee04909606bb04f

Test and Deploy

We use foundry to build tests and deploy.

install
  yarn install
test
  yarn run test
coverage
  yarn run coverage
deploy
  yarn run deploy:testnet
  yarn run deploy:mainnet

Acknowledgement

Thanks to Simon de la Rouviere, whose ideas inspired V4V to combine curated market with bonding curves, and to the ideal S-curve model from sound protocol, we’ve also learned the principle of minimalism from friend tech and bodhi.