GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Project-Loam/loam-contracts: Loam protocol contracts — an asset-backed token on Base, minted and redeemed against an on-chain Pinto reserve at net asset value.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
analysis/sim_out
analysis/sim_out
 
 
deployments
deployments
 
 
lib
lib
 
 
script
script
 
 
src
src
 
 
test
test
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
deploy-mainnet.env.example
deploy-mainnet.env.example
 
 
foundry.toml
foundry.toml
 
 

Repository files navigation

Loam

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

Deployed — Base mainnet (chain 8453)

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.

⚠️ The code says "Surco". That is this project.

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 token
  • ISurco.sol — the aggregated ABI interface
  • protocolLpSurco, 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.

Build and test

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.

Reproducing the deployment

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:

  • solc settings. 0.8.20, optimizer on, 200 runs, evm version shanghai. foundry.toml says cancun, 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 remappings list. solc hashes the compiler settings into each contract's trailing metadata, and remappings are part of that. They are pinned explicitly in foundry.toml for this reason; Foundry would otherwise auto-discover a different set depending on what is checked out under lib/.

Layout

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

What is not here

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.

Security

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.

License

MIT. See LICENSE.

About

Loam protocol contracts — an asset-backed token on Base, minted and redeemed against an on-chain Pinto reserve at net asset value.

loamfi.xyz

Topics

basedefidiamond-standardeip-2535ethereumfoundrysolidity

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.