A minimal Solana smart contract to manage user deposits , withdraw and track balances securely using the Pinocchio SDK.
-
Users can deposit SOL into a vault account with specified amount
-
Vault stores
amountandbalancevalue per user. -
Users can withdraw SOL into a vault account with specified amount
-
Built with
Pinocchio— zero-copy, gas-efficient, andno_std-friendly. -
to run it use this command
cargo add pinocchio pinocchio-system-only for first run -
then
cargo build-sbf