
DeFi Engineer | Aspiring Security Researcher | 4+ years onchain Real code • Real alpha • Zero memes • Maybe few memes
Joined November 2025
- Tweets202
- Following75
- Followers20
- Likes87
Pinned Tweet
1/
Solidity `bytes` variables behave differently than you might expect—especially when mixing high-level code with assembly.
This short snippet below shows a common gotcha
1
53
Is it early to have Uniswap V4 swap integrations in your defi protocols. Should you stick with V3 only?
28
While auditing, if you find a possible vulnerability:
1. You would mark it and carry on auditing
2. Or would you rather right there write the PoC for it and then move on
26
Starting with this 10-weeks long SR mentorship program, mentored by @bichistriver and sponsored by @PashovAuditGrp
🫡
this is Hooooge!
We got the top auditing company to sponsor 29 future Elite security researchers. One of the best in web3 security space. Their founder wants to help this space grow in the era of AI. @PashovAuditGrp
We will have an exciting mentorship program.
Next steps:
If you have been wanting to join but couldn't due to the $50 fee, go ahead and fill this form. You will get a free slot. Join only if you are ready to work hard for the next 10 weeks.
docs.google.com/forms/d/e/1F…
Those that already paid before will get communicated tomorrow. They are already locked in.
We will choose the lucky ones from the today applicants that do after this announcement. Make sure to answer the questions with your best response.
Let's go!
1
49
1/4
Storage in Solidity #1
Concept :
- storage is a `key→value` map
- keys: uint256 slot
- values: 32-byte words (bytes32)
- Solidity packs multiple small values into one 32-byte slot if they’re declared consecutively and fit
- sstore always writes the full 32-byte word
1
1
37
3/4
𝑺𝒕𝒂𝒕𝒊𝒄 -
1. uint:
- uint256 x →Stored at its assigned slot `p`
- uint128 x, uint128 y →packed into one 32-byte slot
- To update only y in assembly you must mask y, insert new value shifted left by 16 bytes
- Since sstore always writes the full 32-byte word
1
24
Any solidity tx fails 𝘰𝘯𝘭𝘺 𝘢𝘯𝘥 𝘰𝘯𝘭𝘺 for 3 reasons:
1. Out of gas (OOG)
Execution can’t pay for an opcode, state is reverted.
2. Explicit revert (programmatic failure)
Explicit error statements - require, revert, custom errors
3. Invalid execution
EVM rules violated - array out of bounds, division by zero, underflow and others
14
3/4
To acquire expertise in assembly, we should start with the most used evm opcodes and learn in and out about them.
1
14
1/3
Stablecoins (technical view)
Stablecoins are the on-chain assets engineered to track a reference unit (usually $1)
In the pool of numerous stablecoins, there's one which stands out i.e. DAI but why?
1
16
2/3
Stablecoin types:
1) Fiat-collateralized (custodial)
- Backed by off-chain reserves (cash, T-bills, etc.)
- Every single token is pegged to a similar value off-chain
- eg. USDT, USDC
1
12
privacy for token transfers can be categorized in two ways:
1. Confidentiality = hide the balance, transfer amounts while the addresses interaction graph is visible
2. Anonymity: hide the interacting addresses + confidentiality
8
1/4
𝙾̲𝚛̲𝚊̲𝚌̲𝚕̲𝚎̲ ̲𝙼̲𝚊̲𝚗̲𝚒̲𝚙̲𝚞̲𝚕̲𝚊̲𝚝̲𝚒̲𝚘̲𝚗̲ ̲𝙰̲𝚝̲𝚝̲𝚊̲𝚌̲𝚔̲ 👇
𝖠𝗇 𝗈𝗋𝖺𝖼𝗅𝖾 𝗆𝖺𝗇𝗂𝗉𝗎𝗅𝖺𝗍𝗂𝗈𝗇 𝖺𝗍𝗍𝖺𝖼𝗄 𝖼𝖺𝗇 𝖻𝖾 𝖺𝗉𝗉𝗋𝗈𝖺𝖼𝗁𝖾𝖽 𝗂𝗇 𝖺 𝖿𝖾𝗐 𝗌𝗈𝗉𝗁𝗂𝗌𝗍𝗂𝖼𝖺𝗍𝖾𝖽 𝗐𝖺𝗒𝗌:
1
13
3/4
𝟤. 𝖳𝖶𝖠𝖯 𝗆𝖺𝗇𝗂𝗉𝗎𝗅𝖺𝗍𝗂𝗈𝗇:
𝗂) 𝖯𝗋𝗈𝗍𝗈𝖼𝗈𝗅 𝗋𝖾𝖺𝖽𝗂𝗇𝗀 𝗉𝗋𝗂𝖼𝖾 𝖿𝗈𝗋 𝖺 𝗏𝖾𝗋𝗒 𝗌𝗆𝖺𝗅𝗅 𝖳𝖶𝖠𝖯 𝗐𝗂𝗇𝖽𝗈𝗐, 𝗐𝗂𝗍𝗁 𝖼𝖺𝗅𝖼𝗎𝗅𝖺𝗍𝖾𝖽
𝖿𝗅𝖺𝗌𝗁𝗅𝗈𝖺𝗇 𝖺𝗍𝗍𝖺𝖼𝗄 𝗉𝗋𝗂𝖼𝖾 𝖼𝖺𝗇 𝖻𝖾 𝗌𝗄𝖾𝗐𝖾𝖽
𝗂𝗂) 𝖨𝖿 𝗅𝗂𝗊𝗎𝗂𝖽𝗂𝗍𝗒 𝗂𝗌 𝗍𝗁𝗂𝗇/𝖼𝗈𝗇𝖼𝖾𝗇𝗍𝗋𝖺𝗍𝖾𝖽 𝖺𝗇𝖽 𝗅𝖾𝗌𝗌, 𝗍𝗁𝖾𝗇 𝗍𝗁𝖾 𝗉𝗋𝗂𝖼𝖾 𝖼𝖺𝗇 𝖻𝖾 𝖾𝗑𝗉𝗈𝗇𝖾𝗇𝗍𝗂𝖺𝗅𝗅𝗒
𝖽𝖾𝗏𝗂𝖺𝗍𝖾𝖽 𝗎𝗌𝗂𝗇𝗀 𝖿𝗅𝖺𝗌𝗁𝗅𝗈𝖺𝗇 𝖻𝗒 𝗉𝗎𝗌𝗁𝗂𝗇𝗀 𝗉𝗋𝗂𝖼𝖾 𝗈𝗎𝗍𝗌𝗂𝖽𝖾 𝗈𝖿 𝗍𝗁𝖺𝗍 𝗍𝗂𝖼𝗄 𝗓𝗈𝗇𝖾
1
10
4/4
𝟥. 𝖲𝗍𝖺𝗅𝖾 𝖮𝗋𝖺𝖼𝗅𝖾 𝗋𝖾𝖺𝖽𝗌:
𝖠 𝖼𝗁𝖺𝗂𝗇𝗅𝗂𝗇𝗄 𝗈𝗋𝖺𝖼𝗅𝖾 𝗈𝗇𝗅𝗒 𝗎𝗉𝖽𝖺𝗍𝖾𝗌 𝗉𝗋𝗂𝖼𝖾 𝗎𝗇𝖽𝖾𝗋 𝗍𝗐𝗈 𝖼𝗈𝗇𝖽𝗂𝗍𝗂𝗈𝗇𝗌 𝗂) 𝗉𝗋𝗂𝖼𝖾 𝖽𝖾𝗏𝗂𝖺𝗍𝖾𝗌 𝖻𝖾𝗒𝗈𝗇𝖽 𝗍𝗁𝗋𝖾𝗌𝗁𝗈𝗅𝖽 𝗂𝗂) 𝗐𝗁𝖾𝗇 𝗍𝗁𝖾 𝗁𝖾𝖺𝗋𝗍𝖻𝖾𝖺𝗍 𝗂𝖽𝗅𝖾 𝗍𝗂𝗆𝖾 𝗁𝖺𝗌 𝗉𝖺𝗌𝗌𝖾𝖽. 𝖸𝗈𝗎𝗋 𝖺𝗉𝗉𝗅𝗂𝖼𝖺𝗍𝗂𝗈𝗇 𝗌𝗁𝗈𝗎𝗅𝖽 𝗍𝗋𝖺𝖼𝗄 𝗍𝗁𝖾 𝗅𝖺𝗍𝖾𝗌𝗍𝖳𝗂𝗆𝖾𝗌𝗍𝖺𝗆𝗉 𝗏𝖺𝗋𝗂𝖺𝖻𝗅𝖾 𝖿𝗈𝗋 𝗌𝗍𝖺𝗅𝖾𝗇𝖾𝗌𝗌 (𝙞𝙛 (𝙗𝙡𝙤𝙘𝙠.𝙩𝙞𝙢𝙚𝙨𝙩𝙖𝙢𝙥 - 𝙡𝙖𝙩𝙚𝙨𝙩𝙏𝙞𝙢𝙚𝙨𝙩𝙖𝙢𝙥 > 𝙝𝙚𝙖𝙧𝙩𝙗𝙚𝙖𝙩) 𝙧𝙚𝙫𝙚𝙧𝙩) 𝗈𝗍𝗁𝖾𝗋𝗐𝗂𝗌𝖾 𝗉𝗋𝗈𝗍𝗈𝖼𝗈𝗅 𝖼𝗈𝗎𝗅𝖽 𝗋𝖾𝖺𝖽 𝗍𝗁𝖾 𝗌𝗍𝖺𝗅𝖾 𝗉𝗋𝗂𝖼𝖾 𝖿𝗋𝗈𝗆 𝖼𝗁𝖺𝗂𝗇𝗅𝗂𝗇𝗄
8


