hoodquidity/packages/contracts
maxgort 70ed11c7dd
All checks were successful
deploy / deploy (push) Successful in 44s
feat: enforce a $500 minimum deposit
Contract: add MIN_DEPOSIT (500e6) + BelowMinimum error, checked against the
combined credit (stable leg + valued stock leg) in _deposit, so it covers
single- and dual-sided deposits. Tests updated (sub-$500 fixtures raised,
fuzz bounds lifted) plus three new cases; 33/33 pass. ABI regenerated.

Frontend: pre-submit validation in AppBoard and DepositPanel — button
disables with a "Min. deposit $500" label and an inline error below the
minimum, so users get feedback before signing. Shared MIN_DEPOSIT_USD /
MIN_DEPOSIT_UNITS constants. Also refreshes the local anvil addresses in the
dev deployment block (dev-only; prod uses the seed).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-12 19:58:06 +03:00
..
lib Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
script Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
src feat: enforce a $500 minimum deposit 2026-07-12 19:58:06 +03:00
test feat: enforce a $500 minimum deposit 2026-07-12 19:58:06 +03:00
foundry.toml Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
README.md Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00

Foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.

Foundry consists of:

  • Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
  • Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
  • Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
  • Chisel: Fast, utilitarian, and verbose solidity REPL.

Documentation

https://book.getfoundry.sh/

Usage

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help