[1/13] It may be initially confusing to fully grasp how deposits and withdrawals from L1 to @optimismPBC are actually implemented, and it helps to see the on-chain action of what is happening behind the scenes.

[2/13] Initial setup (simplified): on L1 we have SyntheticBridgeToOptimism from Synthetic and OVM_L1CrossDomainManager from Optimism contracts. On L2 we have SynthetixBridgeToBase and OVM_L2_CrossDomainManager contracts.
[3/13] Additionally we have Sequencer (L2 mining node) that verifies all L2 transactions and submits them in batches to L1 for future reference and Relayer that is responsible for relaying messages from L2 —> L1
[4/13] Step 1 - Alice wants to deposit $SNX to L2. To do that she calls initiateDeposit() method on the L1 SyntheticBridgeToOptimism which takes her $SNX, puts it in the escrow and calls OVM_L1CrossDomainManager sendMessage() method.
[5/13] The CrossDomainManager puts this request to CanonicalTransactionChain (this is an “official” and “unmutable” list of all L2 transactions on L1). As a consequence the Sequencer (L2 mining node) will need to execute this transaction on L2.
[6/13] This will result in invoking completeDeposit() method of SyntheticBridgeToBase on L2. This method will simply mint L2 $SNX tokens for Alice. See the trace below: https://t.co/VKFgJFyOWw
[7/13] Step 2 - Enjoy cheap L2 life. This trace below shows the L2 Sequencer submitting a batch of 346 L2 transactions issueMaxSynths(), burntSynth(), initiateWithdrawal(), updateRates(), etc… to L1.
[8/13] With no gas optimisation, on average, gas used per L2 tx was 26,138 or 3$ per transaction. All transactions are put in the CanonicalTransactionChain, the same used by CrossDomainManager before. https://t.co/vZK32LjJTn
[9/13] Step 3 - Alice wants do withdraw her $SNX from L2. To this end she calls initiateWithdrawal() on SynthetixBridgeToBase on L2 which sends the msg to L1 through OVM_L2_CrossDomainManager.
[10/13] CrossDomainManager changes its state which forces the Sequencer to commit this new L2 state to L1. You can see this in the next trace, with the inititateWithdraw() method being present in the Sequencer’s batch of 6 L2 transactions https://t.co/J2GeauWFRN
[11/13] Step 4 - Now we wait to make sure that the state root commitment submitted by the Sequencer is indeed valid. If nobody submits Fraud Proof that the state is incorrect, we can assume that it is indeed OK and it will never be rolled back
[12/13] Step 5 - after the FraudProofWindow has passed, the Relayer can finally relay message from L2 to SynthetixBridgeToOptimism contract. It constructs proof that convinces OVML1CrossDomainManager that this message was indeed submitted by Sequencer to CanonicalTransactionChain
[13/13] As a result L1CrossDomainManager will call completeWithdrawal() method on SynthetixBridgeToOptimism which will release escrowed L1 $SNX tokens kept there. https://t.co/1O3E78f0Sp
https://t.co/m2H1lCMDzB
https://t.co/KSUmMWFNeG

More from Crypto

Excited to share our 2020 #Bitcoin review.

2020 will be remembered as the year the long fabled institutions finally arrived and #Bitcoin became a bonafide macroeconomic asset.

Below are the top highlights of each month for Bitcoin’s historic year.

1/


Bitcoin is now at all-time highs capping off an extremely successful year.

But it was by no means stable ride up.

2020 was a historically volatile year.

@YoungCryptoPM and I provided a detailed overview of every month of 2020 in all its

Jan.

3 days into the new year the US assassinated Iran’s top general Soleimani.

BTC surprisingly reacted to the events behaving like a safe haven as the risk of war increased.

The events provided the first hints of BTC potentially having graduated to a legitimate macro asset.


Feb.

COVID-19 reached a tipping point causing markets to crash.

BTC’s correlation with the S&P 500 reached an ATH in the following weeks.

This is when everyone learned BTC was not a recession hedge, it was a hedge against inflation and loss of confidence in fiat currencies.
https://t.co/JB7dJ3qp6M


Mar.

Financial markets in free fall.

The liquidity crisis was so severe BTC experienced one of it’s worst days ever.

Now known as Black Thursday, on March 12, BTC plummeted as much as 50% to below $4,000 at its lowest point on the day.

BTC closed the day down 40%
1/ Welcome to #DeFi Wednesday.

Let's talk about how interest-bearing cash on a blockchain is going to revolutionise boring corporate treasury management that concerns every company is is a larger business than all crypto trading in the world.

Enter the thread

👇👇👇


2/ Blockchain community is often seen as toxic maxis and redditors who shill other their weekly favourite shitcoin in the hope of getting Lambo.

Sometimes we also do things that progress humanity towards the better future and interest-bearing cash is one of those things.


3/ Less chad and more things that actually matter:

My incomplete theory of interest-bearing cash is also available also as a blog post:

https://t.co/uiG0fZiVyu

It is 15 pages. Pick your slow poison or die fast by continue reading here.

4/ First time in the history we have an ability to create interest-bearing cash-like instruments.

Interest-bearing cash ticks up dollar (euro) balance real-time in your wallet.

Here is a demonstration using @aaveaave aDAI, based on @makerdao DAI, and @TrustWalletApp


5/ Interest-bearing cash is not like your bank's saving account. Your money in a bank is not yours, but bank's. There are some flaws in the current banking system causing a headache for Chief Financial Officers (CFOs)
You may be wondering why @bristoliver rather cryptically RT’d a chart that I posted last night. The answer is not just that he loves quadratic fits on log axes, but that this chart may –and I stress may– hint at a vaccine effect amongst the over 80s THREAD


WARNING: this is a long thread, and it’s a bit of a roller-coaster. We find some apparently strong patterns in the data, and then start to unpick them a bit. So if you start getting excited half way through you might find you’re less excited at the end. But we’ll see…

First we first have to go back a bit. @bristoliver posted a thread a few days ago explaining why, with a constant vaccination rate, a log plot of cases should show a quadratic form. In other words, it should fit an equation like: a + b.x + c.x^2

I meant to link in the model thread there - here it is


the quadratic coefficient – the ‘c’ in that equation – gives an estimate of the % of the population who are being newly protected by the vaccine each day. Please note ‘protected by the vaccine’, not ‘vaccinated’ – as we don't expect 100% protection after the first dose

You May Also Like

The YouTube algorithm that I helped build in 2011 still recommends the flat earth theory by the *hundreds of millions*. This investigation by @RawStory shows some of the real-life consequences of this badly designed AI.


This spring at SxSW, @SusanWojcicki promised "Wikipedia snippets" on debated videos. But they didn't put them on flat earth videos, and instead @YouTube is promoting merchandising such as "NASA lies - Never Trust a Snake". 2/


A few example of flat earth videos that were promoted by YouTube #today:
https://t.co/TumQiX2tlj 3/

https://t.co/uAORIJ5BYX 4/

https://t.co/yOGZ0pLfHG 5/
Tip from the Monkey
Pangolins, September 2019 and PLA are the key to this mystery
Stay Tuned!


1. Yang


2. A jacobin capuchin dangling a flagellin pangolin on a javelin while playing a mandolin and strangling a mannequin on a paladin's palanquin, said Saladin
More to come tomorrow!


3. Yigang Tong
https://t.co/CYtqYorhzH
Archived: https://t.co/ncz5ruwE2W


4. YT Interview
Some bats & pangolins carry viruses related with SARS-CoV-2, found in SE Asia and in Yunnan, & the pangolins carrying SARS-CoV-2 related viruses were smuggled from SE Asia, so there is a possibility that SARS-CoV-2 were coming from