Error:Deploying program failed transaction simulation failed: Error processing Instruction 0: account data too small for instruction [3 log messages]
You will need to extend your program size, if you made changes to it. This is possible from the CLI version 1.18 > To fix this run solana program extend PROGRAM_ADDRESS_HERE 20000 -u d -k ~/.config/solana/id.json The co...
Target orders optionnal on Raydium sell instructions?
Yes the amm_target_orders account is commented out and thus is not needed to call the swap_base_out instruction. Since the Raydium AMM is open source you can confirm this via the source code: ... let amm_open_orders_inf...
How can I deserialize the account in the Rust fronted?
The issue with the missing #[max_len(32)] is that the serialized account contains an string padded with 0 bytes to make 32 bytes, whereas the deserializing struct tries to deserialize only however many bytes long your st...
Solana/Anchor authorization best practice for a modular multi-program system (shared roles across programs, CPI)
Repo seems to be private: Any of the options have their pros and cons so you can create a hybrid implementation to mitigate, here are some of the multi-program applications you can adopt: Marinade Finance: uses single c...
Mut constraint error on Raydium
After much struggling and switching between 100 LLMs, I have finally found the issue. The issue was that my contract itself was generating input account types from an outdated IDL of Launchlab, where writable: true was n...
help in new version of pinocchio
Pinocchio does not have helper functions for validating these in the latest version or any version. Since you mentioned you're doing this for blueshift, there they also implement these manually.
InstructionFallbackNotFound. Error Number: 101. Error Message: Fallback functions are not supported
You have to provide the instruction discriminator to the data of your transaction like Ademola have mentioned. What you can do is fetch the instruction discriminator then append it to your data in the first 8 bytes. Fetc...
Are chains of 26 unconfirmed transactions prohibited by the wallet in Bitcoin Core 31.0?
You can have a chain longer than 25 unconfirmed transactions in the mempool, but the wallet still enforces a 25 transaction chain limit. From running bitcoind -help-debug: ... -limitdescendantcount= Deprecated setting...
What is INIT_CODE_HASH and how is it calculated / used in DeFi smart contracts
Init code hash is basically the keccak256 hash of the contracts bytecode. Usage of Init Code Init code hash is needed "Since address calculation depends on hashing the init code. Init code is the code that, when execute...
Why concentrated liquidity is capital efficient?
Concentrated liquidity is more capital efficient because with increased concentration, the same amount of tokens invested creates greater depth of liquidity. From Uniswap's blog: By concentrating their liquidity, LPs ca...
Curve Voting Escrow Explanations
The Curve DAO whitepaper was very helpful for me for understanding the code, I really recommend starting with it: https://curve.fi/files/CurveDAO.pdf Specifically this part:
What is DeFi decentralized finance?
Decentralized Finance (DeFi) is the movement that leverages decentralized networks to transform old financial products into trustless and transparent protocols that run without intermediaries. Some may prefer to call D...
Why do these two Ethereum transactions have different gas usages? Can't explain it from the GETH EVM debug traces
One of the reason for the gas cost not being the same would be that one account did not have any usdc before the transaction and the other already had some. It cost more gas to set a 0 value to non zero than non zero to...
Can ACINQ (Phoenix wallet peer) steal my funds during a recovery?
Nothing. If you have lost the last state and are recovering it from your peer then you are trusting it, no matter if it's encrypted or not. They could lie and continue operating (or close) from a state of the channel in...
Is it safe to use a private key for an existing singlesig wallet as one of the keys for a new multisig wallet?
The single-sig wallet will still work. Each key can be used in multiple wallets (singlesig or multisig) without interfering with the others. However, for a more secure multisig setup, it's usually better to generate sepa...
What does it mean that the security of Bitcoin public keys and 256-bit ECDSA is 128 bits?
What does it mean that the security of 256-bit ECDSA, and therefore Bitcoin keys, is 128 bits? I mean, if I have approximately 2^256 possible points on the elliptic curve (thus possible public keys), and therefore privat...
Can a blockchain's transactions be reversed?
No, as far as we know, Ethereum transactions cannot be reversed. The DAO hack exploited a badly coded smart contract. The smart contract runs on top of Ethereum, so there are two layers involved here: the Ethereum blo...
Receiving donation on a bitcoin address and security issues of reusing the same address
For a blog that only receives occasional small amounts you probably shouldn't worry too much about it. However, if you plan to scale up, here are some things to consider: One issue with using the same address for all tr...
How can vulnerabilites in bitcoin be responsibly reported?
Information on current (ie, not past/public/resolved) security issues should be sent to the private [email protected] mailing list. The SourceForge list is now obsolete and defunct. If you're using t...
Is 24 words seed safer than 12 words in terms of bruteforcing the private key
Regardless of whether you have a passphrase or not 12 words is just as secure as 24 words because the resulting public key will still require 2^128 iterations to compute its private key using the most efficient algorithm...