Home Blockchain How One Line of Code Destroyed Yam DeFi

How One Line of Code Destroyed Yam DeFi


The now notorious project, Yam.Finance, was launched without a proper code audit just like many other projects in the space. Richard Ma, the CEO of blockchain security company Quantstamp, told Cointelegrpah that many DeFi projects are launched unaudited in order to capitalize on reverse psychology:

“Not having an audit is currently seen as a good way to use reverse-psychology to do marketing.” He added, “It creates the perception that these projects are so in-demand, and that you’re getting in on it at the ground floor, before other people have heard of it.”

According to Ma, many popular projects like Yearn Finance, Cream and Yearn Finance II were launched in the same fashion. However, he notes that it does not necessarily mean that DeFi users need to be paranoid about these beloved projects; Ma noted that “the most danger lies in the early days.”

If a project survives its early growing pains, it “starts to accumulate many informal security reviews”. In the case of Yearn Finance, Quantstamp ended up performing a formal security audit later on. Yam was not fortunate enough to make it to that stage. Though Ma performed an unofficial audit of some of Yam’s smart contracts, he did not audit the one that led to the project’s failure. Examining the code, said that a single line of code doomed the Yam farmers: 

“totalSupply = initSupply.mul(yamsScalingFactor)”

This should have been followed by “div(BASE)”, in essence dividing the supply by a very large number — 10 followed by seventeen zeros. Without this divisor, the network was set to create “Zimbabwe style” inflation. According to Ma, there is no way of fixing this bug and as a result, approximately $750,000 worth of crypto is permanently locked.

Quanstamp’s CEO does not believe that the Yam debacle will break DeFi as “DeFi people have a way of being okay with volatility”. He also added that many crypto influencers invested in the now defunct project, noting that “So many influencers got into YAM – it’s about 1/3rd of my twitter feed now”.

Yam.finance’s short-lived history is perhaps best summed up by the following chart: 

CoinMarketCap

Source: CoinMarketCap.



Read orginal here

- Advertisement -
Mr Bitcointe
Mr Bitcointehttps://www.bitcointe.com/
“Fact You Need To Know About Cryptocurrency - The first Bitcoin purchase was for pizza.” ― Mohsin Jameel
474FansLike
76FollowersFollow
4,567FollowersFollow
5,261FollowersFollow
1,579FollowersFollow
2,230SubscribersSubscribe
USD - United States Dollar
EUR
1.18
GBP
1.29
CHF
1.10
NOK
0.11
JPY
0.01
CAD
0.76
AUD
0.73

Most Popular

The emergence of cryptocurrency hedge funds

I started exploring Bitcoin first in 2012 and, still today, I am fascinated by the opportunities and future potential digital assets pose as an...

Brazen Nigerian Crypto Scam Inksnation Still Operational Three Months After Regulator Warning

One of Nigeria’s most brazen crypto scams, Inksnation remains operational and still invites new investors some three months after the country’s Securities...

Former government contractor avoids jail for mining crypto at work

A former government contractor in Australia who mined crypto using state-owned supercomputers has avoided jail time. According to The Sydney Morning Herald, Jonathan Khoo...

Party at Vitalik’s House? For DeFi, it’s Do-or-Die

Ethereum gas prices have set new records, with single DeFi transactions costing over $10 in fees. High fees are the result of...
bitcoin
Bitcoin (BTC) $ 10,903.21
ethereum
Ethereum (ETH) $ 372.67
ripple
XRP (XRP) $ 0.246928
tether
Tether (USDT) $ 1.00
bitcoin-cash
Bitcoin Cash (BCH) $ 225.63
bitcoin-cash-sv
Bitcoin SV (BSV) $ 153.33
litecoin
Litecoin (LTC) $ 47.11
eos
EOS (EOS) $ 2.68
binancecoin
Binance Coin (BNB) $ 26.12
okb
OKB (OKB) $ 6.23
tezos
Tezos (XTZ) $ 2.26
leo-token
LEO Token (LEO) $ 1.24
cardano
Cardano (ADA) $ 0.089626
monero
Monero (XMR) $ 92.22
stellar
Stellar (XLM) $ 0.076580
chainlink
Chainlink (LINK) $ 10.01
huobi-token
Huobi Token (HT) $ 4.83
tron
TRON (TRX) $ 0.026943
usd-coin
USD Coin (USDC) $ 1.00
dash
Dash (DASH) $ 70.66
neo
NEO (NEO) $ 23.66
iota
IOTA (MIOTA) $ 0.262338
nem
NEM (XEM) $ 0.109395
zcash
Zcash (ZEC) $ 56.79
maker
Maker (MKR) $ 480.61
paxos-standard
Paxos Standard (PAX) $ 1.00
ethereum-classic
Ethereum Classic (ETC) $ 5.08
vechain
VeChain (VET) $ 0.014505
true-usd
TrueUSD (TUSD) $ 1.00
ftx-token
FTX Token (FTT) $ 3.73
kucoin-shares
KuCoin Shares (KCS) $ 1.17
waves
Waves (WAVES) $ 2.45