Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Managing a legacy Dapp
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Makoto Inoue
March 09, 2018
Programming
0
440
Managing a legacy Dapp
Makoto Inoue
March 09, 2018
Tweet
Share
More Decks by Makoto Inoue
See All by Makoto Inoue
ENS beyond Web3
makoto_inoue
0
140
Tokyo ENS Meetup 2023 June
makoto_inoue
0
110
ENS for your community
makoto_inoue
0
330
ENS for the multi chain world @ EthPorto 2023
makoto_inoue
0
220
ENS on Starknet at StarkWare Session
makoto_inoue
0
150
Ethcc: The State of ENS 2022
makoto_inoue
0
320
EthShanghai ENS integration workshop - May 2022
makoto_inoue
0
190
ENS Integration workshop @ nfthack
makoto_inoue
0
110
ENS as your web3 username
makoto_inoue
0
420
Other Decks in Programming
See All in Programming
Basic Architectures
denyspoltorak
0
680
Data-Centric Kaggle
isax1015
2
780
2026年 エンジニアリング自己学習法
yumechi
0
140
ぼくの開発環境2026
yuzneri
0
240
CSC307 Lecture 10
javiergs
PRO
1
660
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
380
Oxlint JS plugins
kazupon
1
980
CSC307 Lecture 08
javiergs
PRO
0
670
AI巻き込み型コードレビューのススメ
nealle
2
420
CSC307 Lecture 05
javiergs
PRO
0
500
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
5
760
dchart: charts from deck markup
ajstarks
3
1k
Featured
See All Featured
Designing for Timeless Needs
cassininazir
0
130
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
310
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.1k
The Language of Interfaces
destraynor
162
26k
How to build a perfect <img>
jonoalderson
1
4.9k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
Statistics for Hackers
jakevdp
799
230k
Odyssey Design
rkendrick25
PRO
1
500
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.7k
What's in a price? How to price your products and services
michaelherold
247
13k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
200
Game over? The fight for quality and originality in the time of robots
wayneb77
1
120
Transcript
Managing a legacy Dapp @makoto_inoue BlockParty
Topics - The legacy Dapp in action
Topics - The legacy Dapp in action - Evolution of
the code
Topics - The legacy Dapp in action - Evolution of
the code - Running on mainnet
The legacy Dapp in Action
- High expectation What is BlockParty? - Solving 50% problem
Reality
- High expectation - Harsh reality What is BlockParty? -
Solving 50% problem https://www.nytimes.com/interactive/2017/01/20/us/politics/trump-inauguration-crowd.html
What is BlockParty? - How?
“I went to a party and got extra Ether as
payout!!”
Flow
register(“@makoto_inoue”) Admin User
attend([“0x123…”, “0x456…”, “0x789…”) Admin
payback() Admin
withdraw() User
Meetups & Parties
Meetups & Parties
Meetups & Parties
Attendance rate
Payouts
Edcon post conference lunch (19/2/2017)
http://noblockno.party (11/3/2018)
Evolution of the code
The initial commit
The initial commit
The initial commit
The code
The code No version number No “payable” keyword No error
when missing public
The code
throw vs return - No error message - Swallow all
gas (used to be)
throw vs return - Can emit Event - Potentially unsecure?
The “Bloody October”
The “Bloody October”
Byzantine HF
throw vs return => require/assert/revert
Pull over Push
The DAO (30th April - 17th June 2016 )
0xbb9bc244d798123f...
The consequence
The 7th day
Did participants know about this?
What should I do with the money?
Did I donate?
Then what happened?
How did that happen?
Am I the only fool?
Share the best practices!!
Share the best practices!!
Running on mainnet
Gas price, gas price, gas price
The power of “default”
Gas price, gas price, gas price
The power of “default”
The power of “default”
The power of measuring
The power of measuring
But be careful...
Summary
Lessons learnt - Solidity evolves - “The best practices” evolve
- You only learn certain stuff on mainnet
How do you learn?
Move fast And break things http://uslaunchreport.com
Move fast And break things http://uslaunchreport.com http://giftrunk.com/gif/trampoline-pool-jump-fail
How do you learn (by failing) - Stake small
How do you learn (by failing) - Stake small -
Know your customer (doesn’t have to be full ID check)
How do you learn (by failing) - Stake small -
Know your customer (doesn’t have to be full ID check) - Deploy often
Thanks! @makoto_inoue http://ethcc.noblockno.party