ChorusOne / solido

Lido for Solana is a Lido-DAO governed liquid staking protocol for the Solana blockchain.
https://chorusone.github.io/solido/
GNU General Public License v3.0
101 stars 43 forks source link

Cli: solido deposit doesn't work #545

Open yihaiy opened 2 years ago

yihaiy commented 2 years ago

solido --cluster https://api.mainnet-beta.solana.com --keypair-path /home/xx/mywallet.json --output json deposit --amount-sol 10000000 --solido-address 49Yi1TKkNyYjPAFdR9LBvoHcUjuPX4Df5T5yv39w2XTn --solido-program-id CrX7kMhLC3cSsXJdT7JDgqrRVWGnUpX3gfEfxxU2NVLi Failed to deposit. Solana RPC client returned an error:

Request: Some(SendTransaction) Kind: RPC response error Error code: -32002 Message: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1 Reason: Transaction preflight failure Error:

Raw:      InstructionError(0, Custom(1))
Display:  Error processing Instruction 0: custom program error: 0x1

Error code interpretations:

Solido error 1 is InvalidOwner
Error 1 is not a known Multisig error.
Error 1 is not a known Anker error.

Logs:

Program CrX7kMhLC3cSsXJdT7JDgqrRVWGnUpX3gfEfxxU2NVLi invoke [1]
Program 11111111111111111111111111111111 invoke [2]
Transfer: insufficient lamports 497950720, need 10000000000000000
Program 11111111111111111111111111111111 failed: custom program error: 0x1
Program CrX7kMhLC3cSsXJdT7JDgqrRVWGnUpX3gfEfxxU2NVLi consumed 20514 of 200000 compute units
Program CrX7kMhLC3cSsXJdT7JDgqrRVWGnUpX3gfEfxxU2NVLi failed: custom program error: 0x1
ruuda commented 2 years ago

You are trying to transfer more than you have:

Transfer: insufficient lamports 497950720, need 10000000000000000

The --amount-sol 10000000 seems a bit outrageous. Note that it is in SOL, not Lamports!