Knowledge desk
Questions and answers
Start with a specific question to understand digital assets, trading mechanics and security basics.
Question library24 results
01technologyYou 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 ~/…
Read answer02technologyYes 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…
Read answer03technologyThe 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 h…
Read answer04technologyRepo 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: Ma…
Read answer05technologyAfter 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 Launchl…
Read answer06technologyPinocchio 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 manua…
Read answer07technologyYou 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 d…
Read answer08technologyYou 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: ... -limitdescenda…
Read answer09defiInit 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 i…
Read answer10defiConcentrated 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 concentr…
Read answer11defiThe 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:
Read answer12defiDecentralized Finance (DeFi) is the movement that leverages decentralized networks to transform old financial products into trustless and transparent protocols that run without intermediarie…
Read answer13tradingOne 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…
Read answer14securityNothing. 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) f…
Read answer15securityThe 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 u…
Read answer16securityWhat 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 publ…
Read answer17securityNo, 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 invo…
Read answer18securityFor 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 usin…
Read answer19securityInformation 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 …
Read answer20securityRegardless 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 usin…
Read answer