gilbert pfp

gilbert

@0xgib

115 Following
662 Followers


gilbert pfp
gilbert
@0xgib
one day the health of a chain won't be measured by the amount of whale & degen activity https://x.com/DefiLlama/status/1897323358943109538
2 replies
1 recast
16 reactions

gilbert pfp
gilbert
@0xgib
can an auditor build a defi protocol? I'm pretty certain I can write a smart contract with zero security related bugs 👀 possible? or overconfident?
2 replies
17 recasts
4 reactions

gilbert pfp
gilbert
@0xgib
Any way to search frames?
10 replies
9 recasts
43 reactions

gilbert pfp
gilbert
@0xgib
farcaster güd
4 replies
9 recasts
87 reactions

gilbert pfp
gilbert
@0xgib
When transferring all SOL out of an account on Solana (aka "closing" the account), the account doesn't actually get removed until the end of the transaction. Done naively, this allows attackers to reuse or reinitialize the account, potentially draining funds from the protocol 🫢
1 reply
3 recasts
10 reactions

gilbert pfp
gilbert
@0xgib
Solana's official "Token Program", released in 2020, serves as an "ERC-20"-like program for creating fungible and non-fungible tokens. Interestingly, a new "Token-2022 Program" was developed, stemming from an issue with Solana's programming model.
0 reply
1 recast
7 reactions

gilbert pfp
gilbert
@0xgib
Solana programs do not have overflow/underflow checks on by default. You must enable them by setting `overflow-checks = true` in your Cargo.toml
1 reply
0 recast
1 reaction

gilbert pfp
gilbert
@0xgib
Meant to post this in this channel:
0 reply
0 recast
3 reactions

gilbert pfp
gilbert
@0xgib
Update: Solana does still not have slashing implemented
2 replies
0 recast
8 reactions

gilbert pfp
gilbert
@0xgib
just got back to austin. why is it still hot
0 reply
0 recast
10 reactions

gilbert pfp
gilbert
@0xgib
It's time to start casting again
0 reply
0 recast
4 reactions

gilbert pfp
gilbert
@0xgib
Hey @v sorry for the ping but my friend's casts are not showing up in any channels. Did he get shadowbanned or something?
1 reply
1 recast
0 reaction

gilbert pfp
gilbert
@0xgib
I can't seem to find this cast that was posted /founders recently. Bug? https://warpcast.com/harsh/0x190e3716
1 reply
0 recast
2 reactions

gilbert pfp
gilbert
@0xgib
Solana uses a fixed size stack frame of 4KB. This means if a function call uses more than 4KB of parameters, local vars, etc. then the program (thankfully) crashes
1 reply
0 recast
2 reactions

gilbert pfp
gilbert
@0xgib
One way to bridge assets (or send messages in general) to/from Solana is to use the Wormhole protocol. Wormhole has an off-chain network of "Guardians" that pass these messages across chains. However, there are exactly 19, and only 19... anyone know something about this? https://wormhole.com/blockchains/#guardians
1 reply
0 recast
0 reaction

gilbert pfp
gilbert
@0xgib
Lido's stETH is a rebasing token. Rebasing tokens are problematic to integrate with for the majority of protocols, due to holder balances constantly shifting. Fortunately Lido recognizes this and offers wstETH, representing *shares* instead, which are stable across rebases, making it compatible with defi in general.
0 reply
0 recast
2 reactions

gilbert pfp
gilbert
@0xgib
On Solana, you can have a single transaction that makes multiple top-level program calls. In contrast, an EVM tx only supports sending calldata to a single contract address.
2 replies
0 recast
1 reaction

gilbert pfp
gilbert
@0xgib
Security question: If deploying a contract can take 100-1000x transactions, then how does upgrading a contract work for that same number of transactions? Will the contract still function? As its old version? Or do you upload to a buffer and switch to it in 1 tx instead?
1 reply
0 recast
0 reaction

gilbert pfp
gilbert
@0xgib
Raise your hand and drop a link if your company survived the crypto bear market 👋
1 reply
0 recast
2 reactions

gilbert pfp
gilbert
@0xgib
EVM smart contracts don't really have a max size, since an SSTORE opcode has an entire 256 bits of address space to write to (in theory, anyway) Solana accounts have a max size of 10 MiB, which must be incremented to via the limit of 10 KiB per instruction.
0 reply
0 recast
0 reaction