The contracts behind LOAM, an asset-backed token on Base. LOAM is minted by depositing Pinto into a protocol-owned reserve and redeemed back out of it, both at net asset value, computed on-chain and quotable before execution. A fee on each path stays in the reserve.
Backed, not pegged: reserve value tracks Pinto, so when Pinto trades below its peg the reserve can decline. That is a property of the design, not a failure mode.
Site: https://loamfi.xyz
| LOAM token / diamond | 0x473B392018B05ecbB7Edf4C3CF2B1F8593A9A31b |
| Owner (48h timelock) | 0x6Cf2879291A343514F62c55448306a3f5E45EF9f |
| Governance Safe (2-of-3) | 0x4280F2b1fc6edbBbaE69b7F651f09357057b8D0F |
| Name / symbol / decimals | Loam / LOAM / 18 |
| Max supply | 1,000,000,000 |
All thirteen contracts are verified on Basescan. Full address list:
deployments/8453-loam-v2.json.
The token is an EIP-2535 diamond, so ERC-20 calls route
through facets by selector. Every facet change is a diamondCut scheduled through the timelock —
there is no direct-call path.
This protocol has carried four names: Silica → Surco → Qollqa → Loam. The rename to Loam landed in August 2026 and the contract-level rename was deliberately not done, because renaming an external function changes its selector and would break every integration at once.
So you will find, in live deployed code:
navPintoPerSurco()— a real external function on the LOAM tokenISurco.sol— the aggregated ABI interfaceprotocolLpSurco,lockedSurcoByPlot— storage fields
You are not in the wrong repository, and this is not a fork of someone else's work. The naming is historical. It is baked into the deployed bytecode and into the Basescan verification, so it cannot be corrected without redeploying and migrating every holder — a far larger risk than the cosmetic problem it would solve.
Requires Foundry.
git clone --recurse-submodules https://github.com/Project-Loam/loam-contracts cd loam-contracts forge build forge test --no-match-path 'test/fork/*' # 520 tests, no network needed
The fork suite (25 files) replays against real Base state and needs an RPC:
RPC_URL=https://mainnet.base.org forge test --match-path 'test/fork/*'
test/sim/ holds the economic simulations — calibration, adversarial scenarios, cushion behaviour,
reserve exhaustion. They stream per-season rows into analysis/sim_out/ as .jsonl.
Verification on Basescan proves that some source compiles to the deployed bytecode. This proves that this repository does:
./tools/verify-deployed-bytecode.sh
It rebuilds locally and diffs runtime bytecode against all twelve on-chain addresses. Expected
output today is eleven MATCH and one MISMATCH:
DeepenFacet MISMATCH 0x3bc82520B4c341378d89e22a6A501b9d510F2015
That is real and we would rather state it than hide it. Commit 82649b6 fixed the Module-C earmark
handling in DeepenFacet after genesis, and that fix has not been deployed — so the facet
running on Base is one commit behind this tree. The script will go fully green when the pending
diamondCut ships. Every other contract reproduces byte-for-byte.
Two things that will silently break reproduction if you change them:
solcsettings.0.8.20, optimizer on, 200 runs, evm versionshanghai.foundry.tomlsayscancun, which solc 0.8.20 does not support and silently ignores — every deployed artifact is shanghai. Do not "fix" that line expecting nothing to happen.- The
remappingslist. solc hashes the compiler settings into each contract's trailing metadata, and remappings are part of that. They are pinned explicitly infoundry.tomlfor this reason; Foundry would otherwise auto-discover a different set depending on what is checked out underlib/.
src/ the protocol — diamond, facets, libraries, venues
test/ 649 tests: unit, invariant, integration, diamond, fork, economic sim
script/ Forge deploy and upgrade scripts, including the genesis ceremony
deployments/ the on-chain record — the JSON is the truth, not any commit
tools/ bytecode reproduction check
The keeper, the web front-end, internal operational documentation, and unrelated projects live elsewhere and are not open source. This repository is the protocol: the contracts that hold funds, the tests that constrain them, and the scripts that deployed them.
Found something? Email [email protected] rather than opening a public issue.
Governance is a 2-of-3 Safe proposing to a 48-hour TimelockController. There is no upgrade path
that bypasses the delay, so a scheduled malicious cut is visible on-chain for two days before it
can execute.
MIT. See LICENSE.