1/ If, after reading https://t.co/IzzATArtZl you are still confused how Alpha Homora and IronBank were hacked, here's how the hack was conceived

2/ Normally when you borrow funds from AH bank, your debtShare and totalDebt increases. Specifically if you want to borrow x tokens, your debt share will be calculated as:

share = x * totalShare / totalDebt

and it is added to totalShare
3/ All these numbers are very big integers (as token precisions are 18 digits) and the calculation is correct, but when totalShare = 1 (think 1 wei) and x < totalDebt, new debt share will be 0 (integer division)
4/ So if you manage to have AH bank with totalShare = 1, and some totalDebt you can repeatedly borrow less than the totalDebt (ideally totalDebt - 1) effectively doubling totalDebt in each iteration. You can do it as many times as you want, while totalShare will remain 1
5/ Eventually Iron Bank that supplies funds to AH will run out of funds, so when amounts get big enough (you are doubling each time), also make sure to replenish it with flash loan
6/ But first you need to make sure that there is a AH bank with totalShare = 1 in the first place. To do that you need to start with an empty bank, i.e. token that has been approved but not used yet. In this case - sUSD
7/ Then you need to do some initial setup which involves putting some collateral, taking small loan and repaying almost all of it - almost, leaving exactly 1 wei. Now you have a bank with totalShare and totalDebt = 1. Almost done, need to increase totalDebt
8/ To do that you call resolveReserve() method on this bank which will increase totalDebt without increasing totalShare and your setup is finished. Now you can extract funds doubling totalDebt at each step.
9/ Notice the state of the initial setup just before a sequence of borrows
https://t.co/267VbLXVUF

More from Finance

The Dutch regulator and DNB as financial supervisor are a tough cookie to deal with. In essence they hyperregulate EU-rules into goldplated Dutch rules which go beyond what is prescribed in Europe.

All NL-customers at British banks may thus be kicked out on brexit.

Thread

/1

If we start with the capital requirements directive, it says attracting deposits is forbidden. In article 9.

https://t.co/RYl7SXligC


Now the translation of that rule into Dutch law is slightly expanded to not only prohibit attracting deposits, but to also prohibit, having those deposits under custody ('ter beschikking hebben').

That's not in EU law, but it is in our Dutch law.

https://t.co/PsbWfNY3PA


So if you wonder how this would work out for UK banks and Payment institutions servicing Dutch customers. Have a read at the technical explanation of DNB, the financial supervisor and their summarising table.

https://t.co/LL0fAnYkRJ

Passive servicing of Dutch is not allowed!


Any bank or PSP in the UK that continues to serve Dutch customers (as in retail customers, professional players are excepted) can thus be subject to fines and policing under Dutch law.

Meaning we not only have Accidental American issues in payments, but also Accidental Dutchies
Inflation is coming, inflation is coming!

Last month I wrote about the distinction between long-term secular inflation and shorter-term cyclical inflation

It has been clear for several months that we are in the middle of a cyclical rise in


The full thread can be reviewed here:


Today's PPI report should have been expected to surprise to the upside as the leading indicators of inflation have been screaming to the upside for months!

Here is the ISM prices paid index, cumulated into a growth rate

3/


Industrial commodity prices have also seen a major acceleration for months.

4/


So today's PPI report was in line with the leads, suggesting that we have a cyclical upturn in inflation that is * primarily concentrated in the manufacturing sector *

This is a key point.

5/

You May Also Like

A THREAD ON @SarangSood

Decoded his way of analysis/logics for everyone to easily understand.

Have covered:
1. Analysis of volatility, how to foresee/signs.
2. Workbook
3. When to sell options
4. Diff category of days
5. How movement of option prices tell us what will happen

1. Keeps following volatility super closely.

Makes 7-8 different strategies to give him a sense of what's going on.

Whichever gives highest profit he trades in.


2. Theta falls when market moves.
Falls where market is headed towards not on our original position.


3. If you're an options seller then sell only when volatility is dropping, there is a high probability of you making the right trade and getting profit as a result

He believes in a market operator, if market mover sells volatility Sarang Sir joins him.


4. Theta decay vs Fall in vega

Sell when Vega is falling rather than for theta decay. You won't be trapped and higher probability of making profit.