Union Lock based on TSTORE/TLOAD can avoid flash loan attacks

The feature of Union Lock can query the number of calls of other contracts and the number of calls of other contract functions in the same Ethereum transaction, thereby realizing the cross-contract locking function.

related link:
eip link: Add EIP: Union Lock by 1999321 · Pull Request #8442 · ethereum/EIPs · GitHub
test cases: GitHub - 1999321/Union-Lock

4 Likes

Flash Loan attack can grab millions of dollars from decentralized vaults in one single transaction, so this EIP would be meaningful.
Great!

glad to see a new update from this! we need more ideas

a meaningful update EIP-1153!

Is there any relevant practice code available? I would like to study it. Thank you.

This is a meaningless ERC submission
Before this, using the hash value of “tx. origin+blocknumber” could also achieve the same function, which is to charge more gas.

I think its really a good idea