Ocean Market Balancer Simulations
For Token Engineering Academy
May 21, 2021
Trent McConaghy
@trentmc0 @oceanprotocol
[video]
Outline
Summary: Research Q’s
Summary: Research Q’s
Basis:
Research Q’s
What’s Ocean?
What’s Ocean?
Ocean Datatokens: On-ramp data services into data assets, and off
Electrical Engineering (EE)
Simulation & Verification
Variation = atoms out of place
…Propagating from devices to performance & yield
…
Process
variation ↑
Circuit performance
variation ↑
Device performance
variation ↑
Rare Event Verification for Memory: Problem
B
B
B
B
B
B
B
B
Bitline Precharge
Sense Amplifiers
.
.
.
.
.
.
Consider a 256Mb SRAM:
Want overall yield to be 90-99%.
For the SRAM to yield, need:
Bitcell sigma ~= 6σ
Sense Amp sigma ~= 4.5σ
1% improvement in overall yield makes a huge difference.
Memory is the leading edge of billion dollar fabs…
B
B
B
B
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Rare Event Verification of a Memory Bitcell
via SPICE-in-the-loop & AI tricks to reduce # sims
Rare Event Verification of a Memory Sense Amp
via SPICE-in-the-loop & AI tricks to reduce # sims
Worst-Case Verification for VCO of a PLL: Problem
Q: Does circuit meet constraints on all 3375 “PVT corner” combos?
Result: used 171 evaluations to verify 3375 corners
Worst-Case Verification for VCO of a PLL: Solution
SPICE-in-the-loop + AI/optimization to reduce # sims
TE Simulation & Verification
On TE Verification
It’s pragmatic to do verification in phases of increasing fidelity:
SW modeling with increasing fidelity
Ocean System TE
Ocean System TE: Process
<I did the following process over 8 weeks with a collaborator - Julien Thevenard @ Fabric.vc>
Ocean System TE: Goals
Find a design to enable...
Including:
A choice of system-level design will lead to goals of sub-blocks in the system.
Data Ecosystem
(Platform, Marketplaces etc)
BDB core devs, app devs ...
*Work* to build Data Ecosystem
Early 2020: BigchainDB is building Ocean data ecosystem (on behalf of OPF).
How do we make the data ecosystem sustainable and growing? Including having funds to keep improving platform etc.
Curate $: OceanDAO w criteria:
(1) growth
(2) mission
Data Ecosystem
(Data marketplaces etc, powered by Ocean tools)
Workers: core devs, app devs ...
*Work* to grow
Network revenue↑, $OCEAN↑
Network revenue
A loop! It’s ≅ the loop of any sustainable business.
But adapted for the Ocean Web3 ecosystem:
Give space for the community to discover more value.
Curate $: OceanDAO w criteria:
(1) growth
(2) mission
Data Ecosystem
(Data marketplaces etc, powered by Ocean tools)
Buy & Burn $OCEAN
Workers: core devs, app devs ...
*Work* to grow
Network revenue↑, $OCEAN↑
5%
Network revenue
Burn a % of all revenue so that stakeholders benefit from revenue growth.
Curate $: OceanDAO w criteria:
(1) growth
(2) mission
Data Ecosystem
(Data marketplaces etc, powered by Ocean tools)
Buy & Burn $OCEAN
Workers: core devs, app devs ...
*Work* to grow
Network revenue↑, $OCEAN↑
$OCEAN from OPF and network rewards
Disburse over decades
Vote on grants.
≅Governance token
Dynamics for $OCEAN↑ as usage↑, incl. stake/curate to get % of sales.
5%
Network revenue
Ocean System TE: Design Result → Schematic
New Pattern: Web3 Sustainability Loop
Curate $: OceanDAO w criteria:
(1) growth
(2) mission
Data Ecosystem
(Data marketplaces etc, powered by Ocean tools)
Buy & Burn $OCEAN
Workers: core devs, app devs ...
*Work* to grow
Network revenue↑, $OCEAN↑
$OCEAN from OPF and network rewards
Disburse over decades
Vote on grants.
≅Governance token
Dynamics for $OCEAN↑ as usage↑, incl. stake/curate to get % of sales.
5%
Network revenue
Ocean System TE: Design Result → Sub-block goals
The system-level design led to specific goals for sub-blocks.
-Top-down constraint-driven design methodology [ref Henry Chang et al].
Here are the goals for the sub-blocks in Ocean System:
To implement:
Ocean System TE
SW Verification
Ocean System TE Verification: Overall
Ocean System TE Verification: SW Modeling
Block diagram: early model
Includes:
I [Trent] had started to build this in the tokenSPICE repo; see early commits. However it had a lot of complexity, and my questions were more system-level. So I compressed all of the above into one block simply called “Data ecosystem”. See next slide.
Block diagram: actual
OceanDAO
“Data Ecosystem”: Publishers, Marketplaces, Buyers, ...
OP Community Address
Buy & Burn Ocean
Core devs, app devs, ecosystem/ outreach
51% supply
*Work* to improve network parameters
(eg # mktplaces)
which lead to
network revenue↑, $OCEAN↑
OPF Treasury
BDB Treasury
$
$
$
$
Key variables being modeled
Marketplaces Revenue
Ocean Network Revenue
Fundamental Valuation
Total
Valuation
Speculation Valuation
# Tokens
$OCEAN
t=0:
# mkts, $/mkt/yr
% of mkts revenue to Ocean Network
$ from 51%
Mkts Revenue Growth Rate
Ratio of ($ to R&D) /
($ network sales)
$ to R&D
(=work to improve network params)
init $ from BDB, OPF
% to R&D vs burn
init # tokens
F(): Time → OCEAN dispensed
F(): Ratio → Growth
# burned
# minted
Block diagram: simplified version for public
Curate $ w/ criteria:
(1) growth
(2) mission
Web3 Project Ecosystem
Buy & Burn $TOKEN
Workers: core devs, app devs ...
*Work* to grow
Network revenue↑, $TOKEN↑
$TOKEN generation
Disburse over years, decades, or centuries
Vote on $ allocation.
≅Governance token
Dynamics that make $TOKEN↑ as usage↑
x%
Network revenue
Modeling marketplaces growth rate
F(): Ratio → Growth
Growth should have these characteristics:
How we model, to capture the target characteristics:
Modeling 51% supply schedule
F(): Time → OCEAN dispensed
Concerns to address:
How to handle:
TokenSPICE results
Parameter Settings
Monthly R&D Spend
R&D/Sales Ratio, Marketplaces Growth Rate
Token count
Monthly # OCEAN minted & burned
DAO Income
Questions,
With Answers from Modeling Experiments
Q: Benefit of Worker-51% schedule?
Q: Best Schedule for 51% distribution?
Ocean Market V3 TE
Ocean Market V3 TE: Process
Ocean Market V3 TE: Goals
3PM = Third Party Marketplace (e.g. dexFreight)
Main:
Secondary (generally straightforward to solve, once main are solved):
Ocean Market V3 TE: Design exploration
Many designs were explored against the criteria.
Ocean Market V3 TE: Chosen design
Boson
Shared Market backend: buy / sell data assets
Ocean Market frontend:
Buy / sell data assets
Buyer
standalone mkt frontend for dF
decentralized unified metadata store
Referrers &
Curators
dF
Ocean community
Seller eth address
dF OCEAN
stake > $xK?
N
Y
L1/L2/L3 fees
N
$OCEAN�staked
25%
$
Unified payments, referrals, etc
Ocean Platform (L1, L2)
Ocean Market V3 TE:
Detailed version of chosen design
Concern: liability to whoever runs the unified metadata store; OPF can’t. Solution: decentralized metadata store. Options: (1) Eth mainnet + TheGraph, (2) IPFS + pinning, maybe Filecoin (3) arweave + some search, (4) [maybe] publish on the Web, and then the Ocean Market crawler *only* crawls the websites of Publishers. All must follow schema.org schema.
Concern: for many 3PMs, give up too much control, so they won’t use this. Answers: we can still capture revenue at L1, maybe L2 REST API, and maybe other L3 stuff like Oceansearch. And, we should make the Ocean Market frontend compelling enough for most people to stick around. E.g. more convenience, UX, liquidity. Just like Shopify did.
Top right: Curation is nice, referral is even more important. Because referral drives more traffic to the platform. So pay referral more. If you refer only, you earn a nice referral fee
If you refer & curate, you earn a bigger one. If you just curate, you earn a smaller one.
buyer
$90
Many possibilities, incl. seller incentives to referrers
dF
Ocean community
Seller eth address
dF OCEAN
stake > $50K
L1/L2 $0.72 tx fees
(Details in “Revenue Sources” section)
$8
N
Y
$OCEAN�staked
25%
...
Boson
standalone mkt frontend for dF
$100
Referrer- curator
$1.00�referral
Curator
$0.25�rev share
$1.25�referral
Referrer
Shared backend
decentralized unified metadata store
Unified payments
(incl. handle referrals, staking, etc).
Ocean Market frontend
Channel for dF, Boson, Molecule,..
discover data, across all data in metadata store (all 3PMs, and independent)
publish your own data for sale without any 3PM (“independent”)
25% of commission fees go to buying and staking OCEAN, until $50K of OCEAN staked.
deploy your own marketplace by point-and-click (“no-code”)
Ocean Market V3 TE: Implementation
A realization: using AMMs implements the “Chosen TE design”, and meets “TE Goals”.
Design details:
How the Market design implements the “Chosen TE design”:
How it meets “TE Goals”:
Ocean Market V3 TE: Verification
Ocean V3 (with Ocean Market) went live in the fall
Ocean Market V4 TE
Ocean Market V4 TE: Process
Ocean Market V4 TE: Goals
Simple -easy to understand. Mental model plays well with existing -smart contract SW simple: to implement, understand, maintain -GUI SW simple: to implement, understand, maintain |
Avoids large price swings when people just want to stake OCEAN |
Solves price spikes at beginning |
Solves price spikes in market equilibrium |
No risk of exit scam after IDO |
Good incentive for publisher to publish initially |
Address risk of datatoken price decoupling from what people will pay for it to consume it // Incentivize for actual consumption |
Ocean Market V4 TE: Status Quo V3 Design
Criterion | Ocean V3 |
Simple -easy to understand. Mental model plays well with existing -smart contract SW simple: to implement, understand, maintain -GUI SW simple: to implement, understand, maintain | ✔ |
Avoids large price swings when people just want to stake OCEAN | ✖ |
Solves price spikes at beginning | ✖ |
Solves price spikes in market equilibrium | ✖ |
No risk of exit scam after IDO | ✖✖ |
Good incentive for publisher to publish initially | ✔✔ |
Address risk of datatoken price decoupling from what people will pay for it to consume it // Incentivize for actual consumption | ✖ |
Mental Model: Life Cycle of a Data Asset
Sometimes 2 & 3 can blend together.
Ocean Market V3 Design, in context of Life Cycle
Ocean Market V3 Design - Issues in Context of Life Cycle
(there are other framings too)
Here's what's happening (bold = problems):
We've seen this problem before. It's the question of how do you release a crypto token to the market, to get the token into many hands that want it, to get a decent price, to get decent liquidity, etc.
This is the realm of fund raising of any token project, with tools like vesting, ICOs, IEOs and more. This is what we call an "IDO".
Ocean Market V4 TE: Design Iterations 1/2 (w/ Manual Verification)
Criterion | Ocean V3 | 1SS | LB | 1SS + LB | 1SS + LB + Dutch:Pub | 1SS + LB + Dutch:Pub + rICO | 1SS + Dutch:Pub | 1SS + Dutch:Pool | 1SS + Dutch:Pool + Vested Premine |
Simple -easy to understand. Mental model plays well with existing -smart contract SW simple: to implement, understand, maintain -GUI SW simple: to implement, understand, maintain | ✔ | ✔ | ✔ | ✔ | ≈✔ | ✖ | ✔ | ✔ | ✔ |
Avoids large price swings when people just want to stake OCEAN | ✖ | ✔ | ✖ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
Solves price spikes at beginning | ✖ | ✖ | ✖ | ✖ | ✔ | ✔ | ✔ | ✔ | ✔ |
Solves price spikes in market equilibrium | ✖ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
No risk of exit scam after IDO | ✖✖ | ✔ | ✖ | ✖ | ✖ | ✔ | ✖ | ✔ | ✔ |
Good incentive for publisher to publish initially | ✔✔ | ✖ | ✖ | ✖ | ✔ | ✔ | ✔ | ✖ | ✔ |
Address risk of datatoken price decoupling from what people will pay for it to consume it // Incentivize for actual consumption | ✖ | ✖ | ✖ | ✖ | ✖ | ✖ | ✖ | ✖ | ✖ |
Ocean Market V4 TE: Design Iterations 2/2 (w/ Manual Verification)
Criterion | Ocean V3 | 1SS + Dutch:Pool + Vested Premine | 1SS + Dutch:Pool + Vested Premine + Soft cap on ratio |
Simple -easy to understand. Mental model plays well with existing -smart contract SW simple: to implement, understand, maintain -GUI SW simple: to implement, understand, maintain | ✔ | ✔ | ≈✔ |
Avoids large price swings when people just want to stake OCEAN | ✖ | ✔ | ✔ |
Solves price spikes at beginning | ✖ | ✔ | ✔ |
Solves price spikes in market equilibrium | ✖ | ✔ | ✔ |
No risk of exit scam after IDO | ✖✖ | ✔ | ✔ |
Good incentive for publisher to publish initially | ✔✔ | ✔ | ✔ |
Address risk of datatoken price decoupling from what people will pay for it to consume it // Incentivize for actual consumption | ✖ | ✖ | ✔ |
Ocean Market V4 TE
SW Verification
Outline
Ocean Market V4 TE: Verification
Goal: TokenSPICE with EVM-in-the-loop
Motivations:
Review: SW Simulators
Block diagram: Ocean Market V3
For each DTx pool. Each dodecagon is an agent. Line thickness is observed volume.
$O
$DT1, $O
Stakerspeculator 1
Init: $O
Wants: more $O
Value-Creating Actions:
pool1
Init: unlimited $BPT1
Wants: $DT1 and $O (for liquidity)
Value-Creating Actions:
Publisher 1
Init: $O, unlimited $DT1, unlimited data1
Wants: more $O
Value-Creating Actions:
$BPT1
$BPT1
$O
$BPT1
Dataconsumer 1
Init: $O
Wants: more $O
Value-Creating Actions:
$O
$DT1
$DT1
data1 access
Publish DT1 pool & stake
Stake on pool1
Sell BPT1
Buy $DT1
Access $data1
$BPT1
$O
Sell BPT1
Block diagram: Ocean Market V4
with 1SS + Dutch:Pool + Vested Premine + soft cap on vol:consume ratio
For each DTx pool. Each dodecagon is an agent. Line thickness is expected volume.
$O
$O
Staker 1
Init: $O
Wants: more $O
Value-Creating Actions:
pool1
with 1SS + Dutch:Pool
Init: unlimited $BPT1, $DT1
Wants: $DT1 and $O (for liquidity)
Value-Creating Actions:
Publisher 1
Init: $O, unlimited $DT1, unlimited data1
Wants: more $O
Value-Creating Actions:
$BPT1
$BPT1
$O
$DT1 (vesting), $BPT1
Dataconsumer 1
Init: $O
Wants: more $O
Value-Creating Actions:
$O
$DT1
$DT1
data1 access
Sell BPT1
Buy $DT1
Access $data1
$O
Speculator 1
Init: $O
Wants: $DT1 and more $O
Value-Creating Actions:
$DT1
$DT1
$O
Buy DT1
Sell DT1
Publish DT1 pool & stake
$BPT1
$O
Sell BPT1
$DT1
$O
Sell DT1
Stake on pool1
TokenSPICE with EVM
Done so far:
Still to do:
TokenSPICE with EVM
Top-level agent architecture
Controllables
Controllable agents (structure):
Controllable variables:
TokenSPICE with EVM
Uncontrollables
Uncontrollable Agents:
Uncontrollable Variables (Env & rnd structure & params)
Metrics
TokenSPICE with EVM
Using TokenSPICE 1/4 [added 20210616] https://github.com/oceanprotocol/tokenspice
Using TokenSPICE 2/4 https://github.com/oceanprotocol/tokenspice
Using TokenSPICE 3/4 https://github.com/oceanprotocol/tokenspice
Using TokenSPICE 4/4: Kanban https://github.com/oceanprotocol/tokenspice
Benefits of EVM agent simulation [added 20210616]
TokenSPICE 2 and other EVM agent-based simulators have these benefits:
Research Qs
Summary: Research Q’s
Basis:
Research Q’s
Evolution * TokenSPICE
Evolve Antennae (and Send into Space!)
Evolve Whitebox Functions of Circuits
[McConaghy 2005]
Evolve Analog Circuits
Extend TokenSPICE: Evolve Solidity
Extend TokenSPICE: Evolve EVM Bytecode
Evolve WASM Bytecode
Evolve Networks of Attackers & Defenders
Roadmap
Roadmap - this work
Via https://github.com/oceanprotocol/tokenspice
Roadmap - beyond this work
Via https://github.com/oceanprotocol/tokenspice
Conclusion
Outline