Skip to content
View norceagent's full-sized avatar
  • United States
  • Joined Nov 26, 2026

Block or report norceagent

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
norceagent/README.md

Norce

Trade with an agent. Think with any model.

A no-code trading agent on Elysium and Hyperliquid, with 40 AI models on the same wallet.
Write the strategy in one sentence, backtest it on real hourly prices, then run it on paper or live:
spot from a vault only you can withdraw from, or perps in your own Hyperliquid account.

Website · Build an agent · Docs · X · API · MCP · The checks · Verify it yourself

CI License MIT Solidity 0.8.24 Elysium 99901

Open in GitHub Codespaces

Norce: trade with an agent, think with any model

$NORCE is live on Elysium Mainnet
CA: 0x528bd0520a3e568252653115df608058c6f6aaee
The only official contract address, also on norceagent.com/token.
Holders of 1,000,000 $NORCE or more pay half the list price for every AI model on Norce.

Contents

Why a vault

A trading agent has to sign trades while you sleep. The usual ways to let it do that both hand it too much:

Give the bot your private key Deposit on a platform Norce vault
Who holds the funds Whoever has the key The platform A contract only you can withdraw from
What the bot can buy Anything, anywhere Whatever the platform lists A fixed list of tokens, each through one pinned pool
Price it accepts Whatever it signs The platform's fill Never worse than the pool's 30-minute average minus your slippage limit
How much per day Everything Platform limits A USD cap per rolling 24 hours
Turning it off Move the funds in time Ask the platform Pause, or revoke the agent, in one transaction
Who enforces it The bot's own code The platform's terms The contract, on every call

The strategy itself stays off-chain, where it is cheap to change and to backtest. The contract does not judge whether a trade is a good idea. It decides whether the trade is allowed.

Who can do what

Each user deploys one NorceVault through the NorceVaultFactory. The owner is your wallet, or a contract wallet such as a Safe. The keeper is the Norce agent's signing key. The admin is the factory's deployer.

Action Owner Keeper Factory admin Anyone else
Withdraw any token, any time (also while paused) ✅ ❌ ❌ ❌
Pause or unpause the vault ✅ ❌ ❌ ❌
Replace or remove the keeper ✅ ❌ ❌ ❌
Set slippage (max 5%) and the daily USD limit ✅ ❌ ❌ ❌
Stop a token from being traded ✅ ❌ ❌ ❌
Add a new token, pool or router ❌ ❌ ❌ ❌
Swap USDC ⇄ a listed token, inside the limits ❌ ✅ ❌ ❌
Set the vault cap that stops the keeper in large vaults ❌ ❌ ✅ ❌
Choose the keeper that new vaults start with ❌ ❌ ✅ ❌
Give up the admin role for good (transferAdmin(0)) ❌ ❌ ✅ ❌

Nobody can add tokens after deployment: the list, the price feeds, the pool for each token and the router are fixed when the factory is deployed. The vault has no proxy and no upgrade path, and the contract takes no fee.

The life of one trade

sequenceDiagram
    autonumber
    participant S as Strategy (off-chain)
    participant K as Keeper
    participant AI as AI review (optional)
    participant V as NorceVault
    participant O as PoolTwapFeed
    participant A as RamsesSwapAdapter
    participant P as Ramses V3 pool
    S->>K: hourly close: signal to buy HYPE with 40% of equity
    K->>AI: order, market and equity
    AI-->>K: go, or skip this hour (the reason is logged)
    K->>V: swap(USDC, HYPE, amount, floor, reasonHash)
    V->>O: HYPE/USD from the pool's 30-minute average, fresh?
    O-->>V: price (USDC counts as $1)
    V->>V: limits, caps, minimum out
    V->>A: exactInputSingle with the pinned tick spacing
    A->>P: swap, output straight to the vault
    P-->>V: HYPE
    V->>V: compare balances before and after
    V-->>K: Swapped event, tagged with reasonHash
Loading

reasonHash is the keccak256 of the decision-log entry that explains the trade, so every on-chain swap points to the reason the agent gave for it. AI review is only ever asked before opening a position. Exits and stop losses always run.

Eight checks on every swap

Each check is in NorceVault.swap. If one fails, the whole transaction reverts and nothing moves.

# Check Reverts with
1 The caller is the vault's keeper, and the vault is not paused NotOperator, IsPaused
2 Exactly one side is USDC, and the token is listed and enabled PairNotAllowed, TokenNotAllowed
3 The swap goes through the one pool pinned for that token (fixed router and tick spacing) built in
4 Both prices are positive and younger than the feed's staleness limit BadOraclePrice, StaleOraclePrice
5 The vault's total value is under the factory's vault cap AboveBetaCap
6 The swap fits in what is left of the rolling 24-hour USD limit DailyLimitExceeded
7 The output is at least the feed's value minus the slippage limit (or the keeper's own floor, if higher) InsufficientOutput
8 The vault's own balances moved by exactly the amounts claimed BadBalanceChange

The keeper cannot lower the minimum in check 7: the vault computes it from its price feeds and only accepts a higher floor from the keeper.

Prices without Chainlink

Elysium has no Chainlink feeds yet. Rather than trust the keeper's price, each token gets its own on-chain feed, so NorceVault keeps the same oracle check it would use with Chainlink:

  • PoolTwapFeed reads the pinned Ramses V3 pool's time-weighted average tick over 30 minutes and answers in the Chainlink AggregatorV3 shape (8 decimals). One trade or one block cannot move a 30-minute average; moving it means holding capital against arbitrage for the whole window.
  • FixedUsdFeed (same file) prices USDC at exactly $1.
  • RamsesSwapAdapter speaks Uniswap SwapRouter02's exactInputSingle so the vault works unchanged with Ramses V3, where pools are keyed by tick spacing. It has no owner and no state: it only moves what the vault approved for that one call and sends the output straight back to the vault.

A pool average is a weaker guard than an oracle network. That is one reason for the vault cap.

LP vault

NorceLPVault is a second kind of vault: one wallet's liquidity position in one Ramses V3 pool, kept in range by the keeper. Each NorceLPVaultFactory is pinned to one pool, and each wallet creates its own vault there. Four pools have a factory: USDC/WHYPE; NORCE/WHYPE, a pool Norce created on Ramses on 2 Dec 2026 because the launchpad's Uniswap v4 NORCE/HYPE pool takes no outside liquidity (script); and two tokens launched on Montra, MONTRA/WHYPE and WHYPE/LiquidV (addresses in the deployments table). Every pool has WHYPE on one side, so HYPE goes in and comes out as native HYPE.

Owner Keeper Anyone else
Deposit (with an optional balancing swap, minimum output set by the owner) ✅ ❌ ❌
Move the band (rebalance) ✅ ✅ once per interval (at least 15 min), within the owner's width bounds ❌
Exit the pool, withdraw, withdraw as native HYPE ✅ any time, even while paused ❌ ❌
Pause, change limits, replace or remove the keeper ✅ ❌ ❌

Every band move is checked on-chain: the range is on the pool's tick spacing, its width is within the owner's bounds, the current price is inside it, and the pool's tick is within maxDeviationTicks of its own 30-minute average, so nobody can move a band into a price they just pushed. The pool calls back into the vault only during the vault's own mint or swap. Fees collected are tracked on-chain (feesEarned0, feesEarned1).

Burn pool (Uniswap v4 hook)

NorceBurnHook is a Uniswap v4 hook on Elysium's PoolManager for one pool: native HYPE / NORCE, 1% LP fee. Every swap in that pool pays a 0.5% burn fee on top, fixed at deployment, whoever routes it:

  • when the fee is in NORCE (most buys), it goes to 0x…dEaD inside the swap;
  • when it is in HYPE (most sells), the hook keeps it in pendingHype, and buyAndBurn (keeper or owner, with a minimum output) buys NORCE in the same pool and burns it. That HYPE cannot be withdrawn by anyone.

The hook also has its own swap entry, which the site uses at norceagent.com/hooks; it takes the same fee, since the PoolManager does not call a hook for swaps the hook makes itself. The owner can add and remove protocol liquidity (seeded from the creator fee) until it calls lockLiquidity, after which that liquidity can never leave. Fork tests run against the live PoolManager: FORK=1 FORK_CHAIN=elysium npx hardhat test test/v4-burn-hook.fork.test.js. Not audited by an outside firm yet.

What the app does

The website and the keeper are not in this repository; this is what they do with the contracts.

flowchart LR
    A["You write a sentence<br/>RSI reversal on HYPE, 40% per trade, 8% stop"] --> B["Builder turns it into settings<br/>every word is editable"]
    B --> C["Backtest on real hourly prices<br/>7, 30, 90 or 180 days"]
    C --> D{"Run it"}
    D -->|paper| E["$10,000 of virtual money<br/>leaderboard vs. just holding"]
    D -->|live spot| F["Your NorceVault<br/>on Elysium"]
    D -->|live perps| G["Your own Hyperliquid account<br/>approved agent key, no withdrawals"]
Loading
  • Your agent: name it, pick what it trades (spot on Elysium, a crypto perp on Hyperliquid, or a stock, index or commodity perp on Hyperliquid's XYZ dex such as Tesla, Nvidia, the S&P 500 or gold) and its strategy before you launch. Every change re-runs the backtest.
  • Five strategies: Momentum, Mean reversion, RSI reversal, Buy the dip and MA crossover, each with position size, stop loss, profit target, trailing stop and a daily loss pause.
  • Strategy showdown: under every backtest, all five strategies at a faster, the default and a slower speed, replayed on the same market and period with your sizing and risk rules. "Steady" marks the ones that traded and beat just holding in both halves of the period.
  • AI copilot and AI review with any of the models in the catalog, paid per message at the maker's list price. AI review only decides whether a new position opens; exits and stop losses always run.
  • Paper, live spot and live perps from the same builder.
  • Deposit and withdraw on Hyperliquid without leaving Norce: from or to Elysium (USDC or HYPE, through Relay, in seconds) or Arbitrum (Hyperliquid's own bridge). Your wallet signs; Norce never holds the funds.
  • LP vault: earn the HYPE/USDC pool's fees while the keeper keeps your band around the price (see LP vault).
  • Norce Chat: 30 chat and image models from 11 makers at their list price (half price for wallets holding 1,000,000 $NORCE or more), with your wallet, IP and device taken off before the request leaves. General mode reads links you paste and searches the web when it needs to.
  • OpenAI-compatible API on the same balance, and pay either from a USDC top-up or per message from your wallet after one signature.
  • Share an agent as a link. The settings ride in the URL; nothing is stored.

Screenshots

Home Your agent and launch
Norce home page Name the agent, pick its market and strategy, then launch
Builder and backtest LP vault
Agent builder with a 30-day backtest LP vault on the HYPE/USDC pool

Other strategies, same market: every strategy at three speeds, ranked

Norce Chat: any model, nothing added to your prompt

Markets

Every token the vault can trade on Elysium, against USDC. Read from contracts/config/elysium.json; every address was checked on chain. Gas is paid in HYPE.

Token Name Token address Ramses V3 pool Tick spacing Price Stale after
USDC USD Coin 0xb47c…0B65 – – fixed at $1 1 h
HYPE Wrapped HYPE 0xbA87…5E81 0xD329…EBc2 50 30-min pool average 1 h

Deployments

Chain Contract Address
Elysium (99901) NorceVaultFactory 0x081Bb8b812849760F13e1211E8b49a339432a377
Elysium (99901) RamsesSwapAdapter 0xd7AEB2500279DCe6482347137Dc71b593D95Ea2e
Elysium (99901) FixedUsdFeed USDC/USD 0xa6B650ac0aaF5Fe724082FB92Df39a828bC46D71
Elysium (99901) PoolTwapFeed HYPE/USD 0x7a8773e91694A7538F1Fa7097a7C755523Fe6Ab1
Elysium (99901) NorceLPVaultFactory USDC/WHYPE 0x25220e0f0658F190c733cc10a558298BD7F1C1BD
Elysium (99901) NorceLPVaultFactory MONTRA/WHYPE 0xcA12ef1318F19c46C85c042af086C811c1Dc6f25
Elysium (99901) NorceLPVaultFactory WHYPE/LiquidV 0x42838076e39b3F1f56F1DEb9675fE74D14375472
Elysium (99901) NorceLPVaultFactory NORCE/WHYPE 0xFC1Aede609034624C068A9eC977fEe97dF568D4B
Elysium (99901) NorceBurnHook (Uniswap v4, HYPE/NORCE) 0x08912F27ca6676484fC29DF5C2B12C57E70CA044

Verify it yourself

You do not have to trust this README.

  1. Read the rules in the source. NorceVault.sol is one file of about 370 lines with no inheritance beyond OpenZeppelin's ReentrancyGuard. Search it for onlyOperator: three functions, all of them swaps or yield moves (Elysium's factory sets no yield vault, so only swaps apply).
  2. Run the tests. npm test runs the unit tests against mock tokens, feeds and router. npm run test:fork runs the vault against a local copy of Elysium mainnet with the real USDC, WHYPE and Ramses pool.
  3. Read your vault on the explorer. Once deployed, open your vault on the Elysium explorer and call owner(), operator(), paused(), maxSlippageBps(), remainingDailyUsd(), totalValueUsd() and tokenConfig(token).
  4. Match trades to reasons. Every Swapped event carries the reasonHash of the agent's log entry for it.

What the tests cover:

Unit tests (test/NorceVault.test.js) Fork tests on Elysium state (test/elysium.fork.test.js)
Buys at a fair price through the pinned pool and checks balances Prices HYPE from the pool's 30-minute average, USDC at $1
Enforces the oracle minimum even if the keeper asks for less Buys and sells HYPE through Ramses with the oracle minimum; nothing is left in the adapter
Only allows stablecoin pairs and listed tokens Rejects a swap whose keeper floor is above what the pool gives
Rejects stale or broken prices Only the keeper can swap, only the owner can withdraw
Caps total swap value per rolling 24 hours
Stops the agent above the vault cap, never the owner
Owner withdraws anything, even while paused; nobody else can
Only the keeper trades; the owner can revoke it or disable a token
Caps slippage at 5%, one vault per owner, admin powers limited

Quick start

In the browser: press Open in GitHub Codespaces above. The container installs Node.js 22 and the dependencies and compiles the contracts. Then run npm test in contracts/.

On your computer (Node.js 22 or newer):

git clone https://github.com/norceagent/norceagent.git norce
cd norce/contracts
npm ci
npm run build          # compile
npm test               # unit tests
npm run test:fork      # against a local fork of Elysium mainnet (read-only)
npm run abi            # writes ../abi/*.json

Deploy your own factory

Copy contracts/.env.example to contracts/.env and fill it in with your own keys. Never commit that file.

Variable Meaning
ELYSIUM_DEPLOYER_KEY Deploys the feeds, the adapter and the factory, and becomes the factory's admin. Needs a little HYPE on Elysium for gas
KEEPER_ADDRESS The keeper that new vaults start with
ELYSIUM_RPC_URL Optional. Your own RPC; the default is the public endpoint
npx hardhat run scripts/deploy-elysium.js --network elysium

The script deploys a PoolTwapFeed per token, the USDC FixedUsdFeed, the RamsesSwapAdapter and NorceVaultFactory with the tokens, pools and limits from config/elysium.json, reads them back to check them and writes the addresses to deployments/elysium.json.

The Norce API

Norce's API uses the OpenAI chat completions format. Create a key in the Console. Calls are paid from the same prepaid balance you top up with USDC on Elysium.

Base URL https://norceagent.com/api/v1
Auth Authorization: Bearer norce_…
Chat and images POST /chat/completions
Models and prices GET /models
from openai import OpenAI

client = OpenAI(base_url="https://norceagent.com/api/v1", api_key="norce_…")
reply = client.chat.completions.create(
    model="anthropic/claude-sonnet-5.5",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)

The full reference is on the API page.

MCP server

Use Norce from Claude, Cursor or any MCP app: ask any Norce AI model at its list price, with each answer's cost beside it, make pictures, find markets, backtest a strategy written in one sentence, launch a paper agent, and check or pause your agents in the chat. This repository is the server: Node 18 or later, no dependencies.

{
  "mcpServers": {
    "norce": {
      "command": "npx",
      "args": ["-y", "github:norceagent/norceagent"],
      "env": { "NORCE_API_KEY": "norce_…" }
    }
  }
}

Claude Code: claude mcp add norce -e NORCE_API_KEY=norce_… -- npx -y github:norceagent/norceagent

The model list, markets, backtests and the leaderboard work without a key; answers are paid from your Norce balance, and NORCE_MAX_USD caps a single answer. The server never starts or resumes a live agent; real money starts only on norceagent.com. Tools and details are in mcp/README.md.

Repository map

Path What it holds
contracts/contracts/ NorceVault and NorceVaultFactory
contracts/contracts/elysium/ PoolTwapFeed, FixedUsdFeed, RamsesSwapAdapter, NorceLPVault and NorceLPVaultFactory
contracts/config/ The tokens, pools and router on Elysium, all checked on chain
contracts/scripts/ The deploy script and the ABI export
contracts/test/ Unit tests and tests against a local fork of Elysium
abi/ The contract ABIs as JSON
mcp/ The Norce MCP server (package.json at the root runs it)
deployments/ Deployed addresses
assets/ Images for this README
.devcontainer/, .github/ Codespaces setup and CI

The website, the keeper and the agent's server code are not in this repository.

FAQ

Can Norce take my funds?

No. Only the vault's owner can call withdraw. The keeper can only swap between USDC and listed tokens, and every result stays in your vault. The factory admin has no function that touches a vault's funds.

What if Norce goes offline?

Nothing trades, and nothing is stuck. You can withdraw, pause or replace the keeper directly on the contract from any wallet or block explorer.

Can the keeper trade a token I did not choose?

Only tokens fixed at deployment can be traded, each through one pool. You can switch any of them off with disableToken, and nobody can switch one back on or add a new one.

Why a pool average and not Chainlink?

Elysium has no Chainlink feeds yet. A 30-minute average of the pinned pool is the strongest price the chain itself can give: a single trade, even a flash loan, cannot move it. If Chainlink comes to Elysium, a new factory can point the same vault code at it.

Does the vault take a fee?

No. The contract has no fee logic. You pay network gas for your own transactions, and the keeper pays gas for the swaps it sends.

Why is there a vault cap?

Above the cap the keeper stops, so a bug cannot cost more than a small vault holds. The owner is never stopped.

Security

Please report vulnerabilities privately through Report a vulnerability on this repository's Security tab. Do not open a public issue for them. See SECURITY.md.

License

MIT

Popular repositories Loading

  1. norceagent norceagent Public

    Norce smart contracts on Elysium: the agent vault, the LP vault, price feeds and the Ramses adapter, with ABIs, deployed addresses and the API guide.

    JavaScript

  2. DefiLlama-Adapters DefiLlama-Adapters Public

    Forked from DefiLlama/DefiLlama-Adapters

    JavaScript