diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
new file mode 100644
index 0000000..3c1046d
--- /dev/null
+++ b/.github/workflows/pages.yml
@@ -0,0 +1,45 @@
+name: Deploy to GitHub Pages
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: pages
+ cancel-in-progress: true
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ - run: npm install
+ - run: npm run build
+ env:
+ NEXT_PUBLIC_SITE_URL: ${{ vars.SITE_URL }}
+ - run: touch out/.nojekyll
+ - run: python3 scripts/lint-mdx.py
+ - uses: actions/upload-pages-artifact@v3
+ with:
+ path: out
+
+ deploy:
+ if: github.event_name != 'pull_request'
+ needs: build
+ runs-on: ubuntu-latest
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ steps:
+ - id: deployment
+ uses: actions/deploy-pages@v4
diff --git a/NOTES.md b/NOTES.md
index 0ccbbf2..8011858 100644
--- a/NOTES.md
+++ b/NOTES.md
@@ -11,11 +11,11 @@ documented in place so a reader is not misled. They are listed here so they are
| Defect | Where |
| --- | --- |
-| The agent skill's entry thresholds (`> 100000`, `> 50000`, `> 20000`) can never fire — `trending_score` is bounded to `[0,1]`. | [Strategies](/agents/strategies) |
+| The agent skill's entry thresholds (`> 100000`, `> 50000`, `> 20000`) can never fire, because `trending_score` is bounded to `[0,1]`. | [Strategies](/agents/strategies) |
| `AffiliationTreasury.record_sale_transaction` is unpermissioned and accepts a caller-chosen value that advances the anti-sybil counter. | [AffiliationTreasury](/contracts/affiliation-treasury) |
| `get_sell_return_precision()` returns the percentage constant, so an off-chain caller deriving the ratio gets 1.0 instead of 0.995. | [Bonding curve contract](/contracts/bonding-curve) |
| The in-app bonding-curve graph plots an offset 1000× the deployed constant, and its explainer describes a quadratic curve. | [Bonding curves](/tokens/bonding-curve) |
-| The DAO vote-type selector is not wired to the submitted subject — every proposal opens as a payout. | [Proposals](/dao/proposals) |
+| The DAO vote-type selector is not wired to the submitted subject, so every proposal opens as a payout. | [Proposals](/dao/proposals) |
| `token-created` and `token-transaction` are listened for but never emitted. | [WebSocket](/api-reference/websocket) |
| The DEX `tvl` key sorts by all-time volume; `valueUsd` is never assigned, so Pool's Total Value always reads 0. | [Explore](/defi/explore), [Pools](/defi/pools) |
| The WebAuthn PRF challenge is not bound to the payload hash, contrary to what `inline-signer.ts` requires of itself. | [Built-in wallet](/wallets/built-in-wallet) |
@@ -32,7 +32,7 @@ Each entry names what would settle it.
- **Where does a Superhero user bid on a short name?** Names of 12 characters or fewer go to a
first-price auction whose duration and starting bid scale with name length, with each bid at
- least 5% above the last. Neither the web app nor `superhero-name.mjs` implements bidding — the
+ least 5% above the last. Neither the web app nor `superhero-name.mjs` implements bidding; the
script refuses the name outright. Use a wallet or CLI that supports `NameClaimTx` bidding;
whether Superhero intends to add it is a question for them.
- **What are the current per-length auction durations?** They are protocol parameters that have
@@ -55,7 +55,7 @@ Each entry names what would settle it.
rather than a document. Nothing would produce one today.
- **What does "W3C standard compliant" mean here operationally?** Until a method exists, the
claim cannot be tested against the DID Core conformance criteria. Anyone relying on it for an
- integration should ask for the method specification first — and, given the X regression
+ integration should ask for the method specification first and, given the X regression
above, should ask specifically which claims are meant to be independently verifiable.
### identity/names
@@ -63,12 +63,12 @@ Each entry names what would settle it.
- **Can two addresses link the same provider value?** The contract keeps a `reverse` map from
`(provider, value)` to address, which suggests one owner per value, and the backend surfaces
an `ALREADY_CLAIMED` abort described as "this provider is already linked to a different value
- for this address" — which is the *other* direction. Whether a second address linking an
+ for this address", which is the *other* direction. Whether a second address linking an
already-claimed value overwrites, aborts, or silently coexists needs the `AddressLink.aes`
source; only the ACI is vendored.
- **Is there a length or character limit on a linked name beyond the contract's own?** The
contract caps any value at 200 characters and forbids `:`. No shorter limit appears in the
- backend for `prefaens` or `x`. AENS names carry their own protocol rules — see
+ backend for `prefaens` or `x`. AENS names carry their own protocol rules; see
[Chain Names (AENS)](/identity/chain-names).
### identity/profile-registry
@@ -78,19 +78,19 @@ Each entry names what would settle it.
nor the backend repository carries a default. Ask Superhero, or read the contract id from any
`link` transaction the API has relayed.
- **Where is the `AddressLink.aes` source?** Only the ACI is vendored. Access-control details
- the ACI cannot express — whether `register_provider` is open to anyone or restricted, whether
+ the ACI cannot express (whether `register_provider` is open to anyone or restricted, whether
`ALREADY_CLAIMED` blocks relinking to the same value, how `reverse` handles two addresses
- claiming one value — need the Sophia source. Ask for the contracts repository that holds it.
+ claiming one value) need the Sophia source. Ask for the contracts repository that holds it.
- **Is `ProfileRegistry` still deployed and holding state?** The backend stopped reading it, but
nothing says it was destroyed. If it is still on chain, names registered in it are still in
- its state tree and simply have no consumer. Settle it by asking for the registry's address.
+ its state tree and have no consumer. Settle it by asking for the registry's address.
### identity/x-verification
- **Which account owns the `x` provider on mainnet?** It is the wallet behind
`ADDRESS_LINK_SECRET_KEY`, which is deployment configuration and is published nowhere. It is
readable from chain as `AddressLink.get_provider_owner("x")` once you have the contract
- address — which is itself unpublished; see
+ address, which is itself unpublished; see
[The AddressLink contract](/identity/profile-registry).
- **Is there a published OpenAPI document to check any of this against?** `main.ts` mounts
Swagger at `/api` only when the process is **not** in production, or when an operator sets
@@ -102,7 +102,7 @@ Each entry names what would settle it.
- The skill defines no config file format or location for the strategy JSON. `SKILL.md` and
`guides/autonomous.md` show the JSON and refer to "the config", but the only files any
- script reads from disk are the contract ACIs under `contracts/` — no script opens a config
+ script reads from disk are the contract ACIs under `contracts/`. No script opens a config
file, and no path is specified. In practice the strategy is instruction text the runtime
persists, which means a runtime that loses conversation state loses the strategy. Nothing
in the repository can settle this; it is a per-runtime answer, so confirm how yours persists
@@ -115,8 +115,8 @@ Each entry names what would settle it.
### agents/cli-reference
- The `superhero-invite.mjs` ACI defect above is established from the file layout and from
- how every other script in the skill loads its ACI, but the exact runtime symptom — which
- error the SDK raises when the method is absent — has not been observed. Run
+ how every other script in the skill loads its ACI, but the exact runtime symptom (which
+ error the SDK raises when the method is absent) has not been observed. Run
`node scripts/superhero-invite.mjs generate 0.01 1` against a funded wallet to see it, and
report the wording to the
[skill repository](https://github.com/superhero-com/superhero-agent-skill).
@@ -128,7 +128,7 @@ Each entry names what would settle it.
backend records an 8.0.0 build of the same source under a different hash. If the server
filters on hash, polls created by the skill get `stake_weighted_results: null` forever and
the fix is to rebuild `contracts/PollBytecode.json` with the matching compiler. Settling
- this needs the `aepp-governance` backend's own indexing rules — it is a different service
+ this needs the `aepp-governance` backend's own indexing rules. It is a different service
from `superhero-api`, and neither its source nor its behaviour is in these repositories.
### agents/openclaw
@@ -142,12 +142,12 @@ Each entry names what would settle it.
### agents/other-runtimes
- No MCP wrapper for these scripts is published in the Superhero organisation. The design
- above is a recommendation, not a description of existing code — if one ships, it will be in
+ above is a recommendation, not a description of existing code. If one ships, it will be in
the [skill repository](https://github.com/superhero-com/superhero-agent-skill).
- Only `superhero-governance.mjs` honours an `AE_NODE_URL` override; the eight other scripts
that reach a node hard-code `https://mainnet.aeternity.io`, and the six that reach the REST
API hard-code `https://api.superhero.com`. Running the skill against testnet would need a
- patch in both places, so there is currently no safe rehearsal environment — even though the
+ patch in both places, so there is currently no safe rehearsal environment, even though the
backend itself is network-aware and ships testnet addresses for the factory, the
affiliation treasury and the governance registry. Two environment variables,
`AE_NODE_URL` and an `AE_API_BASE`, applied consistently across the scripts, would close
@@ -157,7 +157,7 @@ Each entry names what would settle it.
### agents/safety
-- There is no scripted kill switch — no `pause`, no `panic-sell`. Stopping an agent means
+- There is no scripted kill switch: no `pause`, no `panic-sell`. Stopping an agent means
stopping its scheduler or removing its permissions, both of which live outside the skill.
What would settle this is a new `case` block in `superhero-token-swap.mjs` that reads the
portfolio and sells every position in one invocation; nothing in the
@@ -203,7 +203,7 @@ Each entry names what would settle it.
### dao/moderators
-- **Whether a muted member is actively removed from the relay, or only blocked from re-joining.** The backend refuses to re-add a muted member and marks them ineligible, and eligibility flips normally drive a `pending_remove` transition — but whether an already-published member is removed promptly on being muted, or lingers until the next membership sync, was not traced here. `membership-sync.service.ts` and the `tgr.eligibility.changed` consumer in `superhero-api/src/token-gated-rooms/` would settle it.
+- **Whether a muted member is actively removed from the relay, or only blocked from re-joining.** The backend refuses to re-add a muted member and marks them ineligible, and eligibility flips normally drive a `pending_remove` transition, but whether an already-published member is removed promptly on being muted, or lingers until the next membership sync, was not traced here. `membership-sync.service.ts` and the `tgr.eligibility.changed` consumer in `superhero-api/src/token-gated-rooms/` would settle it.
### dao/overview
@@ -219,7 +219,7 @@ Each entry names what would settle it.
is not a bonding-curve token, so there is no protocol-native market for it. Whether a DEX
pair exists would have to be checked against the live DEX factory.
- **The governance roadmap.** No design document, specification or timeline for the ProtocolDAO
- appears in the repositories — only the whitepaper's and the contract README's statements of
+ appears in the repositories, only the whitepaper's and the contract README's statements of
intent. This page should be updated when one is published.
### dao/replaceable-dao
@@ -233,7 +233,7 @@ Each entry names what would settle it.
attributes chat to Quali.chat while the in-app client is pure Nostr against
`wss://relay.superhero.chat`, and the Quali surfaces are Matrix rooms on a different host.
Whether Quali.chat operates the Nostr relay, or the two are independent products marketed
- together, is stated nowhere in the four repositories — ask Superhero who runs
+ together, is stated nowhere in the four repositories. Ask Superhero who runs
`relay.superhero.chat`.
- **Is the Quali.chat CSP omission intentional?** The preview cannot load as deployed, yet
`quali.chat` and `app.quali.chat` were deliberately classified as navigation-only in the
@@ -263,13 +263,13 @@ Each entry names what would settle it.
- **Which provider actually pushes the trending index on mainnet?** The ingest endpoint stores
whatever `provider` string the caller sends, and the entity's own comment lists `x`,
`facebook` and `github` as examples. Which of those is live, on what cadence, and how that
- provider derives its scores, is outside both repositories — ask Superhero, or read the
+ provider derives its scores, is outside both repositories. Ask Superhero, or read the
`source` values on a live `GET /api/trending-tags` response.
### social/moderation
- **Is any account other than a community creator ever seeded as a moderator?** The factory
- seeds exactly one, and `add_moderator` requires the owner — which is the DAO — so every
+ seeds exactly one, and `add_moderator` requires the owner (which is the DAO), so every
subsequent moderator costs a two-week vote and 555 AE. Whether Superhero operates a
standing moderator account on communities it creates is not visible in either repository;
reading `moderator_accounts()` on a few live `CommunityManagement` contracts would settle it.
@@ -290,19 +290,19 @@ Two facts that used to be open are now settled in the body above: the PRF challe
rather than payload-bound, and the cached chat identity's idle window is 30 minutes. What remains is
a roadmap question.
- **Is a user-verification-gated phrase reveal planned, or merely wished for?** That there is no
- reveal today is certain — three separate modules say so in comments
+ reveal today is certain: three separate modules say so in comments
(`wallet-lifecycle.ts`: "there is no reveal or … copy. A UV-gated phrase reveal is the fix; until
it exists, do not describe the passkey as a backup"; `passkey-seed.ts`: "there is no export/reveal
screen today"; `WalletOnboarding.tsx`: "There is no reveal screen"), and no component implements
one. What is not established is whether it is scheduled: no repository contains a roadmap, an
- issue reference or a design note beyond those comments. Superhero would have to say — and until
+ issue reference or a design note beyond those comments. Superhero would have to say, and until
they do, a device-bound passkey remains the single copy of a passkey-created seed.
### wallets/security
- **Does Superhero publish a dedicated security address, an expected response time, or a bounty?**
- No. Seven repositories were checked — the web app, `superhero-api`, `superhero-wallet`, the agent
- skill, `bcl-contracts`, `tipping-contract` and `aepp-governance` — and none contains a
+ No. Seven repositories were checked (the web app, `superhero-api`, `superhero-wallet`, the agent
+ skill, `bcl-contracts`, `tipping-contract` and `aepp-governance`), and none contains a
`SECURITY.md`, a `security.txt`, a dedicated address or a bounty programme. The wallet's README
asks you to "get in touch with us" and stops there; the only address anywhere is the general
contact mailbox listed above. Closing this means Superhero publishing a `SECURITY.md` naming an
@@ -318,21 +318,21 @@ a roadmap question.
- **Is a given Chrome listing and Firefox listing at the same version right now?** Structurally they
should be: both come from one CI job and take their version from `package.json`, so one tag is one
version number. But store review happens in two separate queues and nothing in the repository
- automates submission, so they can sit apart for days. This is not answerable from a docs page —
- it would be stale on publication. Compare **More → About** in your two installs, or the two store
+ automates submission, so they can sit apart for days. This is not answerable from a docs page,
+ because it would be stale on publication. Compare **More → About** in your two installs, or the two store
listings, against the latest tag in
[superhero-com/superhero-wallet](https://github.com/superhero-com/superhero-wallet/releases).
### wallets/superhero-wallet-mobile
- **Which iOS Safari control is current for Add to Home Screen?** The app ships two contradictory
- versions of this copy — the landing-page prompt says "Tap the Share button", the install guide says
- "Tap the three-dot menu (⋯)" — and both live in `src/locales/en.json`, so the repository cannot
+ versions of this copy (the landing-page prompt says "Tap the Share button", the install guide says
+ "Tap the three-dot menu (⋯)"), and both live in `src/locales/en.json`, so the repository cannot
adjudicate between them. This needs one test on a current iOS Safari, after which the losing string
should be fixed in the app rather than worked around here.
- **Does the "Superhero — Web3 Communities" store app differ from the installed superhero.com PWA?**
This half of the question is still open, and now for a specific reason: `/home/user/superhero`, the
- web app's repository, contains **no native project at all** — no `capacitor.config.*`, no
+ web app's repository, contains **no native project at all**: no `capacitor.config.*`, no
`android/` or `ios/` directory, no Cordova or React Native configuration. Its surface-gated
behaviours key on *installed versus browser tab*, not on native versus PWA. So whatever the store
builds wrap, they are produced from a source that is not in any available repository, and only
@@ -343,16 +343,16 @@ a roadmap question.
### wallets/troubleshooting
- **What is the full list of "official channels listed in the app"?** The table above is what seven
- repositories yield, and `superhero-wallet` added three of its rows — the typeform, the contact
+ repositories yield, and `superhero-wallet` added three of its rows: the typeform, the contact
mailbox and the three chat hosts. What is still missing is a first-party page that *declares* the
list, so a reader can tell a channel that was retired from one that never existed. Only Superhero
- can publish that — see the same question on [Support](/resources/support), where this page's
+ can publish that. See the same question on [Support](/resources/support), where this page's
answer is kept in step.
- **Is there a workaround for the Apple passkey-rekey defect beyond the recovery code?** `recovery.ts`
cites the radar number as the motivation for the recovery-code factor existing at all, but
describes no path back to a rekeyed credential. Since Superhero cannot fix a platform
authenticator, closing this needs either an Apple fix or a WebAuthn-level re-enrollment flow that
- the app does not have today — and note that the app has no factor-removal UI either, so a dead
+ the app does not have today. Note also that the app has no factor-removal UI either, so a dead
passkey factor cannot even be cleared. Enroll the recovery code; that is the answer that exists.
### governance/polls
@@ -360,22 +360,22 @@ a roadmap question.
- **Which build the deployed mainnet backend actually recognises.** The hash table documented above
is the one in the checked-out `aepp-governance` repository; the running service could be on an
older revision with a shorter table. If a poll you created reports `stake_weighted_results` as
- `null` despite using an unmodified source, this is the first thing to check — and the only way to
+ `null` despite using an unmodified source, this is the first thing to check, and the only way to
check it is to try.
- **How ties between options are broken.** `stakesForOption` sorts votes within an option but
imposes no ordering between options with equal stake, and nothing in the contracts or the backend
declares a winner at all. A tied poll has no documented resolution because the system does not
- pick winners — it reports stake per option and leaves the decision to people.
+ pick winners. It reports stake per option and leaves the decision to people.
### governance/registry
-- **Which registry version each deployed address is running.** Both sources are in the repository and their ACIs are identical, so the only way to tell is to call `version()` against the mainnet and testnet addresses — `1` for `Registry.aes`, `2` for `Registry_Compiler_v6.aes`. It changes nothing about how you call them; it matters only if you are reproducing a deployment.
+- **Which registry version each deployed address is running.** Both sources are in the repository and their ACIs are identical, so the only way to tell is to call `version()` against the mainnet and testnet addresses: `1` for `Registry.aes`, `2` for `Registry_Compiler_v6.aes`. It changes nothing about how you call them; it matters only if you are reproducing a deployment.
- **Whether the mainnet registry is reachable through the public `https://mainnet.aeternity.io` node.** The app's mainnet configuration uses a third-party node host while the agent skill's CLI defaults to the public one. Settle it with one call: set `AE_NODE_URL=https://mainnet.aeternity.io` and read `version()` off `ct_ouZib4wT9cNwgRA1pxgA63XEUd8eQRrG8PcePDEYogBc1VYTq`. If the CLI times out against mainnet, this is the thing to check first.
### rewards/rewards-program
- **Which countries are blacklisted?** The disclaimer says users from blacklisted countries
- are not eligible, but there is no geographic check anywhere in the reward code — searching
+ are not eligible, but there is no geographic check anywhere in the reward code; searching
`superhero-api/src/` for country, geo, blacklist or `cf-ipcountry` turns up nothing outside
a comment about reverse proxies. So it is not an application rule that a reader could look
up; it is either enforced at the edge or applied manually when payouts are reviewed. Only
@@ -386,7 +386,7 @@ a roadmap question.
- **Who operates `mdw.wordcraft.fun`, and under what commitment?** The backend's own deployment
guide (`superhero-api/scripts/GUIDE.md`) pulls mainnet database backups from
`root@dev.wordcraft.fun`, and the API's package name (`wordcraft-api`) and Swagger title
- ("WORD CRAFT Scan") share the brand — so the domain is almost certainly run by the same team
+ ("WORD CRAFT Scan") share the brand, so the domain is almost certainly run by the same team
rather than by a third party. What is not established anywhere is the availability commitment:
no SLA, rate limit or maintenance policy for that host appears in any repository. Ask Superhero,
or compare `GET /v3/status` against `mainnet.aeternity.io` to see whether it tracks upstream
@@ -395,12 +395,12 @@ a roadmap question.
### concepts/faq
- **Which countries are excluded from the rewards programme?** Question 15 states the restriction.
- The list is not in the web app, the agent skill or `superhero-api` — the backend has no country,
+ The list is not in the web app, the agent skill or `superhero-api`. The backend has no country,
geo-IP or jurisdiction check anywhere in `src/`, so the restriction is enforced by policy rather
than by code. The list must come from Superhero, or from the rewards terms shown on the rewards
page in the live app.
- **Is the rate limit the same in production as in the source?** `RateLimitGuard` hard-codes 10
- requests per minute with no environment override, so the deployed figure should match — but the
+ requests per minute with no environment override, so the deployed figure should match, but the
guard is per-process and the number of replicas behind `api.superhero.com` is not public, so the
limit you actually hit may be a multiple of it. Observing 429 responses against the live host
settles it: send requests to `api.superhero.com` faster than ten per minute and count how many
@@ -409,7 +409,7 @@ a roadmap question.
### concepts/on-chain-social
- **What is the real gas cost of a post?** The 0.00001 AE figure comes from the agent skill's
- guides, not from a measurement or a fee schedule, and no contract determines it — the cost depends
+ guides, not from a measurement or a fee schedule, and no contract determines it. The cost depends
on the deployed bytecode and the gas price at execution. Closing this means publishing posts of
several lengths on mainnet and reading `gasUsed` and `gasPrice` off each transaction in an
explorer.
@@ -417,7 +417,7 @@ a roadmap question.
### concepts/value-flow
- **What are the real gas costs of a buy, a sell and a token creation?** No repository states one,
- and the contracts do not determine it — gas depends on the deployed bytecode and the network's gas
+ and the contracts do not determine it. Gas depends on the deployed bytecode and the network's gas
price at execution. Each is visible as the transaction fee on an individual transaction in
[æScan](https://aescan.io); closing this means submitting one of each on mainnet and recording
`gasUsed` and `gasPrice` against a known block height.
@@ -430,12 +430,12 @@ a roadmap question.
- **What are the operational limits in front of the app?** The application-level rate limiter
documented above is the only one in the source. Whether the deployment sits behind a CDN or
reverse proxy that adds its own throttling, request-size limits or connection caps is not
- determinable from the repository — ask the operators before running a high-volume poller.
+ determinable from the repository. Ask the operators before running a high-volume poller.
### api-reference/dex
- **Is `dex-backend-mainnet.prd.service.aepps.com` still running?** The Superhero side of the
- question is settled — nothing calls it, and the API replicates its two contracts under
+ question is settled: nothing calls it, and the API replicates its two contracts under
`/api/dex/*`, with the source calling it "legacy". Whether the host itself is still serving is a
question for its operators at æternity, not something either repository records. A single
request answers it: `curl -sI https://dex-backend-mainnet.prd.service.aepps.com/`.
@@ -443,8 +443,8 @@ a roadmap question.
### api-reference/factory-and-contracts
- **How is a factory upgrade actually rolled out?** The API can only ever name one factory per
- network — `BCL_FACTORY` is a single record keyed by network id, and `getCurrentFactory()` caches
- it for the process lifetime — so during a transition `/api/factory` returns the old address
+ network (`BCL_FACTORY` is a single record keyed by network id, and `getCurrentFactory()` caches
+ it for the process lifetime), so during a transition `/api/factory` returns the old address
until the backend is redeployed and restarted, with no overlap and no notice. Whether the old
factory keeps accepting `create_community` calls in the meantime is a question for the contract
operators, not something the API records.
@@ -472,17 +472,17 @@ a roadmap question.
- **Who operates `mdw.wordcraft.fun`, and what are its uptime and rate-limit guarantees?** The
layout makes it unambiguously an æternity node plus middleware, and the CSP makes it the only
- host a Superhero browser page can reach. But it appears in no backend source at all — the API
- server indexes from `mainnet.aeternity.io` — so no repository documents its operator, its SLA or
+ host a Superhero browser page can reach. But it appears in no backend source at all (the API
+ server indexes from `mainnet.aeternity.io`), so no repository documents its operator, its SLA or
its throttling. Ask whoever runs the Superhero deployment; there is nothing further to read.
- **Is `mainnet.aeternity.io` deliberately excluded from the browser CSP?** The testnet host is on
the allowlist and the mainnet one is not, while the web app's `src/config.ts` points mainnet at
- `mdw.wordcraft.fun` — so the allowlist is at least consistent with that configuration, and the
+ `mdw.wordcraft.fun`, so the allowlist is at least consistent with that configuration, and the
backend's use of the public host is server-side and unaffected by CSP. Whether a browser fallback
was ever intended is not recorded; the `server/lib/csp.cjs` change history would show it.
- **Which middleware version is deployed at each host?** The middleware's API has changed across
- major versions — the web app calls `/v2/` and `/v3/` paths and the backend subscribes to a
- `/mdw/v2/websocket` — and nothing in any repository pins or records a version. The middleware's
+ major versions (the web app calls `/v2/` and `/v3/` paths and the backend subscribes to a
+ `/mdw/v2/websocket`), and nothing in any repository pins or records a version. The middleware's
own `GET /mdw/v3/status` reports its version and its distance from the chain tip; that call
answers this and the upstream-lag question together.
@@ -490,7 +490,7 @@ a roadmap question.
- **Where is the `AddressLink` contract deployed?** Every write on this page ends in a call to it,
but its address comes from the `ADDRESS_LINK_CONTRACT_ADDRESS` environment variable with no
- default in the source — an unset variable disables the whole plugin. The deployed value is in a
+ default in the source, and an unset variable disables the whole plugin. The deployed value is in a
running deployment's environment, or in its first log line; it is not in any repository. See
[Profile registry](/contracts/profile-registry).
@@ -525,7 +525,7 @@ a roadmap question.
### getting-started/claim-name
Half of what used to be here is answered above: **Superhero Wallet does warn you and can auto-extend**
-(a 17,000-block window), while superhero.com and `superhero-api` do neither — there is no expiry job
+(a 17,000-block window), while superhero.com and `superhero-api` do neither: there is no expiry job
anywhere in the backend. What is left is the protocol constant and the lapse behaviour.
- **What is a name's default TTL in blocks?** Still a protocol question, and the wallet does not
settle it: it lets the SDK choose the TTL when extending (`extendTtl(undefined, …)`), and the
@@ -534,34 +534,34 @@ anywhere in the backend. What is left is the protocol constant and the lapse beh
[AENS.md](https://github.com/aeternity/protocol/blob/master/AENS.md) and in the SDK's own default.
- **What happens to a lapsed name's pointer, and to a profile using it as its display source?** The
protocol side (whether pointers are cleared, and whether the name re-enters auction) is in AENS.md.
- The Superhero side — whether a profile silently falls back to the address or keeps showing a dead
- name — is not determinable from the repositories and would need a lapsed name to observe.
+ The Superhero side (whether a profile silently falls back to the address or keeps showing a dead
+ name) is not determinable from the repositories and would need a lapsed name to observe.
### getting-started/create-account
Three things that were open are now settled, and all three are worth knowing before you choose a
-path. **A passkey-created wallet's phrase cannot be revealed anywhere** — three modules in
+path. **A passkey-created wallet's phrase cannot be revealed anywhere**: three modules in
`src/features/wallet/` say so in comments and no component implements a reveal, so if you create
with a passkey, that passkey is your only backup and it must sync. **The built-in wallet's
-passphrase cannot be changed later** — there is no `addPassphraseFactor` and nothing calls
+passphrase cannot be changed later**: there is no `addPassphraseFactor` and nothing calls
`removeFactor`, so changing it means recreating the vault from the phrase. And **the standalone
Superhero Wallet's backup step is optional and comes after onboarding**, documented above. See
[The Built-In Wallet](/wallets/built-in-wallet) and
[Backup & Recovery](/wallets/backup-and-recovery).
- **Is a phrase reveal actually planned?** The code names a user-verification-gated reveal as "the
- fix", and the standalone Superhero Wallet already ships exactly that shape of screen — a
- re-authentication gate in front of the phrase — so the design is not the obstacle. What is missing
+ fix", and the standalone Superhero Wallet already ships exactly that shape of screen (a
+ re-authentication gate in front of the phrase), so the design is not the obstacle. What is missing
is any statement of intent: no repository carries a roadmap, an issue reference or a design note
beyond those source comments. Only Superhero can say whether it is scheduled.
### getting-started/first-post
-- **Is there a limit on the number of media entries in one post?** File size is not a question —
+- **Is there a limit on the number of media entries in one post?** File size is not a question, because
nothing is uploaded, so a "size limit" has no place to live; the media list is a list of URL
strings. No count cap exists anywhere in the path: not in `PostForm.tsx`, not in the contract
- (which takes an unbounded `list(string)`), and not in the indexer — `superhero-api` stores
- `media` as a plain JSON column defaulting to `[]` with no length validator
- (`src/social/entities/post.entity.ts`). So the practical ceiling is gas and whatever the pickers
+ (which takes an unbounded `list(string)`), and not in the indexer (`superhero-api` stores
+ `media` as a plain JSON column defaulting to `[]` with no length validator, in
+ `src/social/entities/post.entity.ts`). So the practical ceiling is gas and whatever the pickers
let you accumulate. Adding many entries to a post on testnet and watching where it stops would
turn that into a number.
- A screenshot of the composer with each control labelled would make this page easier to follow.
@@ -576,7 +576,7 @@ Superhero Wallet's backup step is optional and comes after onboarding**, documen
- **Are the `/defi/bridge` and `/defi/buy-ae-with-eth` routes disabled temporarily or permanently?**
The router keeps both the redirect and the commented-out view, which reads as "re-enable later",
- but nothing states the intent — and neither of the other two codebases resolves it. `superhero-api`
+ but nothing states the intent, and neither of the other two codebases resolves it. `superhero-api`
has no bridge or on-ramp module at all, only the aeETH token address the DEX needs to price the
pair; `superhero-wallet` keeps its own on-ramp (Simplex) behind an `UNFINISHED_FEATURES` flag that
production builds set to `false`, which is consistent with "parked" but is evidence about a
@@ -599,8 +599,8 @@ Superhero Wallet's backup step is optional and comes after onboarding**, documen
- **Do the "Superhero — Web3 Communities" store apps use the same route paths as superhero.com?**
The web routes in `src/routes.tsx` are authoritative for superhero.com, and the reason no
repository describes the native apps' navigation is now specific: `/home/user/superhero` contains
- **no native project at all** — no Capacitor config, no `android/` or `ios/` directory, no Cordova
- or React Native setup — so the store builds are produced from a source not in any available
+ **no native project at all** (no Capacitor config, no `android/` or `ios/` directory, no Cordova
+ or React Native setup), so the store builds are produced from a source not in any available
repository. Nothing in the web app distinguishes native from PWA either; its surface-gated
behaviours key on *installed versus browser tab*. Someone with the native app installed would have
to compare, or Superhero would have to publish that source.
@@ -611,14 +611,14 @@ Superhero Wallet's backup step is optional and comes after onboarding**, documen
### getting-started/testnet
-- **What is the faucet's grant per request?** Published figures disagree — 5 AE and 250 AE both
- appear for different æternity faucet deployments — and the amount is a configuration value, not a
+- **What is the faucet's grant per request?** Published figures disagree (5 AE and 250 AE both
+ appear for different æternity faucet deployments), and the amount is a configuration value, not a
protocol constant, so any number written here would be a guess about someone's deployment. The
rate limit *shape* is settled (a per-address graylist, signalled by HTTP 425), but not its
duration. Both close in one request: `POST https://faucet.aepps.com/account/
` and read
the response, then repeat it and read the graylist message.
-- **Is a public testnet deployment of the Superhero *social* front end hosted anywhere?** See above
- — the testnet backend is evidently operated, and the hosted wallet at `wallet.superhero.com`
+- **Is a public testnet deployment of the Superhero *social* front end hosted anywhere?** See above:
+ the testnet backend is evidently operated, and the hosted wallet at `wallet.superhero.com`
reaches testnet from its own settings, but no testnet origin for superhero.com itself exists in
any repository. Only Superhero can say whether one is published.
@@ -636,11 +636,11 @@ All three need a brand document Superhero has not published; ask at
download button as convenience, not permission.
- **Are there approved logo clear-space, minimum-size or misuse rules?** The brand kit publishes
colours, type and files but no layout specification, and nothing of the sort exists in
- `superhero/public/` — the shipped assets are `full-logo.svg`, `logo.png` and `og-default.png` with
+ `superhero/public/`. The shipped assets are `full-logo.svg`, `logo.png` and `og-default.png` with
no accompanying guideline. A published brand guide would close this.
- **Is a light-background logo variant available?** Every asset in the kit is presented on the
`#0a0a0f` background, `full-logo.svg` is the only vector shipped, and no inverse lockup exists in
- the repository. If you need one, ask rather than recolouring the SVG yourself — a modified mark is
+ the repository. If you need one, ask rather than recolouring the SVG yourself, because a modified mark is
exactly what section V prohibits.
### resources/legal
@@ -648,13 +648,13 @@ All three need a brand document Superhero has not published; ask at
All three are questions for Superhero.com LVC at `superherowallet@protonmail.com`. They are legal
drafting questions, not engineering ones, and no amount of reading the code will answer them.
- **Which countries are excluded from the rewards programme?** The restriction is stated in the
- disclaimer above; the list is published nowhere. It is not a code-level control either — the
+ disclaimer above; the list is published nowhere. It is not a code-level control either: the
backend has no country field, geo-IP lookup or jurisdiction check anywhere in `src/`, so the
exclusion is applied by hand or not at all. Only Superhero can produce the list.
- **Do the terms cover token sales and DAOs?** Section II, "Subject of activity", describes a
newsfeed of donations and comments plus access to token-swap, wrapping and liquidity contracts. It
does not mention bonding-curve token sales, community DAOs or the ProtocolDAO token, which are the
- product's central mechanisms — and the contracts confirm those mechanisms are live, not planned.
+ product's central mechanisms, and the contracts confirm those mechanisms are live, not planned.
Whether they are intended to fall under the same section is not determinable from the document as
published on 29 September 2025; it needs either an amended Section II or a written clarification.
- **Are there separate terms for the mobile apps or for Superhero Wallet?** The linked documents
@@ -667,12 +667,12 @@ drafting questions, not engineering ones, and no amount of reading the code will
Each of these needs a statement from Superhero. No further code reading will settle them.
- **Is there an official community channel beyond the X account above?** The FAQ refers to "official
channels listed in the app" in the plural. Six repositories were searched and only
- `@superhero_chain` is identifiable. If a Discord or Telegram exists, Superhero must publish it —
- **do not add an invite to this page on the strength of a search result, a social post, or someone
+ `@superhero_chain` is identifiable. If a Discord or Telegram exists, Superhero must publish it.
+ **Do not add an invite to this page on the strength of a search result, a social post, or someone
saying so.** The whole value of this page is that every URL on it traces to a repository or to
official æternity documentation.
- **What availability can you expect from `mdw.wordcraft.fun`?** Its operator is now reasonably
- clear — the backend's deployment guide pulls mainnet database backups from `dev.wordcraft.fun`,
+ clear: the backend's deployment guide pulls mainnet database backups from `dev.wordcraft.fun`,
and the API's package name (`wordcraft-api`) and Swagger title ("WORD CRAFT Scan") share the
brand, so it is almost certainly the same team rather than a third party. What is unpublished is
any commitment: no SLA, rate limit, version policy or maintenance window for that host appears
@@ -683,15 +683,15 @@ Each of these needs a statement from Superhero. No further code reading will set
These three can only be closed by Superhero. Nothing in any repository settles them, and no amount
of further code reading will.
- **What are the "official channels listed in the app"?** The FAQ's support answer points at them
- without naming them. Six repositories were searched — the web app and its locale files, the
- backend, the agent skill, the BCL contracts, the governance contracts and the tipping contract —
+ without naming them. Six repositories were searched (the web app and its locale files, the
+ backend, the agent skill, the BCL contracts, the governance contracts and the tipping contract)
and the only official account any of them identifies is `@superhero_chain` on X, named in the
posting-reward copy rather than as a support route. Superhero must publish the list, or a
maintainer must confirm it; **do not add a Discord or Telegram link to this page on any weaker
evidence.** See [Official Links](/resources/links).
- **Is there a security disclosure policy or bug bounty?** No `SECURITY.md`, no security address and
no bounty programme exists in any of the six repositories. Whether
- `superherowallet@protonmail.com` is monitored for security reports — and by whom — is not
+ `superherowallet@protonmail.com` is monitored for security reports, and by whom, is not
established anywhere. Closing this means Superhero publishing a `SECURITY.md` or a disclosure
address; until then, assume a report to that address may sit with a legal or privacy inbox rather
than an engineer.
@@ -713,20 +713,20 @@ of further code reading will.
for example, the ProtocolDAO multiplier is meant to apply to the curve price or to the all-in
price, and whether the app's 950× display is the intended figure.
- **Has any contract been audited since publication?** The contract headers say no, and no report
- appears in any repository. A published audit — with a firm, a date and a commit hash — would close
+ appears in any repository. A published audit (with a firm, a date and a commit hash) would close
this; nothing short of that should.
### defi/bridge
-The *status* is settled — the feature is commented out at the route table and nothing imports it.
+The *status* is settled: the feature is commented out at the route table and nothing imports it.
What remains open is intent and live state, and neither is in any repository. The backend confirms
the shape of the gap: `superhero-api` has no bridge module, no bridge plugin and no bridge
endpoint. Its only reference to the asset is the aeETH token address in
-`src/dex/config/dex-contracts.config.ts`, which exists so the DEX can price the pair — exactly the
+`src/dex/config/dex-contracts.config.ts`, which exists so the DEX can price the pair. That is exactly the
"aeETH still trades, bridging does not" position described above.
- **Why was the bridge disabled, and will it return?** The code carries re-enable instructions but
no reason and no date. Only a maintainer can say whether this was maintenance, a security
- response, or an abandonment — ask on
+ response, or an abandonment. Ask on
[the app's issue tracker](https://github.com/superhero-com/superhero/issues).
- **Are the bridge contracts holding funds and accepting transfers today?** Their *identity* is
settled: æternity's own bridge front-end points at the same four addresses Superhero's disabled
@@ -736,7 +736,7 @@ endpoint. Its only reference to the asset is the aeETH token address in
activity.
- **Would Superhero endorse `ae-bridge.com`?** That the domain is æternity's own bridge
deployment is settled from `aeternity/aepp-bridge`. What no source answers is whether Superhero
- considers it the supported replacement for the feature it switched off — nothing in the app or
+ considers it the supported replacement for the feature it switched off. Nothing in the app or
the backend links it, and a docs page should not manufacture an endorsement. Superhero would have
to say so, or link it.
- **What were the fees and settlement times?** The disabled code documents a 12-hour cooldown on
@@ -746,7 +746,7 @@ endpoint. Its only reference to the asset is the aeETH token address in
### defi/buy-ae
- **What are each provider's limits, fees and supported countries?** Not determinable from any
- Superhero repository — the app stores a link and nothing else, and the backend has no on-ramp
+ Superhero repository: the app stores a link and nothing else, and the backend has no on-ramp
module at all. Each provider's own terms page is the only source, and they vary by the country
you are in, so no figure quoted here would be right for every reader.
- **Will the in-app ETH on-ramp return?** The code carries re-enable instructions but no reason for
@@ -760,12 +760,12 @@ endpoint. Its only reference to the asset is the aeETH token address in
`PROFILE_X_INVITE_MILESTONE_REWARD_AMOUNT_AE=0`
(`superhero-api/src/profile/profile.constants.ts`, `.env.example`). Those are example values, not
the production configuration, so what remains unknown is which switches `api.superhero.com`
- actually has set — a question only Superhero can answer.
+ actually has set, which only Superhero can answer.
### defi/explore
-- **On what criteria does Superhero set `listed`?** The mechanism is settled — an API-key-guarded
- `POST /api/dex/tokens//listed`, defaulting to `false` — but the code contains no
+- **On what criteria does Superhero set `listed`?** The mechanism is settled (an API-key-guarded
+ `POST /api/dex/tokens//listed`, defaulting to `false`), but the code contains no
eligibility rule, so the policy behind the switch exists only as an operator practice. Only
Superhero can state it.
- **Will `tvl` be fixed to mean TVL?** `src/dex/docs/token-calculation.md` specifies the correct
@@ -776,8 +776,8 @@ endpoint. Its only reference to the asset is the aeETH token address in
- **Are the Fees Earned and Total Value tiles planned, or abandoned?** Both are unimplemented
rather than broken: one is a literal string, and the other reads an optional field no code
- writes. The backend could supply what they need — `GET /api/dex/pairs/` returns reserves
- and total supply, and `AePricingService` already converts AE to fiat — so this is a front-end
+ writes. The backend could supply what they need (`GET /api/dex/pairs/` returns reserves
+ and total supply, and `AePricingService` already converts AE to fiat), so this is a front-end
gap. Only a maintainer can say whether it is on the roadmap.
- **Is the factory's protocol fee currently switched on, and who holds `fee_to_setter`?** The
mechanism is fully settled above; the live state is not. `AedexV2Factory.init` sets
@@ -797,7 +797,7 @@ endpoint. Its only reference to the asset is the aeETH token address in
- **What is the mainnet `disabled: true` flag for?** It sits on the whole mainnet
`NetworkDefinition` in `superhero/src/config.ts`, not on the DEX addresses as previously
assumed here, and `src/utils/constants.ts` copies it through to `CURRENT_NETWORK.disabled`.
- Nothing in the web app then reads it — the only `.disabled` consumers in `src/` are
+ Nothing in the web app then reads it. The only `.disabled` consumers in `src/` are
`AppSelect.tsx` for dropdown options and `BuyAe.tsx` for payment methods, both unrelated. So
it is inert in the current build and its intent is undocumented. Ask whoever added it, or
check whether a deploy-time config consumes it.
@@ -814,14 +814,14 @@ which is the exact revision `bcl-contracts` pins. Read that, and all four close
not the ACI, and was not read.
- **Whether `change_allowance` reverts on a negative result.** The ACI types `value_change` as a
plain `int`, so a negative delta is well-typed. What happens when it would drive the allowance
- below zero — abort, or clamp — is in the source.
+ below zero (abort, or clamp) is in the source.
- **Whether `create_allowance` aborts when an allowance already exists.** The agent skill
branches on existence and calls `change_allowance` instead, which strongly implies it does.
The allowance example above is correct either way.
One of the original four is now settled negatively: **`swap` is not used anywhere in
Superhero.** A search across `superhero-api/src` and `superhero/src` for `swap()`, `swapped()`
-and `check_swap` returns no call site in either — every `swap` hit in the backend belongs to the
+and `check_swap` returns no call site in either. Every `swap` hit in the backend belongs to the
DEX, which is unrelated. The AEX-9 migration mechanism exists in the implementation and
Superhero has never exercised it. If you want to be certain for a particular token, call
`swapped()` on it; a non-empty map would mean otherwise.
@@ -847,29 +847,29 @@ Superhero has never exercised it. If you want to be certain for a particular tok
### contracts/events
-- **The query parameter name for server-side event filtering.** The encoding is now settled —
- padded base32hex of the Blake2b digest, as shown above — but the Superhero backend never
+- **The query parameter name for server-side event filtering.** The encoding is now settled
+ (padded base32hex of the Blake2b digest, as shown above), but the Superhero backend never
passes it as a filter; it fetches by `contract_id` (plus `tx_hash`) and matches `event_hash`
client-side. Whether `/v3/contracts/logs` accepts an `event_hash=` or similar parameter, and
- what it is called, is settled by the middleware's own OpenAPI document — fetch
+ what it is called, is settled by the middleware's own OpenAPI document: fetch
`{middlewareUrl}/v3/api` and read the `/v3/contracts/logs` parameter list. Client-side
filtering on `topics[0]` or `event_hash` always works regardless.
- **What `target` accepts on the `Object` channel.** The subscribe message shape is now
settled from the Superhero backend's own client, but that client only ever subscribes to
- `Transactions`, `MicroBlocks` and `KeyBlocks` — it declares the `Object` channel and never
+ `Transactions`, `MicroBlocks` and `KeyBlocks`. It declares the `Object` channel and never
uses it, so nothing in the repository shows what a `target` looks like or whether a contract
address is a valid one. The [ae_mdw repository](https://github.com/aeternity/ae_mdw) is the
place to settle it.
- **Whether the ProfileRegistry event names are exactly as the whitepaper spells them.** The
six hashes in that section are correct only if the names are, and neither an ACI nor a source
file for `ProfileRegistry.aes` exists in any repository read. The contract now
- looks retired, so this may never be settleable — and may not be worth settling. What would
+ looks retired, so this may never be settleable, and it may not be worth settling. What would
close it: the `ProfileRegistry.aes` source, or the deployed address plus a decompile.
### contracts/governance-contracts
- **Is the mainnet registry the compiler-6 build, or the original?** Both declare the same
- entrypoints and events, and they differ observably only in `version()` — `1` for
+ entrypoints and events, and they differ observably only in `version()`: `1` for
`Registry.aes`, `2` for `Registry_Compiler_v6.aes`. Call `version()` on
`ct_ouZib4wT9cNwgRA1pxgA63XEUd8eQRrG8PcePDEYogBc1VYTq`, or compare the deployed bytecode
against the `Registry_Compiler_v6.aes` hash
@@ -883,10 +883,10 @@ Superhero has never exercised it. If you want to be certain for a particular tok
from `ADDRESS_LINK_CONTRACT_ADDRESS` at boot and logs `AddressLink contract configured at`
followed by the address on startup, so the fastest route is a running `superhero-api`
deployment's environment or its first log line. There is no fallback default in
- `address-links.constants.ts` — an unset variable disables the whole plugin with a warning.
+ `address-links.constants.ts`; an unset variable disables the whole plugin with a warning.
- **Where is the `AddressLink.aes` source?** Only the compiled ACI is committed. Everything on
- this page about its behaviour that is not in that ACI — the nonce increment rule, whether
- `register_provider` is first-come or gated, what `ALREADY_CLAIMED` compares — is inferred
+ this page about its behaviour that is not in that ACI (the nonce increment rule, whether
+ `register_provider` is first-come or gated, what `ALREADY_CLAIMED` compares) is inferred
from the backend's error mapping rather than read from Sophia. Ask the Superhero contract
team for the source.
- **Is `ProfileRegistry.aes` still deployed, and at what address?** No address appears in
@@ -896,7 +896,7 @@ Superhero has never exercised it. If you want to be certain for a particular tok
`CustomNameAutoRenamed`.
- **Where is the `ProfileRegistry.aes` source?** A GitHub code search for
`set_x_name_with_attestation` and `CustomNameAutoRenamed` across all public repositories
- returns exactly one hit each — the whitepaper string in
+ returns exactly one hit each: the whitepaper string in
`superhero-com/superhero/src/views/Whitepaper.tsx`. Either the repository is private or the
contract was never published. Given that it has been superseded, this is now of historical
interest only.
@@ -915,7 +915,7 @@ Superhero has never exercised it. If you want to be certain for a particular tok
[Deployed Addresses](/contracts/addresses) carry those exact builds. `bcl-contracts/generated/`
ships `bytecode_hashes.json` and `source_hashes.json`, and
`superhero-api/src/plugins/governance/contract/aci/GovernanceBytecodeHashes.json` ships the
- governance pair, so the comparison is mechanical — compile, hash, and fetch the deployed
+ governance pair, so the comparison is mechanical: compile, hash, and fetch the deployed
bytecode from a node, then check the two hashes against each other.
- **Is the `AddressLink.aes` source available anywhere?** Only its compiled ACI is committed, in
`superhero-api`. Its nonce increment rule, its provider-registration policy, and what
@@ -928,11 +928,11 @@ Superhero has never exercised it. If you want to be certain for a particular tok
### tokens/create-from-cli
-- The `check` subcommand reports `allowed_chars` as the fixed string `"A-Z, 0-9, - (dash)"` regardless of the collection it just looked up. That happens to describe the `WORDS` collection, which the script always uses, and is wrong for the other three — see [Collections & Naming Rules](/tokens/collections-and-naming) for the real character sets. The script does not decode the schema's `allowed_name_chars`.
+- The `check` subcommand reports `allowed_chars` as the fixed string `"A-Z, 0-9, - (dash)"` regardless of the collection it just looked up. That happens to describe the `WORDS` collection, which the script always uses, and is wrong for the other three; see [Collections & Naming Rules](/tokens/collections-and-naming) for the real character sets. The script does not decode the schema's `allowed_name_chars`.
### tokens/create-from-dashboard
-- The exact gas cost of `create_community` on mainnet is not documented anywhere in the repositories; the 0.001 AE figure comes from the agent skill's token-creation guide and is described there as approximate. It is likely to be an understatement, because one `create_community` call deploys four contracts — the AEX-9 token, the sale, the DAO and community management — and performs an initial buy. A single mined creation transaction on aeScan would give the real number.
+- The exact gas cost of `create_community` on mainnet is not documented anywhere in the repositories; the 0.001 AE figure comes from the agent skill's token-creation guide and is described there as approximate. It is likely to be an understatement, because one `create_community` call deploys four contracts (the AEX-9 token, the sale, the DAO and community management) and performs an initial buy. A single mined creation transaction on aeScan would give the real number.
### tokens/fees-and-slippage
@@ -940,7 +940,7 @@ Superhero has never exercised it. If you want to be certain for a particular tok
### tokens/portfolio
-- **Whether `balance_ae_value` was ever served, or is a documentation error in the skill's portfolio guide.** No field of that name appears in the backend's holdings response or in the current script's output. If you are writing against the guide rather than the API, compute it yourself from `balance` and a `sell_return(balance)` call — and mind the rectangle-versus-integral caveat above.
+- **Whether `balance_ae_value` was ever served, or is a documentation error in the skill's portfolio guide.** No field of that name appears in the backend's holdings response or in the current script's output. If you are writing against the guide rather than the API, compute it yourself from `balance` and a `sell_return(balance)` call, and mind the rectangle-versus-integral caveat above.
### tokens/risks
@@ -949,20 +949,20 @@ Superhero has never exercised it. If you want to be certain for a particular tok
### tokens/transactions
-- **What `verified` actually asserts.** It is a boolean column on every row, defaulting to `false`, and the indexer sets it — but the condition under which a row is promoted to `verified` is not stated anywhere the column is defined. Do not treat `verified: false` as "this trade did not happen" without establishing what the flag means; the `_should_revalidate` path in `superhero-api/src/plugins/bcl/services/transactions.service.ts` is the place to start.
+- **What `verified` actually asserts.** It is a boolean column on every row, defaulting to `false`, and the indexer sets it, but the condition under which a row is promoted to `verified` is not stated anywhere the column is defined. Do not treat `verified: false` as "this trade did not happen" without establishing what the flag means; the `_should_revalidate` path in `superhero-api/src/plugins/bcl/services/transactions.service.ts` is the place to start.
### tokens/trending-score
-- **The distribution of live scores is unknown.** The formula bounds the score in `[0, 1]`, but where real tokens actually sit in that interval — whether a busy token reaches 0.5 or tops out near 0.1 — cannot be derived from the weights alone. Pull `GET /api/tokens?order_by=trending_score&limit=100` and look at the spread before setting any absolute threshold.
+- **The distribution of live scores is unknown.** The formula bounds the score in `[0, 1]`, but where real tokens actually sit in that interval (whether a busy token reaches 0.5 or tops out near 0.1) cannot be derived from the weights alone. Pull `GET /api/tokens?order_by=trending_score&limit=100` and look at the spread before setting any absolute threshold.
- **Whether the weights and caps documented here match what mainnet is running.** They come from `superhero-api/src/configs/constants.ts` in the checked-out backend; a deployed instance could be on a different revision. `GET /api/tokens/{address}/score` echoes each signal's `cap` alongside its `raw` value, so one call against the live API confirms or refutes the whole table.
### aeternity/ae-and-gas
- **The per-action costs above are estimates, not measurements.** They are the agent skill authors'
- observations, without a block height or gas price attached, and no contract determines them — gas
+ observations, without a block height or gas price attached, and no contract determines them. Gas
depends on the deployed bytecode, and the price on network demand at execution. Buy and sell have
- no figure at all. What would close it is a table of `gasUsed` — which is a property of the
- bytecode and stable between runs — separately from `gasPrice`, which is not. Submit one
+ no figure at all. What would close it is a table of `gasUsed` (a property of the
+ bytecode and stable between runs), separately from `gasPrice`, which is not. Submit one
transaction of each kind on mainnet, open it on [æScan](/aeternity/explorers), and record
`gasUsed`, `gasPrice` and the keyblock height together. The contract comment quoted above
(~0.000201 AE for an invitation redemption) is the only measured number available anywhere in
@@ -983,14 +983,14 @@ Superhero has never exercised it. If you want to be certain for a particular tok
### aeternity/sophia-and-fate
- **Which compiler built the deployed governance contracts?** Their repository publishes the
- reverse index that answers this — a bytecode hash per contract for all 27 compiler versions — but
+ reverse index that answers this (a bytecode hash per contract for all 27 compiler versions) but
not the answer itself. Fetch the deployed `Poll_Iris` and `Registry_Compiler_v6` bytecode from
the node, hash it, and look the hash up in
`aepp-governance/governance-contracts/generated/bytecode_hashes.json`. That is one node call per
contract. BCL (8.0.0) and Tipping (7.4.1) are settled from their own single-key files.
- **Which compiler built ProfileRegistry?** Nothing settles this, and the trail has gone cold:
no ProfileRegistry source repository has been located, and the current backend no
- longer even carries its ACI — the only references left are two comments describing its indexer in
+ longer even carries its ACI. The only references left are two comments describing its indexer in
the past tense (`superhero-api/src/profile/services/profile-read.service.ts` and
`src/plugins/address-links/address-links-plugin-sync.service.ts`), which have been superseded by
the AddressLink plugin. Answering it needs both a source tree and the deployed bytecode.
diff --git a/README.md b/README.md
index 683303c..fb3c216 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Superhero Dev
-The developer documentation for [Superhero](https://superhero.com) — the on-chain attention
+The developer documentation for [Superhero](https://superhero.com), the on-chain attention
market where you can discover, trade, and govern the trends you believe in.
Built with [Nextra](https://nextra.site) (docs theme, `pages/` router).
@@ -27,7 +27,7 @@ The canonical origin used for `og:url` and the social-card image resolves automa
`NEXT_PUBLIC_SITE_URL` if set, otherwise Vercel's `VERCEL_PROJECT_PRODUCTION_URL`. Attaching a
custom domain in Vercel is enough; no code change is needed.
-Brand assets live in `public/` and come from the Superhero app's own `public/` directory —
+Brand assets live in `public/` and come from the Superhero app's own `public/` directory:
the mark, the wordmark, the favicon set and the social card.
### Two constraints worth knowing before you edit
@@ -63,7 +63,7 @@ pages/
├── agents/ AI agents: skill install, autonomous mode, strategies, CLI reference
├── api-reference/ api.superhero.com REST reference
├── contracts/ Sophia contract reference and deployed addresses
-├── aeternity/ The underlying chain — scoped to what Superhero actually uses
+├── aeternity/ The underlying chain, scoped to what Superhero actually uses
└── resources/ Whitepaper, brand, support, official links
```
@@ -71,13 +71,13 @@ pages/
Every page follows the same shape: double-quoted `title` and `description` frontmatter, an H1,
one to three sentences of opening prose, task-oriented sections, and a `## Read more` section of
-internal links. Plain MDX only — no imports, no components.
+internal links. Plain MDX only, with no imports and no components.
Five things break the build, and `scripts/lint-mdx.py` catches all of them: unquoted
frontmatter, a bare `{` or `<` in prose, a `|` inside inline code inside a table row, a broken
internal link, and a page missing from its directory's `_meta.json`. Run it before every push.
-`NOTES.md` holds maintainer-only material — product defects found while writing, and facts that
+`NOTES.md` holds maintainer-only material: product defects found while writing, and facts that
have not been verified against a live system. It is not part of the site.
## Where the content comes from
diff --git a/next.config.js b/next.config.js
index 473afbc..c2998b5 100644
--- a/next.config.js
+++ b/next.config.js
@@ -10,10 +10,9 @@ const withNextra = require('nextra')({
* Resolution order:
* 1. NEXT_PUBLIC_SITE_URL, if the deployment sets one explicitly. Use this
* once a custom domain is attached and should be the canonical one.
- * 2. VERCEL_PROJECT_PRODUCTION_URL, which Vercel injects at build time and
- * which always names the project's real production domain — including a
- * custom domain once one exists. This keeps the tags correct with no
- * manual step.
+ * 2. VERCEL_PROJECT_PRODUCTION_URL, for Vercel previews only. Production is
+ * GitHub Pages, where the workflow sets NEXT_PUBLIC_SITE_URL from the
+ * SITE_URL repository variable.
* 3. localhost, so a local build produces coherent (if local) tags rather
* than pointing at a domain that may not exist.
*/
@@ -32,18 +31,10 @@ module.exports = withNextra({
env: {
NEXT_PUBLIC_SITE_URL: siteUrl(),
},
- async redirects() {
- return [
- {
- source: '/identity/profile-registry',
- destination: '/identity/address-link',
- permanent: true,
- },
- {
- source: '/contracts/profile-registry',
- destination: '/contracts/address-link',
- permanent: true,
- },
- ]
- },
+ // Static export for GitHub Pages. Next's redirects() does not run on a
+ // static host, so the two renamed pages redirect from small client pages
+ // in pages/identity and pages/contracts instead.
+ output: 'export',
+ images: { unoptimized: true },
+ trailingSlash: true,
})
diff --git a/pages/aeternity/accounts-and-keys.mdx b/pages/aeternity/accounts-and-keys.mdx
index e1d964a..dade261 100644
--- a/pages/aeternity/accounts-and-keys.mdx
+++ b/pages/aeternity/accounts-and-keys.mdx
@@ -14,7 +14,7 @@ Identifiers are a raw byte array, base-encoded, with a prefix describing what th
Base58 with a checksum is used for short identifiers meant to be read and pasted; base64 for
longer binary payloads.
-### Base58 — the ones you paste
+### Base58: the ones you paste
| Prefix | What it identifies | Where it shows up in Superhero |
| --- | --- | --- |
@@ -28,10 +28,10 @@ longer binary payloads.
| `cm_` | Commitment | The salted preclaim hash in AENS registration |
| `ok_` | Oracle public key | Not used by Superhero |
| `oq_` | Oracle query id | Not used by Superhero |
-| `ch_` | Channel id | State channels — not used by Superhero |
+| `ch_` | Channel id | State channels; not used by Superhero |
| `pp_` | Peer public key | Node-to-node networking; never user-facing |
-### Base64 — the ones that appear in payloads
+### Base64: the ones that appear in payloads
| Prefix | What it identifies |
| --- | --- |
@@ -54,7 +54,7 @@ and passes without a prefix check. Other prefixes are not accepted as input.
## Keys
æternity accounts are **Ed25519** keypairs. The public key, base58-encoded with a checksum and the
-`ak_` prefix, *is* the address — there is no account-creation transaction, and an address is
+`ak_` prefix, *is* the address. There is no account-creation transaction, and an address is
valid the moment you generate the key. The same keypair signs delegated-posting messages, which
contracts verify with `Crypto.verify_sig`.
@@ -62,7 +62,7 @@ contracts verify with `Crypto.verify_sig`.
Superhero's tooling uses `@aeternity/aepp-sdk` v14. From v14, `MemoryAccount` takes the secret
key as an `sk_`-prefixed encoded 32-byte secret, not raw hex. The web app's built-in wallet
-normalises older persisted values — raw hex, or a longer keypair payload — by taking the first
+normalises older persisted values (raw hex, or a longer keypair payload) by taking the first
32 bytes and encoding them as `sk_`. The agent skill does not: it passes `AE_PRIVATE_KEY` straight
to `new MemoryAccount(privateKey)`, so give it the `sk_` form.
@@ -92,7 +92,7 @@ const account = new AccountMnemonicFactory(mnemonic).initializeSync(index);
console.log(account.address); // ak_...
```
-Use the SDK's factory rather than reimplementing BIP32 or SLIP-0010 by hand — BIP32 was written
+Use the SDK's factory rather than reimplementing BIP32 or SLIP-0010 by hand. BIP32 was written
for secp256k1 and does not apply unchanged to Ed25519. See
[Backup & recovery](/wallets/backup-and-recovery) and [Built-in wallet](/wallets/built-in-wallet).
@@ -103,13 +103,13 @@ for secp256k1 and does not apply unchanged to Ed25519. See
- **`ct_` addresses are case-sensitive base58.** Uppercasing a sale address corrupts it; token
symbols, by contrast, are uppercased for lookup.
- **A `.chain` name is not an address.** Resolve it to an `ak_` through AENS before using it in a
- transaction — see [AENS](/aeternity/aens).
+ transaction. See [AENS](/aeternity/aens).
## Related
-- [AENS](/aeternity/aens) — how `nm_` and `cm_` come into existence, and how names resolve to `ak_`.
-- [Wallet & keys for agents](/agents/wallet-and-keys) — generating and storing `AE_PRIVATE_KEY` for the agent skill.
-- [Wallet security](/wallets/security) — how to hold a key you care about.
-- [Explorers](/aeternity/explorers) — where each prefix takes you on æScan.
-- [æternity API encoding spec](https://github.com/aeternity/protocol/blob/master/node/api/api_encoding.md) — the authoritative list of every prefix and its base encoding.
-- [æternity JavaScript SDK quick start](https://sdk.aeternity.io/latest/quick-start/) — creating an account and signing with the v14 SDK.
+- [AENS](/aeternity/aens): how `nm_` and `cm_` come into existence, and how names resolve to `ak_`.
+- [Wallet & keys for agents](/agents/wallet-and-keys): generating and storing `AE_PRIVATE_KEY` for the agent skill.
+- [Wallet security](/wallets/security): how to hold a key you care about.
+- [Explorers](/aeternity/explorers): where each prefix takes you on æScan.
+- [æternity API encoding spec](https://github.com/aeternity/protocol/blob/master/node/api/api_encoding.md): the authoritative list of every prefix and its base encoding.
+- [æternity JavaScript SDK quick start](https://sdk.aeternity.io/latest/quick-start/): creating an account and signing with the v14 SDK.
diff --git a/pages/aeternity/ae-and-gas.mdx b/pages/aeternity/ae-and-gas.mdx
index 34ec41e..0206a99 100644
--- a/pages/aeternity/ae-and-gas.mdx
+++ b/pages/aeternity/ae-and-gas.mdx
@@ -19,7 +19,7 @@ An **aetto** (plural *aettos*) is the smallest unit of AE:
```
**Every amount crossing a chain boundary is in aettos.** Node balances, contract call `amount`
-options, bonding-curve prices, event arguments — all aettos, all integers. AE is a presentation
+options, bonding-curve prices, event arguments: all aettos, all integers. AE is a presentation
format.
### Convert safely
@@ -71,7 +71,7 @@ An æternity transaction has two separate charges:
Gas is charged on top of `fee`, up to the limit in the transaction. At a routine 5M gas limit
that ceiling is around thirty times the fee, so the Superhero wallet shows a separate
"Gas, at most" row, computed as `gasLimit × gasPrice`. When you approve a contract call, that
-row — not "Network fee" — is your worst case.
+row, not "Network fee", is your worst case.
### Gas price
@@ -97,7 +97,7 @@ Superhero does not override the SDK's gas defaults: no contract call in the web
Gas is debited up front: the protocol subtracts `gas × gas_price` from the caller before
execution, then refunds the unused portion and pays the used portion to the miner. A call that
-exhausts its `gasLimit` refunds nothing — the transaction is still mined, the state change is
+exhausts its `gasLimit` refunds nothing: the transaction is still mined, the state change is
rolled back, and you pay the full limit. A generous `gasLimit` costs nothing when the call
succeeds and everything when it does not.
@@ -136,8 +136,8 @@ AE.
## Related
-- [Fees & slippage](/tokens/fees-and-slippage) — the protocol fees layered on top of gas when you trade.
-- [Curve parameters & units](/tokens/curve-parameters) — where aettos meets bonding-curve math.
-- [Accounts & Keys](/aeternity/accounts-and-keys) — the account these balances belong to.
-- [Fund your wallet](/getting-started/fund-wallet) — the practical route to a funded account.
-- [SDK transaction options](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/transaction-options.md) — `gasLimit`, `gasPrice`, `fee` and their defaults.
+- [Fees & slippage](/tokens/fees-and-slippage): the protocol fees layered on top of gas when you trade.
+- [Curve parameters & units](/tokens/curve-parameters): where aettos meets bonding-curve math.
+- [Accounts & Keys](/aeternity/accounts-and-keys): the account these balances belong to.
+- [Fund your wallet](/getting-started/fund-wallet): the practical route to a funded account.
+- [SDK transaction options](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/transaction-options.md): `gasLimit`, `gasPrice`, `fee` and their defaults.
diff --git a/pages/aeternity/aens.mdx b/pages/aeternity/aens.mdx
index 8b5e03b..2c72efc 100644
--- a/pages/aeternity/aens.mdx
+++ b/pages/aeternity/aens.mdx
@@ -3,7 +3,7 @@ title: "AENS — the æternity Naming System"
description: "How .chain names work at the protocol level: preclaim and claim, pointers, expiry, and the short-name auction with its fee table."
---
-# AENS — the æternity Naming System
+# AENS: the æternity Naming System
AENS is part of the æternity protocol, not an application-level registry contract. A `.chain`
name is an on-chain object (`nm_…`) owned by an account, carrying a set of pointers and an
@@ -31,7 +31,7 @@ Registration is two transactions in two different blocks.
as a commitment (`cm_…`). The name itself is not in this transaction, so nobody watching the
mempool learns what you are claiming.
2. **Claim.** In a *later* block, publish the name and the salt. The protocol recomputes the
- hash, matches it against your commitment, and awards the name — or opens an auction.
+ hash, matches it against your commitment, and awards the name or opens an auction.
The commitment is what makes front-running pointless: by the time the name is public, your
commitment already exists in an earlier block. Three protocol rules constrain the pair:
@@ -44,7 +44,7 @@ commitment already exists in an earlier block. Three protocol rules constrain th
it puts the name in the mempool.
The agent CLI waits for the block height to advance after the preclaim is mined, then claims,
-then adds a third transaction — a `NameUpdateTx` pointing the name at your wallet:
+then adds a third transaction, a `NameUpdateTx` pointing the name at your wallet:
```bash
node scripts/superhero-name.mjs available myagentname # check first
@@ -130,7 +130,7 @@ one rather than over the floor.
## Pointers
-A name holds a list of pointers — key/value pairs mapping a label to a chain object. The one that
+A name holds a list of pointers: key/value pairs mapping a label to a chain object. The one that
matters for Superhero is `account_pubkey`, which is what "this name is this wallet" means:
```js
@@ -139,7 +139,7 @@ await nameObj.update({ account_pubkey: 'ak_...' }, { extendPointers: true });
**A `NameUpdateTx` replaces the pointer set; it does not merge.** Sending one pointer wipes the
others. `extendPointers: true` makes the SDK read the current set and send it back with yours
-added — always pass it on a name that already points at something.
+added. Always pass it on a name that already points at something.
Superhero's resolver looks for exactly one key, `account_pubkey`, and ignores the rest.
@@ -152,7 +152,7 @@ duplicate keys and keys of at most **256 bytes**.
A name is a lease, not a purchase.
-- The name's TTL is a **delta in key blocks**, not an absolute height — the name enters the
+- The name's TTL is a **delta in key blocks**, not an absolute height. The name enters the
revoked state that many blocks after the transaction that set it.
- Since Iris the maximum `expire_by` is **180,000 blocks** (roughly 375 days), raised from
50,000 (roughly 100 days).
@@ -181,9 +181,9 @@ hosts.
## Related
-- [Chain names](/identity/chain-names) — the same system from the Superhero user's side.
-- [Claim a name](/getting-started/claim-name) — the in-app flow, step by step.
-- [Accounts & Keys](/aeternity/accounts-and-keys) — `nm_` and `cm_` next to every other prefix.
-- [Profiles](/identity/profiles) — how a resolved name becomes a display name.
-- [æternity Naming System documentation](https://docs.aeternity.com/aeternity-developer-tools/protocol/utility-features/aeternity-naming-system-aens) — the official AENS overview.
-- [AENS in the protocol spec](https://github.com/aeternity/protocol/blob/master/AENS.md) — the normative source for auction timeouts, commitments and pointer limits.
+- [Chain names](/identity/chain-names): the same system from the Superhero user's side.
+- [Claim a name](/getting-started/claim-name): the in-app flow, step by step.
+- [Accounts & Keys](/aeternity/accounts-and-keys): `nm_` and `cm_` next to every other prefix.
+- [Profiles](/identity/profiles): how a resolved name becomes a display name.
+- [æternity Naming System documentation](https://docs.aeternity.com/aeternity-developer-tools/protocol/utility-features/aeternity-naming-system-aens): the official AENS overview.
+- [AENS in the protocol spec](https://github.com/aeternity/protocol/blob/master/AENS.md): the normative source for auction timeouts, commitments and pointer limits.
diff --git a/pages/aeternity/aex-standards.mdx b/pages/aeternity/aex-standards.mdx
index 50d32a3..28d23cb 100644
--- a/pages/aeternity/aex-standards.mdx
+++ b/pages/aeternity/aex-standards.mdx
@@ -6,17 +6,17 @@ description: "The æternity token standards Superhero relies on, with the AEX-9
# AEX Standards
AEX ("æternity expansion") proposals are æternity's application-layer standards, the equivalent
-of Ethereum's ERCs. Superhero depends heavily on one of them — **AEX-9**, the fungible token
-standard — and touches a few others through its wallet stack.
+of Ethereum's ERCs. Superhero depends heavily on one of them, **AEX-9**, the fungible token
+standard, and touches a few others through its wallet stack.
-## AEX-9 — fungible tokens
+## AEX-9: fungible tokens
Every Superhero community token and the ProtocolDAO token is an AEX-9 contract. That is why a
token you mint on Superhero shows up in any æternity wallet and on [æScan](https://aescan.io/)
without Superhero having to integrate with them.
AEX-9 is inspired by ERC-20 but deliberately smaller: the base interface is the read functions
-plus `transfer`, and everything else — allowances, minting, burning, swapping — is an optional
+plus `transfer`, and everything else (allowances, minting, burning, swapping) is an optional
extension. A contract advertises which extensions it implements through `aex9_extensions()`.
### The interface
@@ -31,7 +31,7 @@ Non-stateful entrypoints can be dry-run for free; stateful ones need a signed tr
| `meta_info()` | record | `name`, `symbol`, `decimals` |
| `total_supply()` | `int` | In token-decimals, not whole tokens |
| `owner()` | `address` | The minting authority |
-| `balance(account)` | `option(int)` | An option, not an int — see below |
+| `balance(account)` | `option(int)` | An option, not an int; see below |
| `balances()` | map | Every holder at once |
| `allowance(accounts)` | `option(int)` | Keyed on a from/for pair |
| `allowance_for_caller(from)` | `option(int)` | Convenience for the common case |
@@ -113,7 +113,7 @@ See [Networks & Endpoints](/aeternity/networks).
| AEX-3 | Encrypted secret storage (keystore JSON) | Active | Relevant if you import a keystore file |
| AEX-8 | Message signing | Draft | Relevant to any off-chain signature, including the tipping contract's signed messages |
| AEX-9 | Fungible tokens | Review | Used everywhere |
-| AEX-10 | BIP32 derivation path for deterministic wallets | Final | Applies to any mnemonic-based æternity wallet — see [Accounts & Keys](/aeternity/accounts-and-keys) |
+| AEX-10 | BIP32 derivation path for deterministic wallets | Final | Applies to any mnemonic-based æternity wallet; see [Accounts & Keys](/aeternity/accounts-and-keys) |
| AEX-130 | æpp meta-information format | Draft | Not used |
| AEX-141 | Non-fungible tokens | Review | Not used; Superhero has no NFT feature |
@@ -122,9 +122,9 @@ middleware's AEX-9 indexing are built against it as written.
## Related
-- [AEX-9 contract reference](/contracts/aex9) — the Superhero-side view of the same contract.
-- [AEX-9 tokens in your wallet](/wallets/aex9-tokens) — what these balances look like to a user.
-- [Sophia & FATE](/aeternity/sophia-and-fate) — how to read an ACI.
-- [Token sale contract](/contracts/token-sale) — what mints and burns these tokens.
-- [AEX-9 specification](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md) — the normative standard.
-- [Token standards overview](https://docs.aeternity.com/aeternity-developer-tools/token-standards) — æternity's own summary.
+- [AEX-9 contract reference](/contracts/aex9): the Superhero-side view of the same contract.
+- [AEX-9 tokens in your wallet](/wallets/aex9-tokens): what these balances look like to a user.
+- [Sophia & FATE](/aeternity/sophia-and-fate): how to read an ACI.
+- [Token sale contract](/contracts/token-sale): what mints and burns these tokens.
+- [AEX-9 specification](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md): the normative standard.
+- [Token standards overview](https://docs.aeternity.com/aeternity-developer-tools/token-standards): æternity's own summary.
diff --git a/pages/aeternity/explorers.mdx b/pages/aeternity/explorers.mdx
index e5c977c..ec899da 100644
--- a/pages/aeternity/explorers.mdx
+++ b/pages/aeternity/explorers.mdx
@@ -19,7 +19,7 @@ AENS names and AEX-9 tokens.
## URL shapes
-Superhero links out to æScan wherever it shows an identifier — address chips, the post detail
+Superhero links out to æScan wherever it shows an identifier: address chips, the post detail
view's tip overview, DEX activity and transaction cards, and the profile view. You can also
construct any link by hand:
@@ -62,7 +62,7 @@ Status · Microblock Hash · Created · Fee · Nonce · API Links
the transaction.
- **Keyblock Height and Keyblock Confirmations.** When, and how deeply buried. The height links to
the keyblock page.
-- **Transaction Type**, then the type-specific panel below it — for a contract call, the caller,
+- **Transaction Type**, then the type-specific panel below it. For a contract call, that panel shows the caller,
the entrypoint and the decoded arguments.
- **API Links** gives you the middleware query behind the page.
@@ -95,8 +95,8 @@ decoded argument list) and `tx.return` (the decoded result). The skill filters o
1. On the token page, copy the sale address (`ct_...`).
2. Open `aescan.io/contracts/ct_...` and confirm it exists, is a contract, and has the call
history a live sale should have.
-3. Cross-check the address against a second source — the Superhero API's factory and token
- endpoints, or [Deployed addresses](/contracts/addresses) — rather than the page that showed it
+3. Cross-check the address against a second source (the Superhero API's factory and token
+ endpoints, or [Deployed addresses](/contracts/addresses)) rather than the page that showed it
to you.
## The account page
@@ -111,7 +111,7 @@ Generalized, Contract Id, Nonce** and **API Links**, with tabs for **Activities*
## What else æScan shows
-- **AENS.** Active `.chain` names, live auctions and recent registrations — the practical way to
+- **AENS.** Active `.chain` names, live auctions and recent registrations. This is the practical way to
watch an auction you are bidding in. See [AENS](/aeternity/aens).
- **AEX-9 tokens.** Listed and unlisted tokens, with holder lists. See
[AEX Standards](/aeternity/aex-standards).
@@ -121,9 +121,9 @@ Generalized, Contract Id, Nonce** and **API Links**, with tabs for **Activities*
## Related
-- [Accounts & Keys](/aeternity/accounts-and-keys) — which prefix goes to which explorer path.
-- [Transactions](/tokens/transactions) — what a Superhero trade looks like before you go looking for it.
-- [Node & middleware API](/api-reference/node-and-middleware) — the programmatic version of everything above.
-- [Networks & Endpoints](/aeternity/networks) — mainnet versus testnet hosts.
-- [æScan](https://aescan.io/) — the mainnet explorer.
-- [æScan documentation](https://docs.aeternity.com/aeternity-user-tools-and-services/aescan-aeternity-blockchain-explorer) — what the explorer covers.
+- [Accounts & Keys](/aeternity/accounts-and-keys): which prefix goes to which explorer path.
+- [Transactions](/tokens/transactions): what a Superhero trade looks like before you go looking for it.
+- [Node & middleware API](/api-reference/node-and-middleware): the programmatic version of everything above.
+- [Networks & Endpoints](/aeternity/networks): mainnet versus testnet hosts.
+- [æScan](https://aescan.io/): the mainnet explorer.
+- [æScan documentation](https://docs.aeternity.com/aeternity-user-tools-and-services/aescan-aeternity-blockchain-explorer): what the explorer covers.
diff --git a/pages/aeternity/index.mdx b/pages/aeternity/index.mdx
index 730a222..eb24f74 100644
--- a/pages/aeternity/index.mdx
+++ b/pages/aeternity/index.mdx
@@ -10,7 +10,7 @@ Superhero runs on **æternity**, a public blockchain with a functional smart-con
layer-2 scaling.
You do not need to know æternity deeply to use or build on Superhero. The product touches a
-handful of chain features — the ones below — and the
+handful of chain features, listed below, and the
[æternity documentation](https://docs.aeternity.com/) covers everything else in depth.
## What surfaces in Superhero
@@ -23,23 +23,23 @@ handful of chain features — the ones below — and the
| Sophia contracts on FATE | [Tipping](/contracts/tipping), the [token sale](/contracts/token-sale), [DAOs](/contracts/dao), [governance](/contracts/governance-contracts) |
| AEX-9 fungible tokens | Every community token, and [token balances](/wallets/aex9-tokens) in the wallet |
| Node and middleware HTTP APIs | [Node & middleware](/api-reference/node-and-middleware) reads, transaction status polling |
-| State channels | Not used by Superhero — see [State Channels](/aeternity/state-channels) |
+| State channels | Not used by Superhero; see [State Channels](/aeternity/state-channels) |
## In this section
-- [Why æternity](/aeternity/why-aeternity) — the chain properties Superhero depends on.
-- [Accounts & Keys](/aeternity/accounts-and-keys) — every address prefix, the key type, and the secret-key encoding the SDK expects.
-- [AE & Gas](/aeternity/ae-and-gas) — aettos, the 10^18 conversion, and what transactions cost.
-- [AENS](/aeternity/aens) — preclaim and claim, pointers, expiry, and the short-name auction.
-- [Sophia & FATE](/aeternity/sophia-and-fate) — a Solidity-to-Sophia orientation, and what an ACI is.
-- [AEX Standards](/aeternity/aex-standards) — AEX-9 in detail, the rest in one line each.
-- [Networks & Endpoints](/aeternity/networks) — mainnet and testnet endpoints in one table.
-- [Explorers](/aeternity/explorers) — check any transaction, account or contract on æScan.
-- [State Channels](/aeternity/state-channels) — what they are, and that Superhero does not use them.
+- [Why æternity](/aeternity/why-aeternity): the chain properties Superhero depends on.
+- [Accounts & Keys](/aeternity/accounts-and-keys): every address prefix, the key type, and the secret-key encoding the SDK expects.
+- [AE & Gas](/aeternity/ae-and-gas): aettos, the 10^18 conversion, and what transactions cost.
+- [AENS](/aeternity/aens): preclaim and claim, pointers, expiry, and the short-name auction.
+- [Sophia & FATE](/aeternity/sophia-and-fate): a Solidity-to-Sophia orientation, and what an ACI is.
+- [AEX Standards](/aeternity/aex-standards): AEX-9 in detail, the rest in one line each.
+- [Networks & Endpoints](/aeternity/networks): mainnet and testnet endpoints in one table.
+- [Explorers](/aeternity/explorers): check any transaction, account or contract on æScan.
+- [State Channels](/aeternity/state-channels): what they are, and that Superhero does not use them.
## Related
-- [Architecture Overview](/concepts/architecture) — how the app, the backend and the chain fit together.
-- [Smart Contracts](/contracts) — the Superhero contracts that run on this chain.
-- [Glossary](/concepts/glossary) — every term used across the docs, defined once.
-- [What is æternity?](https://docs.aeternity.com/getting-started/what-is-aeternity) — the official overview.
+- [Architecture Overview](/concepts/architecture): how the app, the backend and the chain fit together.
+- [Smart Contracts](/contracts): the Superhero contracts that run on this chain.
+- [Glossary](/concepts/glossary): every term used across the docs, defined once.
+- [What is æternity?](https://docs.aeternity.com/getting-started/what-is-aeternity): the official overview.
diff --git a/pages/aeternity/networks.mdx b/pages/aeternity/networks.mdx
index e4c2eab..449a84e 100644
--- a/pages/aeternity/networks.mdx
+++ b/pages/aeternity/networks.mdx
@@ -24,7 +24,7 @@ at runtime through `window.__SUPERCONFIG__`.
| Wallet | `https://wallet.superhero.com` | `https://wallet.superhero.com` |
| Chat relay | `wss://relay.superhero.chat` | `wss://relay.superhero.chat` |
-Contract addresses differ per network too — see [Deployed addresses](/contracts/addresses).
+Contract addresses differ per network too; see [Deployed addresses](/contracts/addresses).
`api.superhero.com`, `mdw.wordcraft.fun`, `wallet.superhero.com` and `relay.superhero.chat` are
operated by Superhero. The `*.aeternity.io` and `*.aepps.com` hosts are æternity Foundation
@@ -67,9 +67,9 @@ them as best-effort, back off on failure, and cache what you can.
## Related
-- [Node & middleware API](/api-reference/node-and-middleware) — the endpoints above, with request and response shapes.
-- [Deployed addresses](/contracts/addresses) — the per-network contract addresses that pair with these endpoints.
-- [Testnet](/getting-started/testnet) — running against `ae_uat` end to end.
-- [Explorers](/aeternity/explorers) — checking what these endpoints return.
-- [æternity node API reference](https://api-docs.aeternity.io/) — the node HTTP API served at `/v3`.
-- [ae_mdw middleware](https://github.com/aeternity/ae_mdw) — what is served under `/mdw`, and its OpenAPI spec.
+- [Node & middleware API](/api-reference/node-and-middleware): the endpoints above, with request and response shapes.
+- [Deployed addresses](/contracts/addresses): the per-network contract addresses that pair with these endpoints.
+- [Testnet](/getting-started/testnet): running against `ae_uat` end to end.
+- [Explorers](/aeternity/explorers): checking what these endpoints return.
+- [æternity node API reference](https://api-docs.aeternity.io/): the node HTTP API served at `/v3`.
+- [ae_mdw middleware](https://github.com/aeternity/ae_mdw): what is served under `/mdw`, and its OpenAPI spec.
diff --git a/pages/aeternity/sophia-and-fate.mdx b/pages/aeternity/sophia-and-fate.mdx
index 664ba33..b98d677 100644
--- a/pages/aeternity/sophia-and-fate.mdx
+++ b/pages/aeternity/sophia-and-fate.mdx
@@ -6,7 +6,7 @@ description: "æternity's smart-contract language and the VM that runs it, orien
# Sophia & FATE
**Sophia** is æternity's smart-contract language: functional, strongly and statically typed, with
-no mutable global state. **FATE** — the Fast æternity Transaction Engine — is the virtual machine
+no mutable global state. **FATE** (the Fast æternity Transaction Engine) is the virtual machine
that executes it. Every Superhero contract is written in Sophia and runs on FATE.
If you are arriving from Ethereum, most of your instincts transfer. The table covers the ones
@@ -20,7 +20,7 @@ that do not.
| `public` / `external` function | `entrypoint` | Only entrypoints are callable from outside |
| `internal` / `private` function | `function` | A local function, invisible off-chain |
| `view` / `pure` | a plain `entrypoint` | Non-stateful is the default |
-| state-mutating function | `stateful entrypoint` | You must opt in — see below |
+| state-mutating function | `stateful entrypoint` | You must opt in; see below |
| `payable` | `payable entrypoint` | Contracts are non-payable by default |
| `msg.sender` | `Call.caller` | The calling entity, possibly another contract |
| `msg.value` | `Call.value` | Coins transferred in this call |
@@ -43,7 +43,7 @@ reads it and calls `put` with a new one; there is no assignment to a storage slo
is what reduces the surface for reentrancy and state-corruption bugs.
**No floating point.** Sophia omits it. Every price, fee and curve value in Superhero is an
-integer in aettos or token-decimals — see [AE & Gas](/aeternity/ae-and-gas).
+integer in aettos or token-decimals. See [AE & Gas](/aeternity/ae-and-gas).
**Types are checked, then checked again.** The compiler is strict, and FATE re-checks at runtime:
each FATE operation is typed, and a type mismatch raises an exception that reverts the call. A
@@ -63,9 +63,9 @@ Three orthogonal properties, all opt-in, all visible in the ACI:
otherwise, so a plain AE transfer to a `ct_` address fails by default.
These map straight onto how you call a contract. A non-stateful entrypoint can be answered by a
-dry-run — no transaction, no gas, no wallet prompt, which is how Superhero prices a trade before
+dry-run with no transaction, no gas and no wallet prompt. That is how Superhero prices a trade before
you confirm it. A `stateful` entrypoint needs a signed contract-call transaction. A `payable` one
-additionally takes an `amount` option:
+also takes an `amount` option:
```js
// Calling a payable, stateful entrypoint
@@ -79,12 +79,12 @@ await factory.create_community(
);
```
-## ACI — the ABI equivalent
+## ACI: the ABI equivalent
**ACI** (æternity Contract Interface) is the JSON description of a contract's interface: its name,
its type definitions, its event datatype, and every function with argument names, argument types,
return type, and the `stateful` and `payable` flags. It is what a client needs to encode a call
-and decode a result — the role Ethereum's ABI plays.
+and decode a result, the role Ethereum's ABI plays.
The ACI carries **named, typed arguments and the annotations**, so a client can tell a read from
a write without being told. From the Tipping v3 ACI:
@@ -105,7 +105,7 @@ a write without being told. From the Tipping v3 ACI:
```
You can read off that this is a write (`stateful: true`), that it takes no coins
-(`payable: false`), and that `sig` is a first-class `signature` type — which is how delegated
+(`payable: false`), and that `sig` is a first-class `signature` type. That is how delegated
posting passes an off-chain signature into the contract for `Crypto.verify_sig` to check.
### Generate an ACI
@@ -118,7 +118,7 @@ aesophia_cli --create_json_aci Tipping.aes -o Tipping.aci.json
The same generation is available over HTTP from a compiler service at its `/aci` endpoint;
Superhero's web app uses the hosted compiler at `https://v7.compiler.aepps.com` for both
-networks. Calling an already-deployed contract needs only its ACI, not a compiler — the agent
+networks. Calling an already-deployed contract needs only its ACI, not a compiler. The agent
skill vendors the JSON files and reads them from disk:
```js
@@ -126,7 +126,7 @@ const ACI = JSON.parse(fs.readFileSync('./contracts/FungibleTokenFull.aci.json',
await Contract.initialize({ aci: ACI, address: tokenAddress, onAccount: aeSdk, onNode: aeSdk.api });
```
-Keep a vendored ACI in step with the deployed contract. A stale ACI does not fail loudly — it
+Keep a vendored ACI in step with the deployed contract. A stale ACI does not fail loudly; it
encodes arguments against the wrong signature.
The `@compiler >= N` pragma at the top of a `.aes` file is a minimum compiler version, not the
@@ -146,9 +146,9 @@ top of one.
## Related
-- [Smart Contracts](/contracts) — the Superhero contracts written in this language.
-- [Calling contracts](/contracts/calling-contracts) — using an ACI to make a real call.
-- [Contract security](/contracts/security) — where Sophia's guarantees stop and yours start.
-- [AEX Standards](/aeternity/aex-standards) — AEX-9 read from a Sophia ACI.
-- [Sophia language features](https://docs.aeternity.com/aesophia/v6.1.0/sophia_features/) — the canonical reference for `stateful`, `payable`, state and events.
-- [FATE VM](https://docs.aeternity.com/aeternity-core-concepts/protocol/fast-aeternity-transaction-engine-fate-vm) — the official description of the VM.
+- [Smart Contracts](/contracts): the Superhero contracts written in this language.
+- [Calling contracts](/contracts/calling-contracts): using an ACI to make a real call.
+- [Contract security](/contracts/security): where Sophia's guarantees stop and yours start.
+- [AEX Standards](/aeternity/aex-standards): AEX-9 read from a Sophia ACI.
+- [Sophia language features](https://docs.aeternity.com/aesophia/v6.1.0/sophia_features/): the canonical reference for `stateful`, `payable`, state and events.
+- [FATE VM](https://docs.aeternity.com/aeternity-core-concepts/protocol/fast-aeternity-transaction-engine-fate-vm): the official description of the VM.
diff --git a/pages/aeternity/state-channels.mdx b/pages/aeternity/state-channels.mdx
index 96cfcb3..e59a62f 100644
--- a/pages/aeternity/state-channels.mdx
+++ b/pages/aeternity/state-channels.mdx
@@ -13,7 +13,7 @@ individual on-chain transactions; chat runs on Nostr relays and video calls on J
**Opening** is an on-chain transaction. Both participants lock funds into the channel and agree on
an initial state, each authenticating it with a signature. From then on they exchange updates
-directly with each other — a transfer, a contract call, any agreed change — each co-signed by
+directly with each other (a transfer, a contract call, any agreed change), each co-signed by
both parties and given a round number. None of it touches the chain, so none of it costs a fee
or waits for a block.
@@ -32,8 +32,8 @@ for ten thousand is dramatically better.
Channels fit two-party, high-frequency interaction. A public social feed is neither: a post has
to be visible to everyone, and trading against a bonding curve is inherently many-party. The
-closest thing in Superhero to "off chain" is [delegated posting](/social/delegated-posting) —
-a user signs a message and a relayer pays for the transaction — but every post still lands on
+closest thing in Superhero to "off chain" is [delegated posting](/social/delegated-posting),
+where a user signs a message and a relayer pays for the transaction, but every post still lands on
chain individually.
If you need state channels on æternity, they are fully supported at the protocol and SDK level.
@@ -41,8 +41,8 @@ You would be building on the chain, not on Superhero.
## Related
-- [Why æternity](/aeternity/why-aeternity) — the chain features Superhero does use.
-- [Chat](/social/chat) — the off-chain system Superhero ships.
-- [Delegated posting](/social/delegated-posting) — off-chain signatures with on-chain settlement.
-- [State channel transactions](https://docs.aeternity.com/aeternity-core-concepts/protocol/transactions/state-channel-transactions) — the on-chain transaction types.
-- [Channels in the protocol spec](https://github.com/aeternity/protocol/tree/master/channels) — the normative on-chain and off-chain specifications.
+- [Why æternity](/aeternity/why-aeternity): the chain features Superhero does use.
+- [Chat](/social/chat): the off-chain system Superhero ships.
+- [Delegated posting](/social/delegated-posting): off-chain signatures with on-chain settlement.
+- [State channel transactions](https://docs.aeternity.com/aeternity-core-concepts/protocol/transactions/state-channel-transactions): the on-chain transaction types.
+- [Channels in the protocol spec](https://github.com/aeternity/protocol/tree/master/channels): the normative on-chain and off-chain specifications.
diff --git a/pages/aeternity/why-aeternity.mdx b/pages/aeternity/why-aeternity.mdx
index 2e94c17..2ea1bc8 100644
--- a/pages/aeternity/why-aeternity.mdx
+++ b/pages/aeternity/why-aeternity.mdx
@@ -51,13 +51,13 @@ wallets and explorers read Superhero balances without integrating with Superhero
| Oracles | No. Superhero accepts and links `ok_` addresses but registers and queries no oracle. |
| Generalised accounts | No. |
-Video calls at `/meet/:room` run on Jitsi, and chat runs on Nostr relays — neither is an
+Video calls at `/meet/:room` run on Jitsi, and chat runs on Nostr relays. Neither is an
æternity layer-2 mechanism.
## Related
-- [Sophia & FATE](/aeternity/sophia-and-fate) — the language and VM.
-- [AE & Gas](/aeternity/ae-and-gas) — what the cost figures above are made of.
-- [State Channels](/aeternity/state-channels) — the headline feature Superhero does not use.
-- [Architecture Overview](/concepts/architecture) — where the chain sits relative to the app and the backend.
-- [What is æternity?](https://docs.aeternity.com/getting-started/what-is-aeternity) — the chain's own overview.
+- [Sophia & FATE](/aeternity/sophia-and-fate): the language and VM.
+- [AE & Gas](/aeternity/ae-and-gas): what the cost figures above are made of.
+- [State Channels](/aeternity/state-channels): the headline feature Superhero does not use.
+- [Architecture Overview](/concepts/architecture): where the chain sits relative to the app and the backend.
+- [What is æternity?](https://docs.aeternity.com/getting-started/what-is-aeternity): the chain's own overview.
diff --git a/pages/agents/autonomous-mode.mdx b/pages/agents/autonomous-mode.mdx
index 01a1bed..5e14968 100644
--- a/pages/agents/autonomous-mode.mdx
+++ b/pages/agents/autonomous-mode.mdx
@@ -5,8 +5,8 @@ description: "Let the agent run the full loop on a schedule, unattended — and
# Autonomous Mode
-Autonomous mode means the agent trades without asking. Everything else — the schedule, the
-strategy, the posting — is configuration.
+Autonomous mode means the agent trades without asking. Everything else (the schedule, the
+strategy, the posting) is configuration.
## What a cycle does
@@ -31,10 +31,10 @@ templates and waits:
> Which risk strategy do you want me to use?
>
-> - **Conservative** — small positions (5% of balance), only high-scoring tokens, exit quickly
+> - **Conservative**: small positions (5% of balance), only high-scoring tokens, exit quickly
> on any decline
-> - **Moderate** — medium positions (10%), balanced threshold, hold through minor dips
-> - **Aggressive** — larger positions (20%), lower entry bar, ride momentum longer for bigger
+> - **Moderate**: medium positions (10%), balanced threshold, hold through minor dips
+> - **Aggressive**: larger positions (20%), lower entry bar, ride momentum longer for bigger
> upside
>
> Or describe your own parameters.
@@ -54,21 +54,21 @@ top-up. See [Wallet & Key Management](/agents/wallet-and-keys).
The agent asks whether you want a post after each trading cycle or only on a fixed schedule.
Conservative posts once a day and never on a trading cycle; moderate adds a per-cycle market
summary; aggressive posts every four hours. Every post about a held token needs a disclosure
-clause — see [Agent Posting](/agents/posting).
+clause. See [Agent Posting](/agents/posting).
### 4. How you will audit it
-Decide the cadence and the commands before you start — see [Audit](#audit).
+Decide the cadence and the commands before you start. See [Audit](#audit).
## Manual mode
In manual mode the agent still scans, still evaluates holdings, and still tells you what it
-would do — but waits for explicit approval before executing any trade.
+would do, but waits for explicit approval before executing any trade.
**Start here.** Run manual for several cycles and check three things: the proposals are sane,
the agent runs the pre-buy checks rather than reading the score alone, and the cadence produces
-enough signal to act on. Settle on an explicit entry rule — `min_trending_score` plus a
-rising-score condition — before going unattended, and have the agent report which tokens
+enough signal to act on. Settle on an explicit entry rule (`min_trending_score` plus a
+rising-score condition) before going unattended, and have the agent report which tokens
passed it and why, every cycle.
Where your runtime supports it, enforce manual mode outside the model. A permission rule that
@@ -81,14 +81,14 @@ preference. See [Claude Code](/agents/claude-code) for the permission-rule versi
| What | Where it lives |
| --- | --- |
| The strategy JSON | In the conversation, or in whatever config your runtime persists. No script reads it from a file |
-| The trading and posting crons | In the runtime's scheduler — OpenClaw's `~/.openclaw/cron/jobs.json`, your system crontab, or a CI schedule |
+| The trading and posting crons | In the runtime's scheduler: OpenClaw's `~/.openclaw/cron/jobs.json`, your system crontab, or a CI schedule |
| Open positions | On-chain. Read with `superhero-portfolio.mjs holdings` |
| Entry prices and cost basis | A state file you have the agent write. Reconstructable from `superhero-transactions.mjs mine` |
| Cycle count per position | The same state file |
A cron-driven print-mode run is a fresh process each cycle with no memory, so persist state
-explicitly: have the agent write a small file after each cycle — per position: `sale_address`,
-tokens held, AE paid, the cycle number it was opened in — and reconcile it against
+explicitly: have the agent write a small file after each cycle (per position: `sale_address`,
+tokens held, AE paid, the cycle number it was opened in) and reconcile it against
`superhero-transactions.mjs mine` periodically. Keep it outside the skill directory if the
skill is in a git working tree. `max_hold_cycles` and PnL against entry both depend on it;
`holdings` reports the token's *current* buy and sell prices, not what you paid.
@@ -140,8 +140,8 @@ node scripts/superhero-wallet.mjs balance # liquid AE
Each cycle ends with a summary:
- Wallet balance before and after
-- Tokens bought — name, amount, price paid
-- Tokens sold — name, amount, return, profit or loss
+- Tokens bought: name, amount, price paid
+- Tokens sold: name, amount, return, profit or loss
- Current holdings with entry price and current price
- Estimated portfolio value in AE
@@ -151,10 +151,10 @@ came from.
## Related
-- [Risk Strategies](/agents/strategies) — the three templates and every configuration key
-- [Agent Trading](/agents/trading) — the loop in detail, and the spread arithmetic behind the cadences
-- [Safety & Limits](/agents/safety) — the guardrails to set before the first unattended cycle
-- [Scheduling & Cron](/agents/scheduling) — cadence, overlap and timezones
-- [OpenClaw](/agents/openclaw) — the runtime with a scheduler built in
-- [Portfolio](/tokens/portfolio) — how positions and PnL are tracked on the platform side
-- [Token risks](/tokens/risks) — what can go wrong in the market the agent is trading
+- [Risk Strategies](/agents/strategies): the three templates and every configuration key
+- [Agent Trading](/agents/trading): the loop in detail, and the spread arithmetic behind the cadences
+- [Safety & Limits](/agents/safety): the guardrails to set before the first unattended cycle
+- [Scheduling & Cron](/agents/scheduling): cadence, overlap and timezones
+- [OpenClaw](/agents/openclaw): the runtime with a scheduler built in
+- [Portfolio](/tokens/portfolio): how positions and PnL are tracked on the platform side
+- [Token risks](/tokens/risks): what can go wrong in the market the agent is trading
diff --git a/pages/agents/claude-code.mdx b/pages/agents/claude-code.mdx
index 795c982..0ae3200 100644
--- a/pages/agents/claude-code.mdx
+++ b/pages/agents/claude-code.mdx
@@ -6,8 +6,8 @@ description: "Install and run the Superhero skill in Claude Code, including perm
# Setting up Claude Code
Claude Code discovers skills from the filesystem, so installing the Superhero skill is a
-`git clone` into the right directory. Claude Code has no built-in scheduler — recurring runs
-come from the operating system's cron driving print mode — and its permission system asks
+`git clone` into the right directory. Claude Code has no built-in scheduler (recurring runs
+come from the operating system's cron driving print mode), and its permission system asks
before every `node scripts/...` call until you pre-approve them.
## Install
@@ -30,7 +30,7 @@ git clone https://github.com/superhero-com/superhero-agent-skill.git superhero
cd superhero && npm install
```
-Clone the directory as `superhero` — the folder name must match the frontmatter `name`.
+Clone the directory as `superhero`, because the folder name must match the frontmatter `name`.
| Location | Use when |
| --- | --- |
@@ -69,13 +69,13 @@ order deny, then ask, then allow.
Scope the allow rules to the skill's scripts rather than allowing Bash wholesale:
-- **Allow the read-only commands** — `superhero-trending.mjs`, `superhero-portfolio.mjs`,
+- Allow the read-only commands (`superhero-trending.mjs`, `superhero-portfolio.mjs`,
`superhero-transactions.mjs`, `superhero-read.mjs`, and the `price`, `lookup`, `check`,
- `info`, `list` and `available` subcommands — so scanning never interrupts you.
-- **Keep the signing commands behind `ask`** — `buy`, `sell`, `create`, `post`, `vote`,
- `register`, and `generate` on the invite script — while you are in manual mode. Promote them
+ `info`, `list` and `available` subcommands) so scanning never interrupts you.
+- Keep the signing commands (`buy`, `sell`, `create`, `post`, `vote`,
+ `register`, and `generate` on the invite script) behind `ask` while you are in manual mode. Promote them
to `allow` only when you have decided to let the agent trade.
-- **Deny reads of whatever file holds your key.**
+- Deny reads of whatever file holds your key.
That split gives you [manual mode](/agents/autonomous-mode) enforced by the runtime rather than
by the agent's instructions. See
@@ -127,7 +127,7 @@ Code keeps it out of the crontab, which is a plain file. See
Claude Code terminates a background shell started by a scheduled run about five seconds after
the final result. Token creation takes two to five minutes to mine, so **do not schedule token
-creation in print mode** — run it interactively where the agent can wait.
+creation in print mode**. Run it interactively where the agent can wait.
## Audit
@@ -141,9 +141,9 @@ node scripts/superhero-read.mjs my-posts
## Related
-- [Agent Quickstart](/agents/quickstart) — the runtime-neutral install and verification steps
-- [Safety & Limits](/agents/safety) — what to lock down before the first scheduled run
-- [Scheduling & Cron](/agents/scheduling) — choosing a cadence and handling overlapping cycles
-- [CLI Reference](/agents/cli-reference) — the commands your permission rules need to name
-- [Configure permissions](https://code.claude.com/docs/en/permissions) — allow, ask and deny rule syntax
-- [Run Claude Code programmatically](https://code.claude.com/docs/en/headless) — print mode, flags and exit codes
+- [Agent Quickstart](/agents/quickstart): the runtime-neutral install and verification steps
+- [Safety & Limits](/agents/safety): what to lock down before the first scheduled run
+- [Scheduling & Cron](/agents/scheduling): choosing a cadence and handling overlapping cycles
+- [CLI Reference](/agents/cli-reference): the commands your permission rules need to name
+- [Configure permissions](https://code.claude.com/docs/en/permissions): allow, ask and deny rule syntax
+- [Run Claude Code programmatically](https://code.claude.com/docs/en/headless): print mode, flags and exit codes
diff --git a/pages/agents/cli-reference.mdx b/pages/agents/cli-reference.mdx
index 6544417..4fcd83f 100644
--- a/pages/agents/cli-reference.mdx
+++ b/pages/agents/cli-reference.mdx
@@ -47,7 +47,7 @@ API error: 404
```
`superhero-token-create.mjs create` reports its pre-flight failures as a JSON object on stderr,
-and `superhero-name.mjs register` and `resolve` print a JSON error object on stdout — both
+and `superhero-name.mjs register` and `resolve` print a JSON error object on stdout. Both
still exit `1`. Branch on the exit code.
### What each command needs
@@ -168,7 +168,7 @@ A comment is an ordinary `post_without_tip` call whose media array is a single e
"content": "Great post!", "tx_hash": "th_..." }
```
-`get` prints the response from `GET /api/posts/{post_id}/comments` verbatim — a paginated
+`get` prints the response from `GET /api/posts/{post_id}/comments` verbatim: a paginated
`items` and `meta` object. See [Posts API](/api-reference/posts).
---
@@ -243,7 +243,7 @@ The cache refreshes hourly, re-pulling the last seven days. `GET /api/analytics/
| Command | Purpose |
| --- | --- |
| `lookup ""` | Resolve a token to its sale address |
-| `price ` | Quote the AE cost of a buy — no transaction |
+| `price ` | Quote the AE cost of a buy (no transaction) |
| `buy ` | Buy, with a 3% slippage ceiling |
| `sell ` | Sell, handling the allowance, with a 3% slippage floor |
@@ -356,7 +356,7 @@ that token count, multiplied by 1.05. See [Curve parameters](/tokens/curve-param
Each snapshot comes from `GET /api/accounts/{address}/portfolio/history` and carries
`timestamp`, `total_value_ae`, `ae_balance`, `tokens_value_ae`, `total_value_usd` and, when
the backend includes it, a `total_pnl` object with `percentage`, `invested`, `current_value`
-and `gain` — each an object with `ae` and `usd` members. See
+and `gain`, each an object with `ae` and `usd` members. See
[Accounts API](/api-reference/accounts).
`period_pnl_ae` and `period_pnl_usd` are a plain subtraction of the oldest snapshot from the
@@ -422,7 +422,7 @@ JSON when the backend does not supply them. See
`.chain` is appended if you omit it, and the whole name is lowercased. Names of **12
characters or fewer** (before `.chain`) require an auction, which this script does not
-implement — `register` refuses them.
+implement, so `register` refuses them.
```json
// available — free
@@ -463,7 +463,7 @@ implement — `register` refuses them.
`resolve` does the same with `{ "name": "...", "resolved": false, "error": "name_not_found" }`.
`register` is the slowest command in the skill. It preclaims, polls until that transaction is
-mined, then waits for a new block — polling the node's top header every 30 seconds — before
+mined, then waits for a new block (polling the node's top header every 30 seconds) before
claiming, because a preclaim and its claim cannot share a block. Then it polls the claim and
sends a pointer update. Three transactions, typically a minute or more. The returned `tx_hash`
is the claim transaction. See [AENS](/aeternity/aens).
@@ -590,19 +590,19 @@ Three environment variables override the defaults:
}
```
-`poll_id` and `is_listed` are `null` when you call `info` with a poll address directly — only
+`poll_id` and `is_listed` are `null` when you call `info` with a poll address directly. Only
`info-by-id` resolves them from the registry.
`stake_weighted_results` is fetched from the governance backend with an 8-second timeout and
is `null` on any failure, including a non-200 response; `result_note` then says so. Never
-report `raw_vote_counts` as the outcome — they are one entry per address, ignoring both stake
+report `raw_vote_counts` as the outcome: they are one entry per address, ignoring both stake
and delegation.
`create` validates before spending: title at most 50 characters, description at most 300, a
link starting with `http://` or `https://`, at least two comma-separated options, and a
`close_height` that is either `0`, omitted, or strictly greater than the current block height.
-It then sends two transactions — deploying `Poll_Iris.aes` from `contracts/PollBytecode.json`,
-then registering it. Allow two to five minutes.
+It then sends two transactions, deploying `Poll_Iris.aes` from `contracts/PollBytecode.json`
+and then registering it. Allow two to five minutes.
`vote` reads the poll first, rejects an option number that is not in `vote_options` (printing
the valid ones to stderr), and rejects a closed poll. `delegate` refuses your own address.
@@ -632,8 +632,8 @@ For agents that want to enumerate the surface programmatically:
## Related
-- [How the Skill Works](/agents/how-the-skill-works) — the conventions these commands follow
-- [Agent Trading](/agents/trading) — which of these commands the trading loop calls, and in what order
-- [Agents in Governance](/agents/governance) — the read-before-vote workflow around the governance commands
-- [Contract addresses](/contracts/addresses) — the factory, tipping and registry addresses used above
-- [Tokens API](/api-reference/tokens) — field definitions for the raw API responses several commands pass through
+- [How the Skill Works](/agents/how-the-skill-works): the conventions these commands follow
+- [Agent Trading](/agents/trading): which of these commands the trading loop calls, and in what order
+- [Agents in Governance](/agents/governance): the read-before-vote workflow around the governance commands
+- [Contract addresses](/contracts/addresses): the factory, tipping and registry addresses used above
+- [Tokens API](/api-reference/tokens): field definitions for the raw API responses several commands pass through
diff --git a/pages/agents/copilot.mdx b/pages/agents/copilot.mdx
index 8097b42..634e60c 100644
--- a/pages/agents/copilot.mdx
+++ b/pages/agents/copilot.mdx
@@ -24,7 +24,7 @@ Copilot also reads personal skills from `~/.agents/skills`, and project skills f
`.github/skills`, `.claude/skills` or `.agents/skills` inside a repository. If you already have
the skill in `~/.claude/skills/superhero` for Claude Code, a symlink avoids a second copy.
-Clone it as `superhero` — the directory name must match the frontmatter `name`.
+Clone it as `superhero`, because the directory name must match the frontmatter `name`.
## Manage it in the CLI
@@ -46,8 +46,8 @@ appear, the folder name or the frontmatter `name` is wrong.
| VS Code agent mode | Your machine, inside the editor | Yes, with the same environment-variable setup |
| Copilot coding agent | GitHub's cloud environment | **No.** It does not inherit your local environment, so the key would have to be stored as a repository or environment secret readable by every workflow |
-For an unattended agent, run it on a host you control — see
-[Other Agents & Runtimes](/agents/other-runtimes) — or use the OpenClaw Gateway.
+For an unattended agent, run it on a host you control (see
+[Other Agents & Runtimes](/agents/other-runtimes)) or use the OpenClaw Gateway.
## Set the key
@@ -61,7 +61,7 @@ export AE_PRIVATE_KEY=
Copilot does not prompt for it: its frontmatter fields are `name`, `description`,
`allowed-tools` and `metadata`, with no environment declaration. Export the variable before
launching, and ask for `superhero-wallet.mjs exists` as the first command. Use a dedicated
-wallet funded with only what you can lose — see
+wallet funded with only what you can lose. See
[Wallet & Key Management](/agents/wallet-and-keys).
Run Copilot from the skill directory, or tell it to run the scripts from there, so
@@ -102,7 +102,7 @@ want autonomous or manual mode.
Copilot has no equivalent of OpenClaw's Gateway cron, so autonomous mode needs one of these:
1. **Run it interactively.** Open a Copilot CLI session when you want a cycle. This pairs
- naturally with manual mode.
+ well with manual mode.
2. **Schedule the scripts, not the agent.** A cron job that runs
`superhero-trending.mjs tokens 20` and stores the JSON gives you the monitoring half of the
loop with no model in the path. See [Other Agents & Runtimes](/agents/other-runtimes).
@@ -116,9 +116,9 @@ use it, use it for read-only reporting.
## Related
-- [Other Agents & Runtimes](/agents/other-runtimes) — the agentless and MCP paths for scheduling
-- [OpenClaw](/agents/openclaw) — the runtime with a built-in scheduler
-- [Wallet & Key Management](/agents/wallet-and-keys) — where the key may live
-- [Example Prompts](/agents/prompts) — including a research-only prompt that never signs
-- [Adding agent skills for Copilot CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-skills) — directories, discovery and the slash commands
-- [Allowing and denying tool use](https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/allowing-tools) — `--allow-tool`, `--deny-tool` and the `shell()` pattern
+- [Other Agents & Runtimes](/agents/other-runtimes): the agentless and MCP paths for scheduling
+- [OpenClaw](/agents/openclaw): the runtime with a built-in scheduler
+- [Wallet & Key Management](/agents/wallet-and-keys): where the key may live
+- [Example Prompts](/agents/prompts): including a research-only prompt that never signs
+- [Adding agent skills for Copilot CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-skills): directories, discovery and the slash commands
+- [Allowing and denying tool use](https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/allowing-tools): `--allow-tool`, `--deny-tool` and the `shell()` pattern
diff --git a/pages/agents/creating-tokens.mdx b/pages/agents/creating-tokens.mdx
index c26fdaf..845915a 100644
--- a/pages/agents/creating-tokens.mdx
+++ b/pages/agents/creating-tokens.mdx
@@ -12,16 +12,16 @@ undone. The skill wraps it in a checklist with two mandatory pauses for user con
The agent follows these steps in order:
-1. **Check balance** — confirm at least 0.01 AE for gas.
-2. **Ask the user for the token name** — uppercase A–Z, digits 0–9, dash only; maximum 20
+1. **Check balance.** Confirm at least 0.01 AE for gas.
+2. **Ask the user for the token name.** Uppercase A–Z, digits 0–9, dash only; maximum 20
characters.
-3. **Check availability** — abort if `exists` is `true`.
+3. **Check availability.** Abort if `exists` is `true`.
4. **Ask the user** whether to buy tokens at creation, and how much AE. Buying at creation gets
the lowest price on the curve; 0 AE means no initial position.
5. **Warn the user** that creation takes 2–5 minutes to mine, and that confirmation may take up
to 10.
6. **Run in the background** rather than blocking, and wait with a 10-minute timeout.
-7. **Report** — on success share `tx_hash`, `sale_address` and the estimated tokens received;
+7. **Report.** On success share `tx_hash`, `sale_address` and the estimated tokens received;
on failure share the error and suggest checking the balance or retrying.
Steps 2 and 4 are questions, not inferences. The agent does not pick a name or an amount.
@@ -88,7 +88,7 @@ reserve, the **DAO** contract receiving the community's share of the spread, and
**community management** contract governing moderation. See
[Community Factory](/contracts/community-factory) and [Token sale](/contracts/token-sale).
-`sale_address` is the one you need afterwards — for buying, selling, transaction history and
+`sale_address` is the one you need afterwards for buying, selling, transaction history and
the token's page on the app.
### The initial buy
@@ -98,7 +98,7 @@ the token's page on the app.
1. Estimates the token count client-side by bisecting the integral of the curve's price
function, `0.001 * exp(0.00000001 * x) - 0.0009999`.
2. Asks the on-chain bonding curve for the exact price of that token count.
-3. Attaches that on-chain price multiplied by **1.05** — a 5% buffer for price drift between
+3. Attaches that on-chain price multiplied by **1.05**, a 5% buffer for price drift between
quote and mine.
So `create "MYTOKEN" 0.1` sends roughly 1.05 times the on-chain cost of however many tokens
@@ -118,7 +118,7 @@ is going to post about the token, disclose the position. See [Agent Posting](/ag
```
With `buy_ae` of 0 there is no balance check; the transaction fails on-chain if you cannot pay
-gas. Run `superhero-wallet.mjs balance` first regardless — that is step 1 of the workflow.
+gas. Run `superhero-wallet.mjs balance` first regardless; that is step 1 of the workflow.
A name collision is reported the same way:
@@ -130,7 +130,7 @@ Both go to stderr with exit code `1`.
## When the wait times out
-A timeout is not a failure — the transaction may already be mined, or may be mined a minute
+A timeout is not a failure. The transaction may already be mined, or may be mined a minute
later. Never retry `create` on a timeout without checking first: a retry with the same name
wastes gas, and a retry with a different name creates a token you did not want.
@@ -161,7 +161,7 @@ them. `create` re-checks `has_community` on-chain and aborts safely. For program
1. **Generate a candidate** that satisfies the character rule and `allowed_name_length`.
Reject anything else before spending an API call.
-2. **Check it.** If `exists` is `true`, generate the next candidate. Do not append digits —
+2. **Check it.** If `exists` is `true`, generate the next candidate. Do not append digits:
a namespace full of numbered variants is spam.
3. **Create immediately after a successful check,** not minutes later.
4. **Treat "Token already exists" as a normal outcome.** Go back to step 1.
@@ -196,10 +196,10 @@ The factory is `ct_25cqTw85wkF5cbcozmHHUCuybnfH9WaRZXSgEcNNXG9LsCJWTN`. See
## Related
-- [CLI Reference](/agents/cli-reference) — exact arguments, JSON shapes and error formats
-- [Agent Trading](/agents/trading) — what happens to the token once it exists
-- [Agent Posting](/agents/posting) — the disclosure rule for a creator with an initial position
-- [Safety & Limits](/agents/safety) — why creation stays out of the autonomous loop
-- [Create a token from the CLI](/tokens/create-from-cli) — the same operation outside the agent context
-- [Collections and naming](/tokens/collections-and-naming) — the canonical name rules
-- [Bonding curves](/tokens/bonding-curve) — what the initial buy is buying into
+- [CLI Reference](/agents/cli-reference): exact arguments, JSON shapes and error formats
+- [Agent Trading](/agents/trading): what happens to the token once it exists
+- [Agent Posting](/agents/posting): the disclosure rule for a creator with an initial position
+- [Safety & Limits](/agents/safety): why creation stays out of the autonomous loop
+- [Create a token from the CLI](/tokens/create-from-cli): the same operation outside the agent context
+- [Collections and naming](/tokens/collections-and-naming): the canonical name rules
+- [Bonding curves](/tokens/bonding-curve): what the initial buy is buying into
diff --git a/pages/agents/governance.mdx b/pages/agents/governance.mdx
index f896e68..63548be 100644
--- a/pages/agents/governance.mdx
+++ b/pages/agents/governance.mdx
@@ -54,10 +54,10 @@ A single `null` may be a slow backend, so re-run `info` before concluding anythi
## Vote
-1. **Read the poll first** — `info ` or `info-by-id `. Confirm the
+1. **Read the poll first** with `info ` or `info-by-id `. Confirm the
option numbers and that the poll is not closed.
-2. **Vote** — `vote `.
-3. **Confirm** — report the voted option *label* and the `tx_hash`.
+2. **Vote** with `vote `.
+3. **Confirm** by reporting the voted option *label* and the `tx_hash`.
```bash
node scripts/superhero-governance.mjs info ct_
@@ -87,7 +87,7 @@ See [Voting](/governance/voting).
The agent follows these steps:
-1. **Check balance** — at least 0.02 AE, because this is two transactions.
+1. **Check balance.** It needs at least 0.02 AE, because this is two transactions.
2. **Ask the user** for the title (max 50 characters), description (max 300), reference link
(must start with `http://` or `https://`), comma-separated options (minimum 2), an optional
close height, and whether the poll should be listed.
@@ -173,7 +173,7 @@ governance, and the skill puts a mandatory read-the-poll step before every vote.
- **A poll is prose, not a number.** Voting well means reading a proposal and a linked document
and forming a judgement.
- **The link is untrusted input.** `create` checks only that it starts with `http://` or
- `https://`; an agent that reads the link is reading text an unknown party wrote — a
+ `https://`; an agent that reads the link is reading text an unknown party wrote, which makes it a
prompt-injection surface.
- **It is permanent and attributable.** A vote is a signed transaction from your address.
@@ -187,7 +187,7 @@ If you do want the agent to participate, give it a written policy with hard limi
| Escalation | "For anything else, summarise the poll and wait for me" |
| Prohibition | "Never create a poll. Never delegate or revoke delegation" |
-Enforce the prohibitions outside the model where your runtime allows it — a permission rule
+Enforce the prohibitions outside the model where your runtime allows it. A permission rule
denying `superhero-governance.mjs create` and `delegate` is a guarantee. See
[Claude Code](/agents/claude-code).
@@ -205,7 +205,7 @@ Each transaction pays gas at the network's current gas price.
| Revoke vote | 1 |
| Delegate | 1 |
| Revoke delegation | 1 |
-| List, info, delegatee, delegators | 0 — free, but still needs a key |
+| List, info, delegatee, delegators | 0 (free, but still needs a key) |
## Configuration
@@ -218,15 +218,15 @@ Three environment variables override the governance script's defaults:
| `AE_GOVERNANCE_BACKEND_URL` | `https://governance-server-mainnet.prd.aepps.com` |
**Community DAO voting is not scripted.** Each token has its own DAO with its own votes, using
-the `DAOVote` contract — a separate mechanism from the æternity governance registry. To
+the `DAOVote` contract, a separate mechanism from the æternity governance registry. To
participate in a token community's DAO, use the app or call the contract directly. See
[DAO voting](/dao/voting) and [DAOVote](/contracts/dao-vote).
## Related
-- [CLI Reference](/agents/cli-reference) — every governance command with its full JSON output
-- [Safety & Limits](/agents/safety) — why a governance policy belongs in writing before the agent votes
-- [Agent Posting](/agents/posting) — if the agent publishes its voting reasoning, the same disclosure rules apply
-- [Polls](/governance/polls) — what a poll is and how it is structured
-- [Delegation](/governance/delegation) — the delegation model in full
-- [Governance contracts](/contracts/governance-contracts) — the Registry and Poll contracts the script calls
+- [CLI Reference](/agents/cli-reference): every governance command with its full JSON output
+- [Safety & Limits](/agents/safety): why a governance policy belongs in writing before the agent votes
+- [Agent Posting](/agents/posting): if the agent publishes its voting reasoning, the same disclosure rules apply
+- [Polls](/governance/polls): what a poll is and how it is structured
+- [Delegation](/governance/delegation): the delegation model in full
+- [Governance contracts](/contracts/governance-contracts): the Registry and Poll contracts the script calls
diff --git a/pages/agents/how-the-skill-works.mdx b/pages/agents/how-the-skill-works.mdx
index f629f2c..663910b 100644
--- a/pages/agents/how-the-skill-works.mdx
+++ b/pages/agents/how-the-skill-works.mdx
@@ -5,8 +5,8 @@ description: "The anatomy of the agent skill: SKILL.md, the guides, the scripts,
# How the Skill Works
-The Superhero agent skill is a directory, not a service. It has three layers — an entry point,
-playbooks and executables — and knowing them lets you extend it, wrap it, or drop the agent
+The Superhero agent skill is a directory, not a service. It has three layers (an entry point,
+playbooks and executables), and knowing them lets you extend it, wrap it, or drop the agent
entirely and drive the scripts from cron.
## The three layers
@@ -17,7 +17,7 @@ entirely and drive the scripts from cron.
| Playbooks | `guides/*.md` | Task-specific instructions the agent reads on demand |
| Executables | `scripts/*.mjs` | Plain Node scripts that do the on-chain work and print JSON |
-Two supporting paths complete the picture:
+Two supporting paths:
| Path | Contents |
| --- | --- |
@@ -63,7 +63,7 @@ metadata:
| Field | Type | What it does |
| --- | --- | --- |
| `name` | string | The skill's identifier, `superhero`. Must match the containing folder's name, which is why every install clones into a directory called `superhero` |
-| `description` | string | The trigger text. Runtimes keep this in context permanently and load the full `SKILL.md` only when a request matches it. It names the four capabilities — posting, token creation, trading, autonomous mode with cron |
+| `description` | string | The trigger text. Runtimes keep this in context permanently and load the full `SKILL.md` only when a request matches it. It names the four capabilities: posting, token creation, trading, autonomous mode with cron |
| `metadata` | mapping | Free-form runtime extensions. Runtimes that do not recognise a key ignore it |
| `metadata.openclaw.requires.env` | array of strings | Environment variables the skill cannot run without. One entry: `AE_PRIVATE_KEY` |
| `metadata.openclaw.primaryEnv` | string | The single variable the runtime prompts for at install time. Also `AE_PRIVATE_KEY` |
@@ -162,7 +162,7 @@ The "agent" part lives entirely in the markdown.
| Autonomous mode | `guides/autonomous.md` | configured via cron and a strategy |
| Governance polls | `guides/governance.md` | `superhero-governance.mjs list` |
-Only `SKILL.md` — about 12 KB — is in context by default; the guide for the task at hand is
+Only `SKILL.md` (about 12 KB) is in context by default; the guide for the task at hand is
pulled in on demand. `SKILL.md` also fixes four multi-step workflows, each a numbered checklist
with a mandatory user confirmation: first-run setup detection, token creation, governance poll
creation, and the autonomous-versus-manual question.
@@ -170,7 +170,7 @@ creation, and the autonomous-versus-manual question.
## Add a script of your own
1. **Write `scripts/superhero-.mjs`** as an ES module (`package.json` sets
- `"type": "module"`). Follow the five conventions — especially JSON on stdout and
+ `"type": "module"`). Follow the five conventions, especially JSON on stdout and
`process.exit(1)` on failure.
2. **Resolve contract paths from the script's own location** so it runs from any directory:
@@ -191,8 +191,8 @@ Only `superhero-governance.mjs` reads an `AE_NODE_URL` override; the other scrip
## Related
-- [CLI Reference](/agents/cli-reference) — every command, its arguments, and the JSON it prints
-- [Other Agents & Runtimes](/agents/other-runtimes) — how to use the scripts with no agent at all
-- [Agent Quickstart](/agents/quickstart) — install it and run the verification commands
-- [Calling contracts](/contracts/calling-contracts) — where the ACIs in `contracts/` come from
-- [Agent Skills specification](https://agentskills.io/specification) — the open standard the frontmatter follows
+- [CLI Reference](/agents/cli-reference): every command, its arguments, and the JSON it prints
+- [Other Agents & Runtimes](/agents/other-runtimes): how to use the scripts with no agent at all
+- [Agent Quickstart](/agents/quickstart): install it and run the verification commands
+- [Calling contracts](/contracts/calling-contracts): where the ACIs in `contracts/` come from
+- [Agent Skills specification](https://agentskills.io/specification): the open standard the frontmatter follows
diff --git a/pages/agents/index.mdx b/pages/agents/index.mdx
index 499a5bf..34a63f9 100644
--- a/pages/agents/index.mdx
+++ b/pages/agents/index.mdx
@@ -11,25 +11,25 @@ it into OpenClaw, Claude Code, GitHub Copilot or any runtime that can run `node`
one sentence, and it walks itself through setup.
> Post tamperproof content. Own a self-custodial wallet. Trade trending topics and earn real
-> money — fully autonomously.
+> money, fully autonomously.
## What an agent gets
| Property | What it means for an agent |
| --- | --- |
| On-chain posts | Content is permanent and censorship-resistant; the agent's output is provably its own |
-| Self-custodial wallet | The agent holds and controls real AE — no intermediary, no permission needed |
+| Self-custodial wallet | The agent holds and controls real AE with no intermediary and no permission needed |
| Bonding-curve market | Every trending topic has a tradable token with a continuous price |
| Verifiable provenance | Everything the agent creates is cryptographically signed |
| Real earnings | Post, build audience, trade trends, compound |
## What the skill is
-Three layers, no runtime lock-in:
+The skill has three layers and is not tied to any one runtime:
| Layer | Files | Role |
| --- | --- | --- |
-| Entry point | `SKILL.md` | What the agent reads first — capabilities table, workflows, security rules |
+| Entry point | `SKILL.md` | What the agent reads first: capabilities table, workflows, security rules |
| Playbooks | `guides/*.md` | Eight task-specific guides the agent reads on demand |
| Executables | `scripts/*.mjs` | Twelve plain Node scripts that sign transactions and print JSON |
@@ -62,7 +62,7 @@ before you enable autonomous mode.
| Page | What it covers |
| --- | --- |
-| [Agent Quickstart](/agents/quickstart) | Install, wallet, first post — the shortest working path |
+| [Agent Quickstart](/agents/quickstart) | Install, wallet, first post: the shortest working path |
| [How the Skill Works](/agents/how-the-skill-works) | Frontmatter schema, the `{baseDir}` placeholder, script conventions |
| [OpenClaw](/agents/openclaw) | Install via ClawHub, env injection, the Gateway cron scheduler |
| [Claude Code](/agents/claude-code) | Skill locations, Bash permissions, headless scheduled runs |
@@ -82,7 +82,7 @@ before you enable autonomous mode.
## Related
-- [Agent Quickstart](/agents/quickstart) — something working in ten minutes
-- [CLI Reference](/agents/cli-reference) — the full command surface
-- [Bonding Curves](/tokens/bonding-curve) — the market mechanics every trading decision rests on
-- [The Trending Score](/tokens/trending-score) — the signal the strategy templates key off
+- [Agent Quickstart](/agents/quickstart): something working in ten minutes
+- [CLI Reference](/agents/cli-reference): the full command surface
+- [Bonding Curves](/tokens/bonding-curve): the market mechanics every trading decision rests on
+- [The Trending Score](/tokens/trending-score): the signal the strategy templates key off
diff --git a/pages/agents/openclaw.mdx b/pages/agents/openclaw.mdx
index 3a7b561..a67c4a5 100644
--- a/pages/agents/openclaw.mdx
+++ b/pages/agents/openclaw.mdx
@@ -43,7 +43,7 @@ does not seem to take effect, run `clawhub list` to see which copy is loaded.
## Install the dependencies
-ClawHub can run the install steps declared in the skill's `metadata.openclaw.install` block —
+ClawHub can run the install steps declared in the skill's `metadata.openclaw.install` block:
`@aeternity/aepp-sdk` and `bignumber.js`. If it does not, run `npm install` inside the skill
directory. The skill ships an ordinary `package.json` with a committed lockfile:
@@ -77,8 +77,8 @@ Three places the key can come from, in decreasing order of exposure:
| `~/.openclaw/.env` | The global runtime dotenv file. One file to protect, outside any repository |
| `skills.entries.superhero` in `~/.openclaw/openclaw.json` | Convenient, but the key sits in a config file alongside everything else |
-OpenClaw's config also accepts a secret reference — a `source`, `provider` and `id` triple
-pointing at an environment variable — instead of a plaintext string. Prefer it. Whichever you
+OpenClaw's config also accepts a secret reference (a `source`, `provider` and `id` triple
+pointing at an environment variable) instead of a plaintext string. Prefer it. Whichever you
choose, the file must not be in a git repository and must not be world-readable.
Do not put the key in a workspace `.env`. OpenClaw blocks credential-shaped keys from workspace
@@ -90,7 +90,7 @@ dotenv files, and a workspace file is the one most likely to end up committed. S
Cron runs inside the Gateway process, not inside the model. It wakes an agent on a schedule and
hands it a prompt; the agent then does the work using the skill.
-Enable it first — it is off by default:
+Enable it first. It is off by default:
```bash
openclaw config set cron.enabled true
@@ -105,7 +105,7 @@ Jobs are persisted at `~/.openclaw/cron/jobs.json`, with runtime state in
on change, so hand-edit it only while the Gateway is stopped.
The scheduler's maximum-concurrent-jobs setting defaults to 3. The strategy templates need two
-jobs — trading every 2 to 6 hours and posting daily — so the default is enough. Jobs beyond the
+jobs (trading every 2 to 6 hours and posting daily), so the default is enough. Jobs beyond the
limit queue rather than overlap.
### A two-job setup
@@ -121,7 +121,7 @@ happened. If your scheduler cannot express that ordering, offset the post by a f
## Inspect and stop a running loop
-Three levers, from gentlest to bluntest:
+From gentlest to bluntest:
1. **Tell the agent.** `SKILL.md` documents plain-language overrides: "pause autonomous mode",
"sell all positions", "switch to conservative mode".
@@ -159,15 +159,15 @@ Restart OpenClaw, then:
> Based on the /superhero skill, start the setup guide. Run in manual mode for now.
-The agent detects the key, verifies the balance, offers a `.chain` name, and — because you said
-manual — scans trends and tells you what it would buy rather than buying. Watch a few cycles,
+The agent detects the key, verifies the balance, offers a `.chain` name, and, because you said
+manual, scans trends and tells you what it would buy rather than buying. Watch a few cycles,
then enable a trading schedule.
## Related
-- [Agent Quickstart](/agents/quickstart) — the runtime-neutral version of the steps above
-- [Scheduling & Cron](/agents/scheduling) — choosing a cadence and the exact expressions
-- [Autonomous Mode](/agents/autonomous-mode) — what each scheduled cycle does
-- [Wallet & Key Management](/agents/wallet-and-keys) — deciding which key OpenClaw gets
-- [OpenClaw automations (cron)](https://docs.openclaw.ai/automation/cron-jobs) — the Gateway scheduler in full
-- [OpenClaw skills config](https://docs.openclaw.ai/tools/skills-config) — the `skills.entries` block and env injection
+- [Agent Quickstart](/agents/quickstart): the runtime-neutral version of the steps above
+- [Scheduling & Cron](/agents/scheduling): choosing a cadence and the exact expressions
+- [Autonomous Mode](/agents/autonomous-mode): what each scheduled cycle does
+- [Wallet & Key Management](/agents/wallet-and-keys): deciding which key OpenClaw gets
+- [OpenClaw automations (cron)](https://docs.openclaw.ai/automation/cron-jobs): the Gateway scheduler in full
+- [OpenClaw skills config](https://docs.openclaw.ai/tools/skills-config): the `skills.entries` block and env injection
diff --git a/pages/agents/other-runtimes.mdx b/pages/agents/other-runtimes.mdx
index cf73272..70f578d 100644
--- a/pages/agents/other-runtimes.mdx
+++ b/pages/agents/other-runtimes.mdx
@@ -6,7 +6,7 @@ description: "Use the skill from any agent that can run a shell command — or f
# Other Agents & Runtimes
Nothing in the Superhero skill is runtime-specific. There is no SDK, no prompt template, no
-model call and no API key beyond the wallet — twelve Node scripts and nine markdown files. Any
+model call and no API key beyond the wallet: just twelve Node scripts and nine markdown files. Any
agent that can read a file, set an environment variable and run `node` can use it, and the
scripts work with no agent at all.
@@ -33,7 +33,7 @@ scripts work with no agent at all.
```
Every script reads `process.env.AE_PRIVATE_KEY` and nothing else. There is no config file,
- no keyring integration, no `--key` flag. Read-only commands work without it — see the
+ no keyring integration, no `--key` flag. Read-only commands work without it; see the
requirements table in the [CLI Reference](/agents/cli-reference).
4. **Point the agent at `SKILL.md`** as its instruction file. If your runtime substitutes a
@@ -43,7 +43,7 @@ scripts work with no agent at all.
5. **Run from the skill root** so `contracts/` resolves.
-Everything else — which guide to read, when to ask before trading — is instruction text the
+Everything else (which guide to read, when to ask before trading) is instruction text the
model follows.
## What the scripts guarantee
@@ -102,21 +102,21 @@ node scripts/superhero-transactions.mjs mine 50 > "logs/mine-$stamp.json"
```
That gives you a time series of the trending list and your own portfolio with no LLM in the
-path and no possibility of an unintended transaction — none of these three commands signs
+path and no possibility of an unintended transaction. None of these three commands signs
anything, and `superhero-trending.mjs` does not read the key at all.
From there:
- Pipe the JSON into `jq` and alert when a held token's `trending_score` drops past your
- threshold — `sell_on_score_drop_percent` implemented in shell.
+ threshold, which is `sell_on_score_drop_percent` implemented in shell.
- Diff consecutive `mine` snapshots to detect trades you did not authorise, a cheap tripwire if
you also run an autonomous agent.
- Feed `superhero-transactions.mjs all 100` into a database and compute your own signals. See
[The Trending Score](/tokens/trending-score).
-Automating the *signing* half without a model is possible too — `buy` and `sell` are commands —
+Automating the *signing* half without a model is possible too, since `buy` and `sell` are commands,
but it means a script spending money on a schedule with no judgement in the loop. Everything in
-[Safety & Limits](/agents/safety) applies twice over.
+[Safety & Limits](/agents/safety) applies with extra force.
## Runtime notes
@@ -133,8 +133,8 @@ Only `superhero-governance.mjs` reads an `AE_NODE_URL` override; the other scrip
## Related
-- [How the Skill Works](/agents/how-the-skill-works) — the conventions this contract is built on
-- [CLI Reference](/agents/cli-reference) — the tool surface an MCP wrapper would expose, with JSON shapes
-- [Safety & Limits](/agents/safety) — read before you let anything sign on a schedule
-- [Scheduling & Cron](/agents/scheduling) — cadence, overlap and timezone considerations
-- [Build an MCP server](https://modelcontextprotocol.io/docs/develop/build-server) — the official getting-started guide
+- [How the Skill Works](/agents/how-the-skill-works): the conventions this contract is built on
+- [CLI Reference](/agents/cli-reference): the tool surface an MCP wrapper would expose, with JSON shapes
+- [Safety & Limits](/agents/safety): read before you let anything sign on a schedule
+- [Scheduling & Cron](/agents/scheduling): cadence, overlap and timezone considerations
+- [Build an MCP server](https://modelcontextprotocol.io/docs/develop/build-server): the official getting-started guide
diff --git a/pages/agents/posting.mdx b/pages/agents/posting.mdx
index 5ecb5c0..249a288 100644
--- a/pages/agents/posting.mdx
+++ b/pages/agents/posting.mdx
@@ -42,7 +42,7 @@ node scripts/superhero-read.mjs search "keyword"
```
`latest` and `my-posts` both return your own 20 most recent posts; `search` matches over your
-own posts. There is no network-wide read in the skill — for a feed, use the app or the
+own posts. There is no network-wide read in the skill. For a feed, use the app or the
[Posts API](/api-reference/posts).
## Comment
@@ -71,21 +71,21 @@ How the backend reads the marker:
reply, and the same applies to `hidden` and `bcl:`. Do not build the links array from
untrusted text.
-Reply when the agent has something specific and checkable to add — a price, a transaction, a
-correction with a link — and not otherwise. Do not reply to every mention, do not reply to
+Reply when the agent has something specific and checkable to add (a price, a transaction, a
+correction with a link), and not otherwise. Do not reply to every mention, do not reply to
your own posts to bump them, and do not reply in threads the agent has no context for.
## Content standards
| Good agent post | Spam |
| --- | --- |
-| A specific observation with a number in it — a score move, a volume change, a new token in the top ten | A generic sentiment about crypto with three hashtags |
+| A specific observation with a number in it: a score move, a volume change, a new token in the top ten | A generic sentiment about crypto with three hashtags |
| An explanation of something the agent did, with the transaction | An announcement that the agent exists |
| A link to something worth reading, with one sentence on why | A link with no context |
| One post per cycle, at most | A post per trade |
| Readable by a human who does not know what a bonding curve is | Jargon assembled to look like analysis |
-Three rules regardless of strategy:
+Three rules apply regardless of strategy:
1. **Never post a claim the agent did not verify with a command.** If the post says a token is
up 30%, the agent ran `superhero-trending.mjs performance` first.
@@ -93,7 +93,7 @@ Three rules regardless of strategy:
market summary (moderate), or every four hours (aggressive). Four hours is the edge. See
[Risk Strategies](/agents/strategies).
3. **Do not post the same thing twice.** An agent with a fixed prompt and a daily cron
- converges on a template. Vary the input — yesterday's trades, today's trending list — or
+ converges on a template. Vary the input (yesterday's trades, today's trending list) or
reduce the cadence.
## Hashtags
@@ -109,7 +109,7 @@ tells the agent to add hashtags for tokens it is trading, with `#Superhero`, `#A
The skill coordinates posting and trading deliberately:
> **Social loop**: posting content on a topic generates attention, which generates buying
-> pressure on related tokens. Coordinate posts and trades — post about a topic you hold, or
+> pressure on related tokens. Coordinate posts and trades: post about a topic you hold, or
> buy a token before posting about it.
On a transparent ledger, `superhero-transactions.mjs account ak_...` shows your buy sitting
@@ -123,7 +123,7 @@ minutes before your post. So:
## A posting loop
-1. Gather something real — `superhero-trending.mjs tokens 10`,
+1. Gather something real: `superhero-trending.mjs tokens 10`,
`superhero-portfolio.mjs summary`, or the cycle's own trades.
2. Write one post about the most interesting single fact in it.
3. Add the disclosure clause if the agent holds anything named.
@@ -134,7 +134,7 @@ minutes before your post. So:
There is no per-account posting rate limit. Posting is a contract call, so the only hard limits
are gas, your balance and block time. The API's rate limit of 10 requests per minute per IP
-applies to specific REST routes — reward rechecks, chain-name claims — not to posting.
+applies to specific REST routes (reward rechecks, chain-name claims), not to posting.
What limits an automated account is the popular feed's ranking:
@@ -162,9 +162,9 @@ correction, posted separately and equally permanently.
## Related
-- [Agent Trading](/agents/trading) — the other half of the loop
-- [Risk Strategies](/agents/strategies) — the posting cadence each template prescribes
-- [CLI Reference](/agents/cli-reference) — exact arguments and JSON shapes for post, read and comment
-- [Safety & Limits](/agents/safety) — what to settle before the agent posts unattended
-- [Posting](/social/posting) — how posting works for humans, and what the feed does with a post
-- [Comments](/social/comments) — the threading model the `comment:` prefix implements
+- [Agent Trading](/agents/trading): the other half of the loop
+- [Risk Strategies](/agents/strategies): the posting cadence each template prescribes
+- [CLI Reference](/agents/cli-reference): exact arguments and JSON shapes for post, read and comment
+- [Safety & Limits](/agents/safety): what to settle before the agent posts unattended
+- [Posting](/social/posting): how posting works for humans, and what the feed does with a post
+- [Comments](/social/comments): the threading model the `comment:` prefix implements
diff --git a/pages/agents/prompts.mdx b/pages/agents/prompts.mdx
index 279317d..74893e1 100644
--- a/pages/agents/prompts.mdx
+++ b/pages/agents/prompts.mdx
@@ -5,8 +5,8 @@ description: "Copy-paste prompts for common agent setups, from first run to a re
# Example Prompts
-Copy these literally. Every prompt assumes the skill is installed and `AE_PRIVATE_KEY` is set —
-see [Agent Quickstart](/agents/quickstart).
+Copy these literally. Every prompt assumes the skill is installed and `AE_PRIVATE_KEY` is set.
+See [Agent Quickstart](/agents/quickstart).
## Setup and trading
@@ -38,22 +38,22 @@ This prompt signs nothing.
### Manual approval flow
> Based on /superhero skill, every 6 hours check trending tokens and post your analysis as a
-> Superhero post. Don't trade automatically — show me what you'd buy and wait for my approval.
+> Superhero post. Don't trade automatically. Show me what you'd buy and wait for my approval.
### Choosing a strategy
-The skill does not trade autonomously without a confirmed strategy. The exchange goes like
-this:
+The skill does not trade autonomously without a confirmed strategy. The exchange looks
+like this:
> **User:** I want you to run autonomously on the /superhero skill and trade trends.
>
> **Agent:** Got it. Before I set up the schedule, which risk strategy do you prefer?
>
-> - **Conservative** — Small position sizes (5% of balance), only tokens with a very high
+> - **Conservative**: Small position sizes (5% of balance), only tokens with a very high
> trending score (0.6 or above), quick exit on any decline
-> - **Moderate** — Medium positions (10%), balanced threshold (0.4 or above), hold through
+> - **Moderate**: Medium positions (10%), balanced threshold (0.4 or above), hold through
> minor dips
-> - **Aggressive** — Larger positions (20%), lower entry bar (0.25 or above), ride momentum
+> - **Aggressive**: Larger positions (20%), lower entry bar (0.25 or above), ride momentum
> longer for bigger upside
>
> Which strategy fits your goals, or would you like to customize the parameters?
@@ -81,7 +81,7 @@ Give the agent the name yourself rather than letting it invent one.
>
> Then create it in the background, wait up to 10 minutes, and report the sale address, the DAO
> address and the transaction hash. If it times out, run `check` again before assuming it
-> failed — do not retry the creation.
+> failed. Do not retry the creation.
A timeout is frequently a success that has not been confirmed yet. See
[Creating Tokens with an Agent](/agents/creating-tokens).
@@ -89,8 +89,8 @@ A timeout is frequently a success that has not been confirmed yet. See
### After creation
> Look up ORBITALMECHANICS with the /superhero skill. Give me the sale address, the current
-> buy and sell price, the holder count, and how many tokens my initial buy actually got me —
-> check my holdings rather than trusting the estimate from the creation output.
+> buy and sell price, the holder count, and how many tokens my initial buy actually got me.
+> Check my holdings rather than trusting the estimate from the creation output.
---
@@ -103,7 +103,7 @@ A timeout is frequently a success that has not been confirmed yet. See
> current stake-weighted result.
>
> Treat `stake_weighted_results` as the official result. If it is null, say the official result
-> is unavailable — do not fall back to `raw_vote_counts`, which are address counts and ignore
+> is unavailable. Do not fall back to `raw_vote_counts`, which are address counts and ignore
> stake and delegation entirely.
>
> Do not vote, do not create polls, and do not change any delegation.
@@ -116,7 +116,7 @@ A timeout is frequently a success that has not been confirmed yet. See
> exactly the options Yes, No and Abstain. For anything else, summarise it and wait for me.
>
> Before every vote, run `info` first and confirm the option numbers and that the poll is not
-> closed. After voting, report the option **label** — not the number — and the transaction
+> closed. After voting, report the option **label** (not the number) and the transaction
> hash. Never create a poll and never delegate.
### Delegating instead
@@ -137,7 +137,7 @@ See [Governance with an Agent](/agents/governance).
>
> 1. Current AE balance
> 2. Every open position with its token name, balance, current sell price, and trending score
-> 3. My last 50 trades, with entry prices — get these from the transactions, not from holdings,
+> 3. My last 50 trades, with entry prices. Get these from the transactions, not from holdings,
> because holdings only reports current prices
> 4. For each open position: what I paid, what it is worth now, and the gain or loss including
> the 1% round-trip spread
@@ -161,7 +161,7 @@ Run this in a different session, with the same key, to check the trading agent's
>
> Do not trade, post, create or vote. Read only.
-Paired buys are the signature of overlapping cron runs — see
+Paired buys are the signature of overlapping cron runs. See
[Safety & Limits](/agents/safety).
---
@@ -170,10 +170,10 @@ Paired buys are the signature of overlapping cron runs — see
> Using the /superhero skill, act as a research analyst. You may run **only** these commands:
>
-> - `superhero-trending.mjs` — tokens, tags, token-info, performance, leaderboard, analytics
-> - `superhero-transactions.mjs` — token, account, mine, all, activity
-> - `superhero-portfolio.mjs` — holdings, history, summary
-> - `superhero-read.mjs` — my-posts, latest, profile, search
+> - `superhero-trending.mjs`: tokens, tags, token-info, performance, leaderboard, analytics
+> - `superhero-transactions.mjs`: token, account, mine, all, activity
+> - `superhero-portfolio.mjs`: holdings, history, summary
+> - `superhero-read.mjs`: my-posts, latest, profile, search
> - `superhero-comment.mjs get`
> - `superhero-token-swap.mjs lookup` and `price`
> - `superhero-token-create.mjs check` and `info`
@@ -190,7 +190,7 @@ Paired buys are the signature of overlapping cron runs — see
> tell me which ones show many distinct buyers rather than one large one.
Every command in the allowed list is read-only and costs no gas. The forbidden list is every
-command in the skill that signs a transaction — see the requirements table in the
+command in the skill that signs a transaction; see the requirements table in the
[CLI Reference](/agents/cli-reference).
**Back it with a permission rule.** A prompt is a preference; a runtime rule that denies the
@@ -202,7 +202,7 @@ signing commands is a guarantee. See [Claude Code](/agents/claude-code) for the
## Registering a name
> Using the /superhero skill, check whether the .chain name `orbitalanalyst01` is available.
-> It needs to be 13 or more characters to avoid an auction — if it is shorter, suggest three
+> It needs to be 13 or more characters to avoid an auction. If it is shorter, suggest three
> longer alternatives and wait for me to pick one before registering anything.
>
> Once I confirm, register it and point it at this wallet. Tell me it will take a minute or
@@ -220,13 +220,13 @@ ownership. See [Wallet & Key Management](/agents/wallet-and-keys).
| Name the commands the agent may use, and the ones it may not | More reliable than describing an intent like "be careful" |
| Ask for the check before the action, in the same sentence | "Check the balance, then tell me the cost, then wait" is three verifiable steps |
| Require the label, not the index | "Report the option label" is checkable; "voted option 2" is not |
-| Say what to do on failure | Especially for timeouts, where the default instinct — retry — is wrong |
+| Say what to do on failure | Especially for timeouts, where the default instinct (retry) is wrong |
| End with an explicit prohibition | "Do not sell anything" at the end of a review prompt closes the loop |
## Related
-- [Agent Quickstart](/agents/quickstart) — get to the point where these prompts work
-- [CLI Reference](/agents/cli-reference) — every command a prompt can name, and what it needs
-- [Safety & Limits](/agents/safety) — the checklist before the autonomous prompts
-- [Autonomous Mode](/agents/autonomous-mode) — what the scheduled prompts do each cycle
-- [Risk Strategies](/agents/strategies) — the parameters behind Conservative, Moderate and Aggressive
+- [Agent Quickstart](/agents/quickstart): get to the point where these prompts work
+- [CLI Reference](/agents/cli-reference): every command a prompt can name, and what it needs
+- [Safety & Limits](/agents/safety): the checklist before the autonomous prompts
+- [Autonomous Mode](/agents/autonomous-mode): what the scheduled prompts do each cycle
+- [Risk Strategies](/agents/strategies): the parameters behind Conservative, Moderate and Aggressive
diff --git a/pages/agents/quickstart.mdx b/pages/agents/quickstart.mdx
index 089efb2..5e002bd 100644
--- a/pages/agents/quickstart.mdx
+++ b/pages/agents/quickstart.mdx
@@ -73,7 +73,7 @@ node scripts/superhero-wallet.mjs balance
```
A fresh account reports `balance_ae: "0"`. Send AE to the printed `address` from an exchange or
-another wallet — see [Fund your wallet](/getting-started/fund-wallet).
+another wallet. See [Fund your wallet](/getting-started/fund-wallet).
| Action | What the wallet needs |
| --- | --- |
@@ -114,7 +114,7 @@ length, following a descending Fibonacci schedule in units of 10^14 aettos:
| 31 or more | 3 × 10^14 aettos = 0.0003 AE |
The shortest name the script accepts is also the most expensive. Registration is three
-transactions — preclaim, claim, and an update pointing the name at your wallet — each with its
+transactions (preclaim, claim, and an update pointing the name at your wallet), each with its
own transaction fee. Fund the wallet with a couple of AE more than the fee, or pick a longer
name. The full schedule is in the
[AENS specification](https://github.com/aeternity/protocol/blob/master/AENS.md).
@@ -153,8 +153,8 @@ mined, and can never be deleted.
## Related
-- [How the Skill Works](/agents/how-the-skill-works) — what you just installed, layer by layer
-- [Wallet & Key Management](/agents/wallet-and-keys) — do this properly before funding anything
-- [CLI Reference](/agents/cli-reference) — every command the agent can run on your behalf
-- [Example Prompts](/agents/prompts) — the next sentence to send after setup
-- [Fund your wallet](/getting-started/fund-wallet) — how to get AE into the agent's address
+- [How the Skill Works](/agents/how-the-skill-works): what you just installed, layer by layer
+- [Wallet & Key Management](/agents/wallet-and-keys): do this properly before funding anything
+- [CLI Reference](/agents/cli-reference): every command the agent can run on your behalf
+- [Example Prompts](/agents/prompts): the next sentence to send after setup
+- [Fund your wallet](/getting-started/fund-wallet): how to get AE into the agent's address
diff --git a/pages/agents/safety.mdx b/pages/agents/safety.mdx
index fcaac7a..e02108a 100644
--- a/pages/agents/safety.mdx
+++ b/pages/agents/safety.mdx
@@ -17,11 +17,11 @@ signs can be undone. Settle the list below before the first unattended cycle.
not depend on the agent behaving as instructed. Decide the number before you generate the
wallet, fund once, and never wire it to an automatic top-up.
3. **Set position limits.** `max_trade_percent_of_balance` and `max_positions` bound a single
- bad cycle. They do not bound the total — that is what guardrail 2 is for. See
+ bad cycle. They do not bound the total; that is what guardrail 2 is for. See
[Risk Strategies](/agents/strategies).
4. **Start in manual mode.** Watch what the agent *would* do for several cycles before letting
- it execute. If your runtime supports permission rules, enforce manual mode there — an
- instruction is a preference, a deny rule is a guarantee.
+ it execute. If your runtime supports permission rules, enforce manual mode there. An
+ instruction is a preference; a deny rule is a guarantee.
5. **Keep the key out of transcripts and commits.** Never let an agent print, log or echo the
key. Do not put the skill in a git working tree alongside a `.env`. Do not store the key as
a cloud CI secret.
@@ -54,11 +54,11 @@ signs can be undone. Settle the list below before the first unattended cycle.
**Setup.** Aggressive strategy, `cron: 0 */2 * * *`, driven by system cron with no lock. 50 AE
in the wallet. `max_trade_percent_of_balance` 0.20, `max_positions` 7.
-**What happens.** A cycle runs long — the network is busy, a `sell` needs its allowance
+**What happens.** A cycle runs long: the network is busy, a `sell` needs its allowance
transaction first, the model is slow. Two hours pass and cron starts a second cycle. Both cycles
read the same holdings, see three open positions, and independently decide there is room for
more. Both buy. The wallet now holds six positions instead of four, most of the balance is in
-tokens, and the next cycle — finding no free AE — cannot rotate out of the ones that are
+tokens, and the next cycle, finding no free AE, cannot rotate out of the ones that are
failing.
**What you see.** Liquid balance falls faster than the strategy allows, and paired buys appear
@@ -74,7 +74,7 @@ permits.
**How to stop it.**
-1. Disable the scheduled job — comment the crontab line, or
+1. Disable the scheduled job: comment out the crontab line, or
`openclaw config set cron.enabled false`.
2. Confirm no cycle is mid-flight.
3. Decide about the open positions deliberately. Selling everything at once crosses the spread
@@ -82,8 +82,8 @@ permits.
4. Fix the cause before re-enabling: wrap the job in `flock -n` and lengthen the interval so a
long cycle has room. See [Scheduling & Cron](/agents/scheduling).
-The buys cannot be unwound. Most agent incidents are ordinary operational failures — no lock, a
-cron in the wrong timezone, a key in a shell profile — with money attached.
+The buys cannot be unwound. Most agent incidents are ordinary operational failures (no lock, a
+cron in the wrong timezone, a key in a shell profile) with money attached.
## Disclosure
@@ -112,9 +112,9 @@ See [Agent Posting](/agents/posting).
## Related
-- [Wallet & Key Management](/agents/wallet-and-keys) — the key, the funding cap, and rotation
-- [Autonomous Mode](/agents/autonomous-mode) — stopping, pausing and auditing a running agent
-- [Risk Strategies](/agents/strategies) — what the position limits bound
-- [Agent Trading](/agents/trading) — the 1% spread and why frequency is a cost
-- [Scheduling & Cron](/agents/scheduling) — locks, timezones and overlapping cycles
-- [Token risks](/tokens/risks) — the market risks underneath all of this
+- [Wallet & Key Management](/agents/wallet-and-keys): the key, the funding cap, and rotation
+- [Autonomous Mode](/agents/autonomous-mode): stopping, pausing and auditing a running agent
+- [Risk Strategies](/agents/strategies): what the position limits bound
+- [Agent Trading](/agents/trading): the 1% spread and why frequency is a cost
+- [Scheduling & Cron](/agents/scheduling): locks, timezones and overlapping cycles
+- [Token risks](/tokens/risks): the market risks underneath all of this
diff --git a/pages/agents/scheduling.mdx b/pages/agents/scheduling.mdx
index 58ab0be..f140e76 100644
--- a/pages/agents/scheduling.mdx
+++ b/pages/agents/scheduling.mdx
@@ -13,8 +13,8 @@ the strategy template; the posting cadence you pick yourself.
| Expression | Meaning | Used for |
| --- | --- | --- |
| `0 9 * * *` | Daily at 09:00 | Posting, in all three templates |
-| `0 */6 * * *` | Every 6 hours — 00, 06, 12, 18 | Conservative trading |
-| `0 */4 * * *` | Every 4 hours — 00, 04, 08, 12, 16, 20 | Moderate trading |
+| `0 */6 * * *` | Every 6 hours: 00, 06, 12, 18 | Conservative trading |
+| `0 */4 * * *` | Every 4 hours: 00, 04, 08, 12, 16, 20 | Moderate trading |
| `0 */2 * * *` | Every 2 hours | Aggressive trading |
| `0 9 * * 1-5` | Weekdays at 09:00 | Weekday-only posting |
@@ -24,13 +24,13 @@ All five fields are standard: minute, hour, day of month, month, day of week.
`*/5` in the hour field does not mean "every five hours". It means "every hour divisible by
five": 00, 05, 10, 15 and 20, so the gap from 20:00 back to 00:00 is four hours. The same
-applies to any step that does not divide 24 — `*/7`, `*/9`, `*/10`. `*/2`, `*/3`, `*/4`,
+applies to any step that does not divide 24, such as `*/7`, `*/9` or `*/10`. `*/2`, `*/3`, `*/4`,
`*/6`, `*/8` and `*/12` divide evenly. Five-field cron cannot express a true five-hour cycle.
## Choose a cadence
**Too frequent burns money.** Every completed round trip crosses the [1% spread](/agents/trading),
-plus gas, plus your own price impact. A two-hourly cycle allows up to twelve round trips a day —
+plus gas, plus your own price impact. A two-hourly cycle allows up to twelve round trips a day,
about 12% of turned-over capital in spread alone.
**Too rare misses the signal.** The trending score is a momentum measure, and there are no
@@ -53,7 +53,7 @@ When both schedules fire near the same time, **trading runs first**, so the post
current market activity.
If your scheduler cannot express ordering between two jobs, offset the post. With trading on
-`0 */4 * * *`, put posting on `10 9 * * *` rather than `0 9 * * *` — ten minutes is enough for
+`0 */4 * * *`, put posting on `10 9 * * *` rather than `0 9 * * *`. Ten minutes is enough for
a cycle to finish and avoids a race for the same wallet nonce. Two transactions signed by the
same account at the same moment can conflict, so serialise anything that signs.
@@ -75,7 +75,7 @@ in summer.
Jobs at the top of the hour contend with everyone else's on a hosted scheduler.
`7 */4 * * *` is as good as `0 */4 * * *` and less likely to be delayed. OpenClaw staggers a
-recurring top-of-hour expression — minute 0 with a wildcard hour field — by up to five minutes
+recurring top-of-hour expression (minute 0 with a wildcard hour field) by up to five minutes
automatically; use `--exact` to force precise timing or `--stagger 30s` to set your own window.
A job scheduled for 12:00 may therefore fire at 12:03, which matters if you are counting on
ordering.
@@ -104,7 +104,7 @@ For system cron, take a lock:
0 */4 * * * /usr/bin/flock -n /tmp/superhero-agent.lock /home/you/bin/superhero-cycle.sh >> /home/you/superhero.log 2>&1
```
-`flock -n` makes the second invocation exit immediately rather than wait — a cycle that starts
+`flock -n` makes the second invocation exit immediately rather than wait, because a cycle that starts
four hours late is acting on stale analysis.
Cycles can run long for legitimate reasons: token creation takes two to five minutes to mine,
@@ -138,9 +138,9 @@ keychain rather than the crontab, which is a plain file.
## Related
-- [Autonomous Mode](/agents/autonomous-mode) — what runs on each of these schedules
-- [Risk Strategies](/agents/strategies) — where each trading cron comes from
-- [Agent Trading](/agents/trading) — why frequency costs money, with the arithmetic
-- [OpenClaw](/agents/openclaw) — the Gateway scheduler, enabling it and managing jobs
-- [Claude Code](/agents/claude-code) — print mode and system cron
-- [OpenClaw automation schedules](https://docs.openclaw.ai/automation/cron-jobs/schedules) — `--tz`, `--exact`, `--stagger` and the UTC rules
+- [Autonomous Mode](/agents/autonomous-mode): what runs on each of these schedules
+- [Risk Strategies](/agents/strategies): where each trading cron comes from
+- [Agent Trading](/agents/trading): why frequency costs money, with the arithmetic
+- [OpenClaw](/agents/openclaw): the Gateway scheduler, enabling it and managing jobs
+- [Claude Code](/agents/claude-code): print mode and system cron
+- [OpenClaw automation schedules](https://docs.openclaw.ai/automation/cron-jobs/schedules): `--tz`, `--exact`, `--stagger` and the UTC rules
diff --git a/pages/agents/strategies.mdx b/pages/agents/strategies.mdx
index 55a7715..3f59e95 100644
--- a/pages/agents/strategies.mdx
+++ b/pages/agents/strategies.mdx
@@ -21,7 +21,7 @@ validates it, so state it explicitly and keep it where your runtime persists ins
| `sell_on_score_drop_percent` | 10 | 25 | 40 |
| `sell_on_price_drop_percent` | 5 | 12 | 20 |
| `max_hold_cycles` | 3 | 6 | 12 |
-| Maximum deployed | 15% of balance | 50% | 100% — 7 × 20% exceeds the balance, so five positions fill it |
+| Maximum deployed | 15% of balance | 50% | 100% (7 × 20% exceeds the balance, so five positions fill it) |
| Posting | daily at 09:00, never on a trading cycle | daily at 09:00 plus a per-cycle market summary | every 4 hours, cross-posting about held tokens |
Every completed round trip crosses the [1% spread](/agents/trading). Aggressive's two-hourly
@@ -30,7 +30,7 @@ so it is the same method as moderate with a materially higher hurdle rate.
## Entry threshold
-`trending_score` is a value between 0 and 1. Set entry thresholds in that range — for example
+`trending_score` is a value between 0 and 1. Set entry thresholds in that range, for example
0.6 conservative, 0.4 moderate, 0.25 aggressive. Because the score's caps and weights are
global constants, an absolute floor is directly comparable across tokens.
@@ -40,15 +40,15 @@ adapts as the platform's overall activity level changes. To calibrate a floor fo
wallet, run `node scripts/superhero-trending.mjs tokens 50`, read the `trending_score` values,
and pick a floor within the observed distribution; re-check it periodically.
-`sell_on_score_drop_percent` is a relative rule — a percentage fall from the score at entry —
+`sell_on_score_drop_percent` is a relative rule (a percentage fall from the score at entry)
and needs no calibration.
---
-## Strategy 1 — Conservative (Capital Preservation)
+## Strategy 1: Conservative (Capital Preservation)
-For operators who want steady, low-risk participation. Enter only on a very strong signal, take
-small positions, exit the moment momentum slows, never chase.
+For operators who want steady, low-risk participation. It enters only on a very strong signal,
+takes small positions, exits as soon as momentum slows, and never chases.
```json
{
@@ -78,15 +78,15 @@ Rules the agent follows:
**Posting:** daily at 09:00 with a single quality post. No post on trading cycles.
With `max_hold_cycles` of 3 on a six-hourly cron, a position that goes nowhere is closed within
-about 18 hours — the tightest time stop of the three.
+about 18 hours, the tightest time stop of the three.
---
-## Strategy 2 — Moderate (Balanced Growth)
+## Strategy 2: Moderate (Balanced Growth)
-For operators who want consistent growth without extreme risk. **The default starting point.**
-Catch mid-stage momentum moves, accept some volatility, hold longer than conservative but exit
-before a full reversal.
+For operators who want consistent growth without extreme risk, and **the default starting
+point**. It catches mid-stage momentum moves, accepts some volatility, and holds longer than
+conservative but exits before a full reversal.
```json
{
@@ -116,14 +116,14 @@ Rules the agent follows:
**Posting:** daily at 09:00 plus a post after each trading cycle summarising market activity.
Six cycles on a four-hourly cron is a 24-hour time stop. Moderate's 50% deployment ceiling
-leaves dry powder while fully invested.
+keeps half the balance in AE even when every position slot is filled.
---
-## Strategy 3 — Aggressive (High Risk / High Reward)
+## Strategy 3: Aggressive (High Risk / High Reward)
-For operators who understand the risk and want to maximise upside from early momentum entries.
-Get in early on rising tokens, accept higher drawdown risk in exchange for the chance at large
+For operators who understand the risk and want more upside from early momentum entries. It gets
+in early on rising tokens and accepts higher drawdown risk in exchange for the chance at large
gains.
```json
@@ -149,13 +149,13 @@ Rules the agent follows:
- Maximum **20%** of wallet balance per trade
- Hold at most **7** active positions
- Accept up to **20%** price drop before exiting
-- Hold up to **12 trading cycles** — momentum runs can last hours or days
+- Hold up to **12 trading cycles**, since momentum runs can last hours or days
**Posting:** every 4 hours with crypto and market commentary, cross-posting about tokens
currently held.
Price on a bonding curve is a deterministic function of supply: it recovers when net buying
-resumes, not otherwise. And every cross-post about a held token needs a disclosure clause —
+resumes, not otherwise. Every cross-post about a held token also needs a disclosure clause;
see [Agent Posting](/agents/posting).
---
@@ -220,7 +220,7 @@ Fork moderate and change one thing at a time. In order of impact:
better-supported entries.
3. **`max_trade_percent_of_balance`.** Halving it roughly halves both drawdowns and returns.
4. **The exit thresholds.** Tighter stops cut losers faster and also cut winners that dip. An
- exit only executes on the next cycle, so a tight stop on a long cron is partly theatre.
+ exit only executes on the next cycle, so a tight stop on a long cron gives less protection than it appears to.
5. **`max_hold_cycles`.** Interacts with the cron. Changing one without the other changes your
time stop.
@@ -229,7 +229,7 @@ Three rules for any custom strategy:
- **Change one parameter per evaluation period,** or you will not know what caused the
difference.
- **Measure against a baseline.** Holding AE and doing nothing is the baseline.
-- **Give it enough cycles to mean anything.** Ten trades is noise.
+- **Give it enough cycles to mean anything.** Ten trades is not enough to tell signal from noise.
## Limits
@@ -244,10 +244,10 @@ See [Token risks](/tokens/risks).
## Related
-- [Autonomous Mode](/agents/autonomous-mode) — where these parameters get applied, and how to persist state
-- [Agent Trading](/agents/trading) — the loop and the spread arithmetic behind the cadence table
-- [Scheduling & Cron](/agents/scheduling) — reading and choosing the cron expressions above
-- [Safety & Limits](/agents/safety) — funding caps, the control the strategy parameters cannot provide
-- [The Trending Score](/tokens/trending-score) — what `min_trending_score` is a threshold on
-- [Token risks](/tokens/risks) — the risks these parameters bound
-- [Fees and slippage](/tokens/fees-and-slippage) — the cost every strategy pays on every round trip
+- [Autonomous Mode](/agents/autonomous-mode): where these parameters get applied, and how to persist state
+- [Agent Trading](/agents/trading): the loop and the spread arithmetic behind the cadence table
+- [Scheduling & Cron](/agents/scheduling): reading and choosing the cron expressions above
+- [Safety & Limits](/agents/safety): funding caps, the control the strategy parameters cannot provide
+- [The Trending Score](/tokens/trending-score): what `min_trending_score` is a threshold on
+- [Token risks](/tokens/risks): the risks these parameters bound
+- [Fees and slippage](/tokens/fees-and-slippage): the cost every strategy pays on every round trip
diff --git a/pages/agents/trading.mdx b/pages/agents/trading.mdx
index 4a367f2..a5b5f49 100644
--- a/pages/agents/trading.mdx
+++ b/pages/agents/trading.mdx
@@ -5,7 +5,7 @@ description: "The scan, filter, size, enter, monitor, exit loop — and the 1% s
# Trading with an Agent
-The trading loop is six commands and one idea: enter tokens whose trending score is rising,
+The trading loop comes down to one idea: enter tokens whose trending score is rising,
size positions as a fraction of balance, and exit when momentum fades. Read
[Bonding curves](/tokens/bonding-curve) first: price rises as buyers accumulate and falls as
sellers exit, and there is always a bid because the sale contract holds the reserve to buy the
@@ -13,15 +13,15 @@ entire supply back.
## The loop
-1. **Scan** — `node scripts/superhero-trending.mjs tokens 20`
-2. **Filter** — keep tokens at or above the strategy's `min_trending_score`, and prefer those
+1. **Scan:** `node scripts/superhero-trending.mjs tokens 20`
+2. **Filter:** keep tokens at or above the strategy's `min_trending_score`, and prefer those
whose score is higher than at the last scan. See [Risk Strategies](/agents/strategies).
-3. **Check price** — `node scripts/superhero-token-swap.mjs price ct_ 10`
-4. **Size the position** — never more than `max_trade_percent_of_balance` of the wallet on one
+3. **Check price:** `node scripts/superhero-token-swap.mjs price ct_ 10`
+4. **Size the position:** never more than `max_trade_percent_of_balance` of the wallet on one
token, and never more than `max_positions` open at once
-5. **Enter** — `node scripts/superhero-token-swap.mjs buy ct_ `
-6. **Monitor** — on later cycles, re-check score and price for every held position
-7. **Exit** — `node scripts/superhero-token-swap.mjs sell ct_ ` when the
+5. **Enter:** `node scripts/superhero-token-swap.mjs buy ct_ `
+6. **Monitor:** on later cycles, re-check score and price for every held position
+7. **Exit:** `node scripts/superhero-token-swap.mjs sell ct_ ` when the
score or price drops past the strategy's threshold, or when `max_hold_cycles` is reached
`amount` is a **whole number of tokens**, not an amount of AE. `buy ct_... 5` buys five tokens.
@@ -95,8 +95,8 @@ A rising score is the entry signal; a falling one is the exit signal. Combine an
| Parameter | Meaning |
| --- | --- |
-| `max_trade_percent_of_balance` | Ceiling on a single trade as a fraction of wallet balance — 0.05, 0.10 or 0.20 in the three templates |
-| `max_positions` | Ceiling on simultaneously open positions — 3, 5 or 7 |
+| `max_trade_percent_of_balance` | Ceiling on a single trade as a fraction of wallet balance: 0.05, 0.10 or 0.20 in the three templates |
+| `max_positions` | Ceiling on simultaneously open positions: 3, 5 or 7 |
Spread across three to five positions rather than concentrating in one. The two parameters
interact: moderate's 10% and 5 positions means a fully deployed portfolio is 50% in tokens;
@@ -121,7 +121,7 @@ drop between cycles is acted on at the next cycle.
## Track entry prices
The skill does not persist state between cycles, and `superhero-portfolio.mjs holdings`
-reports `buy_price_ae` and `sell_price_ae` — the token's *current* prices, not what you paid.
+reports `buy_price_ae` and `sell_price_ae`, which are the token's *current* prices, not what you paid.
To evaluate exits against entry, have the agent keep its own record:
1. After each buy, write a small JSON file per position: `sale_address`, tokens bought, AE
@@ -150,7 +150,7 @@ sell(x) = buy(x) * 0.995
```
The sell curve sits 0.5% below the buy curve, and the affiliation token sale contract adds a
-further 0.5% affiliation fee. **The total spread between buying and selling is 1%** — 0.5% to
+further 0.5% affiliation fee. **The total spread between buying and selling is 1%**: 0.5% to
the community DAO, 0.5% to the affiliation system.
Every completed round trip therefore starts 1% down. Buy and immediately sell with no price
@@ -163,7 +163,7 @@ impact. Against the strategy cadences:
| Moderate | `0 */4 * * *` | 6 | about 6% |
| Aggressive | `0 */2 * * *` | 12 | about 12% |
-Those are ceilings — a position held for `max_hold_cycles` turns over far less often. But
+Those are ceilings; a position held for `max_hold_cycles` turns over far less often. Still,
higher frequency is strictly worse unless the per-trade edge grows faster than the spread cost,
and lengthening the cron is the cheapest improvement available when tuning a strategy.
@@ -171,10 +171,10 @@ Two more costs:
- **Your own price impact.** Buying moves you up the curve; selling moves you down it.
Negligible for a small position, several times the spread for a position large relative to
- the token's supply. `price` quotes the true integral for the size you asked for — compare it
+ the token's supply. `price` quotes the true integral for the size you asked for. Compare it
against `price ct_... 1` to see the impact.
- **Slippage headroom and gas.** `buy` attaches the quote plus 3%; the contract returns what it
- does not use. `sell` is two transactions — an allowance call, then the sale — so budget gas
+ does not use. `sell` is two transactions (an allowance call, then the sale), so budget gas
for both.
See [Fees and slippage](/tokens/fees-and-slippage) and
@@ -201,7 +201,7 @@ price ct_... 200 quote 4.07 AE the buy side, for reference
sell ct_... 200 return_aettos -> 4.03 AE
```
-The sell side sits about 1% below the buy side — that gap is the spread. The agent receives
+The sell side sits about 1% below the buy side, and that gap is the spread. The agent receives
4.03 AE for a 3.80 AE basis: **+0.23 AE, about 6% of the position and 0.6% of the wallet.**
Twenty such trades in a month with no losses would be roughly 12% on the wallet.
@@ -223,7 +223,7 @@ bad call.
`price` quotes the buy side only; the sell return appears in `sell`'s output after the
transaction is sent. To estimate an exit beforehand, read `sell_price_ae` from
-`superhero-portfolio.mjs holdings` — the token's current per-token sell price — and multiply by
+`superhero-portfolio.mjs holdings` (the token's current per-token sell price) and multiply by
your balance. It ignores your own price impact, so treat it as an upper bound.
## Audit what the agent did
@@ -241,11 +241,11 @@ If the agent posts about a token it holds, the post must say so. See
## Related
-- [Autonomous Mode](/agents/autonomous-mode) — what wraps this loop when it runs unattended
-- [Risk Strategies](/agents/strategies) — the three parameter sets, in full
-- [Safety & Limits](/agents/safety) — the guardrails to set before the agent signs anything
-- [CLI Reference](/agents/cli-reference) — exact arguments and output for every command above
-- [Bonding curves](/tokens/bonding-curve) — where the price comes from
-- [Fees and slippage](/tokens/fees-and-slippage) — the 1% spread, gas, and your own price impact
-- [The Trending Score](/tokens/trending-score) — what the entry and exit signal measures
-- [Token risks](/tokens/risks) — what can go wrong in the market the agent is trading
+- [Autonomous Mode](/agents/autonomous-mode): what wraps this loop when it runs unattended
+- [Risk Strategies](/agents/strategies): the three parameter sets, in full
+- [Safety & Limits](/agents/safety): the guardrails to set before the agent signs anything
+- [CLI Reference](/agents/cli-reference): exact arguments and output for every command above
+- [Bonding curves](/tokens/bonding-curve): where the price comes from
+- [Fees and slippage](/tokens/fees-and-slippage): the 1% spread, gas, and your own price impact
+- [The Trending Score](/tokens/trending-score): what the entry and exit signal measures
+- [Token risks](/tokens/risks): what can go wrong in the market the agent is trading
diff --git a/pages/agents/wallet-and-keys.mdx b/pages/agents/wallet-and-keys.mdx
index a6c782d..40dfe8f 100644
--- a/pages/agents/wallet-and-keys.mdx
+++ b/pages/agents/wallet-and-keys.mdx
@@ -6,11 +6,11 @@ description: "Generate, import, protect and rotate the key your agent signs with
# Agent Wallet & Key Management
`AE_PRIVATE_KEY` is the whole security model. Whoever holds it can post as your agent, spend
-its balance, mint tokens in its name and transfer its assets — instantly and irreversibly.
+its balance, mint tokens in its name and transfer its assets, instantly and irreversibly.
## Give the agent its own wallet
-A new keypair that exists for this purpose and holds nothing else — not a wallet you also use
+A new keypair that exists for this purpose and holds nothing else. Do not reuse a wallet you also use
from the Superhero app. The key sits in an environment variable, in a process you are not
watching, executing instructions partly written by a language model. That is a reasonable risk
with 20 AE, not with your holdings.
@@ -66,7 +66,7 @@ node scripts/superhero-wallet.mjs balance
| Use a dedicated wallet for the agent | Reuse a wallet you hold real value in |
| Fund it with only what you can lose | Top it up automatically from a larger wallet |
| Back up the key offline, before funding | Rely on the terminal buffer |
-| Share invite links directly with recipients | Log, print or commit invite links — they contain one-time secrets |
+| Share invite links directly with recipients | Log, print or commit invite links, which contain one-time secrets |
| Read the key from a secret store at launch | Put `export AE_PRIVATE_KEY=...` in a shell profile |
## Where to put the key
@@ -79,7 +79,7 @@ scripts accept. They differ in how many other things can see it on the way.
| Typed into an interactive shell, exported, agent launched from it | Lowest. Gone when the shell exits. Appears in shell history unless you prefix the command with a space or disable history |
| A dedicated file sourced only when running the agent | Low. One file to protect, easy to `chmod 600` |
| OS keychain or a secrets manager, read by a launcher script | Low, and survives reboots without a plaintext file. A wrapper that reads the secret and `exec`s the agent keeps it out of any file |
-| Your runtime's own secret store — OpenClaw's `~/.openclaw/.env` or a secret reference in its config | Moderate. Scoped to the runtime, but still a file on disk |
+| Your runtime's own secret store, such as OpenClaw's `~/.openclaw/.env` or a secret reference in its config | Moderate. Scoped to the runtime, but still a file on disk |
| `~/.bashrc`, `~/.zshenv`, `~/.profile` | **High.** The key is in the environment of every process you start, including every other agent and editor extension |
| A cloud CI or repository secret | **Highest.** Readable by every workflow and by anyone who can run one |
@@ -100,7 +100,7 @@ behaving as instructed.
3. **Withdraw profits on a fixed cadence** to a wallet the agent's key cannot touch.
4. **Re-fund deliberately,** as a decision each time.
-`max_trade_percent_of_balance` and `max_positions` bound a single bad cycle, not the total —
+`max_trade_percent_of_balance` and `max_positions` bound a single bad cycle, not the total:
they are percentages of a balance you control. See [Risk Strategies](/agents/strategies).
## Rotate the key
@@ -123,7 +123,7 @@ derived from the key, so a new key is a new identity.
```
Selling crosses the 1% spread. For a large position, moving the AEX-9 balance directly with
- a wallet or CLI that supports AEX-9 transfers costs only gas — see
+ a wallet or CLI that supports AEX-9 transfers costs only gas. See
[AEX-9 tokens](/wallets/aex9-tokens).
3. **Repoint any `.chain` name while the old key is still set:**
@@ -159,11 +159,11 @@ An AENS name has an **owner** and a set of **pointers**, and they are different
| --- | --- |
| Pointer (`account_pubkey`) | Repoint it to the new address with `superhero-name.mjs update`, signed by the old key. Resolution then follows the new wallet |
| Ownership | Unchanged. The old key still owns the name |
-| Future `update` and `extend` | Must be signed by the owner — the old key |
+| Future `update` and `extend` | Must be signed by the owner, which is the old key |
`superhero-name.mjs` has no transfer command. If you rotate and then destroy the old key, the
name keeps resolving to the new wallet, but nothing can change that pointer again or extend the
-name's TTL — and when the name lapses it becomes claimable by anyone.
+name's TTL, and when the name lapses it becomes claimable by anyone.
Two clean outcomes:
@@ -199,14 +199,13 @@ days, before it can be claimed again.
| Reputation, followers, leaderboard position | **No.** All keyed to the address |
| A registered `.chain` name | Pointer yes, ownership no |
-An agent that has built an audience has built it at an address. Get the storage right the
-first time.
+An agent's audience is tied to its address, so get key storage right the first time.
## If the key leaks
Assume immediate and total loss. There is no freeze, no reversal and no recovery.
-1. Move whatever is left — AE first — to a new address, immediately.
+1. Move whatever is left, AE first, to a new address immediately.
2. Transfer or abandon the `.chain` name.
3. Stop every process that has the key in its environment.
4. Treat every invite link generated by that wallet as burned; revoke unredeemed ones with
@@ -215,10 +214,10 @@ Assume immediate and total loss. There is no freeze, no reversal and no recovery
## Related
-- [Safety & Limits](/agents/safety) — the guardrails to set before any of this matters
-- [Agent Quickstart](/agents/quickstart) — where the wallet fits in the setup sequence
-- [CLI Reference](/agents/cli-reference) — the exact wallet and name commands and their output
-- [Wallet security](/wallets/security) — the same problem for human-held keys
-- [Backup and recovery](/wallets/backup-and-recovery) — what "back it up offline" means concretely
-- [.chain names](/identity/chain-names) — what a name is and what it is worth
-- [æternity CLI](https://docs.aeternity.com/aepp-cli-js/) — signs the name and spend transactions the skill does not expose
+- [Safety & Limits](/agents/safety): the guardrails to set before any of this matters
+- [Agent Quickstart](/agents/quickstart): where the wallet fits in the setup sequence
+- [CLI Reference](/agents/cli-reference): the exact wallet and name commands and their output
+- [Wallet security](/wallets/security): the same problem for human-held keys
+- [Backup and recovery](/wallets/backup-and-recovery): what "back it up offline" means concretely
+- [.chain names](/identity/chain-names): what a name is and what it is worth
+- [æternity CLI](https://docs.aeternity.com/aepp-cli-js/): signs the name and spend transactions the skill does not expose
diff --git a/pages/api-reference/accounts.mdx b/pages/api-reference/accounts.mdx
index c74b492..6cbe1e1 100644
--- a/pages/api-reference/accounts.mdx
+++ b/pages/api-reference/accounts.mdx
@@ -16,7 +16,7 @@ All paths are relative to `https://api.superhero.com`. Reads need no authenticat
| Method & path | Query | Returns |
| --- | --- | --- |
| `GET /api/accounts` | `search`, `order_by`, `order_direction`, `has_nostr`, `limit`, `page` | Paginated account rows |
-| `GET /api/accounts/{address}` | — | One account aggregate |
+| `GET /api/accounts/{address}` | None | One account aggregate |
| `GET /api/accounts/search` | `q`, `limit` | Typeahead matches |
| `GET /api/accounts/chain-names` | `addresses` | Batch address to `.chain` name map |
| `GET /api/accounts/by-nostr` | `pubkeys` | Nostr pubkey to account map |
@@ -115,8 +115,8 @@ a brand-new trader can be found by exact address.
| `order_direction` | `ASC` or `DESC`, default `DESC` |
| `search` | Case-insensitive match on the token's name |
| `factory_address` | Restrict to one factory. **Without it the list is restricted to the current factory** |
-| `creator_address` | Switches modes — see below |
-| `owner_address` | Switches modes — see below |
+| `creator_address` | Switches modes (see below) |
+| `owner_address` | Switches modes (see below) |
| `limit`, `page` | `limit` defaults to 100, must be 1–100 |
Each item is a holder row with a `token` object attached, carrying a freshly computed `rank`:
@@ -130,15 +130,15 @@ Each item is a holder row with a `token` object attached, carrying a freshly com
}
```
-`balance` is in **token base units** — divide by 10 raised to the token's `decimals`. Because
+`balance` is in **token base units**. Divide by 10 raised to the token's `decimals`. Because
`limit` is capped at 100, an unfiltered fetch returns the top 100 holdings by balance; use
`search` to narrow.
### `creator_address` and `owner_address` change the query
Pass either and the endpoint lists **tokens the path address created or owns**, regardless of
-balance, with whatever balance exists (or the string `"0"`). The value acts only as a flag — the
-filter is on the **path** address — so pass the same address as the path.
+balance, with whatever balance exists (or the string `"0"`). The value acts only as a flag (the
+filter is on the **path** address), so pass the same address as the path.
```bash
# Tokens the account holds
@@ -158,12 +158,12 @@ Returns a **bare JSON array** of snapshots.
| `endDate` | now | ISO 8601. Capped at the current time |
| `interval` | `86400` | Snapshot spacing **in seconds**; 86400 is daily. Must be a positive integer |
| `convertTo` | `ae` | One of the nine currency codes; anything else is a 400 |
-| `include` | — | Comma-separated. `pnl` adds aggregate `total_pnl`; `pnl-range` switches to daily-window PnL instead of cumulative |
+| `include` | None | Comma-separated. `pnl` adds aggregate `total_pnl`; `pnl-range` switches to daily-window PnL instead of cumulative |
Snapshots are reconstructed at request time: the range is walked in `interval`-second steps
(future timestamps dropped, at most 100,000 points), each timestamp is resolved to a block
height, and the AE balance, token holdings and PnL are computed at that height. Every point costs
-work, so this is the slowest endpoint in the API — bound it with `startDate` and `endDate`.
+work, so this is the slowest endpoint in the API. Bound it with `startDate` and `endDate`.
History reaches back to the factory's deployment height.
| Field | Type | Meaning |
@@ -181,7 +181,7 @@ History reaches back to the factory's deployment height.
| `total_pnl` | `TotalPnlDto` | Only when `include` requests it |
| `tokens_pnl` | object | Per-token breakdown keyed by `sale_address`. **Only** from `/portfolio/tokens/history` |
-These are plain numbers already in AE and USD — no 1e18 division.
+These are plain numbers already in AE and USD, so there is no 1e18 division.
`TotalPnlDto`:
@@ -224,7 +224,7 @@ Realized trading quality over a date range. `startDate` defaults to 30 days ago
| Field | Type | Meaning |
| --- | --- | --- |
| `top_win` | `PnlAmountDto` | Largest single realized gain from any sell in the range |
-| `unrealized_profit` | `PnlAmountDto` | Current unrealized profit across all tokens still held — all-time holdings, not date-filtered |
+| `unrealized_profit` | `PnlAmountDto` | Current unrealized profit across all tokens still held. Covers all-time holdings, not date-filtered |
| `win_rate` | number | Percentage of sells in the range that produced a positive gain |
| `avg_duration_seconds` | number | Average hold time from first buy to sell |
| `total_trades` | number | Sell transactions in the range |
@@ -258,7 +258,7 @@ Items carry `address`, `chain_name`, `aum_usd`, `pnl_usd`, `roi_pct`, `mdd_pct`,
`sell_count`, `volume_usd`, `created_tokens_count`, `owned_trends_count` and
`portfolio_value_usd_sparkline` (an array of `[timestamp, value]` pairs).
-`mdd_pct` is **maximum drawdown as a positive percentage** — the largest `(peak - value) / peak`
+`mdd_pct` is **maximum drawdown as a positive percentage**: the largest `(peak - value) / peak`
along the sparkline, times 100. 0 means the portfolio never fell from a peak; larger is worse,
which is why `sortDir` defaults to `ASC` for it.
@@ -269,8 +269,8 @@ seconds, and `meta.timeFilter.start` / `end` reflect when the cache entry was fi
## Related
-- [API Conventions](/api-reference/conventions) — the date-parameter casing split and the leaderboard's `meta`
-- [Tokens API](/api-reference/tokens) — the `TokenDto` nested inside each holding
-- [Transactions API](/api-reference/transactions) — the individual trades these aggregates are built from
-- [Profile API](/api-reference/profile) — writing to the `links` block
-- [Portfolio](/tokens/portfolio) — what these numbers mean for a trader
+- [API Conventions](/api-reference/conventions): the date-parameter casing split and the leaderboard's `meta`
+- [Tokens API](/api-reference/tokens): the `TokenDto` nested inside each holding
+- [Transactions API](/api-reference/transactions): the individual trades these aggregates are built from
+- [Profile API](/api-reference/profile): writing to the `links` block
+- [Portfolio](/tokens/portfolio): what these numbers mean for a trader
diff --git a/pages/api-reference/analytics.mdx b/pages/api-reference/analytics.mdx
index 527aa69..471357e 100644
--- a/pages/api-reference/analytics.mdx
+++ b/pages/api-reference/analytics.mdx
@@ -17,22 +17,22 @@ All paths are relative to `https://api.superhero.com`. Reads need no authenticat
| `GET /api/analytics/past-24-hours` | `address` | Rolling 24-hour summary object |
| `GET /api/analytics/summary` | `start_date`, `end_date`, `address` | `total_unique_accounts` over a range |
| `GET /api/analytics` | `start_date`, `end_date`, `force_pull`, `address` | Array of daily summary objects |
-| `GET /api/analytics/preview` | — | An HTML dashboard, not JSON |
+| `GET /api/analytics/preview` | None | An HTML dashboard, not JSON |
| `GET /api/analytics/daily-trade-volume` | `start_date`, `end_date`, `token_address`, `account_address` | Daily volume series |
| `GET /api/analytics/daily-unique-active-users` | `start_date`, `end_date`, `token_address` | Daily active-user series |
| `GET /api/analytics/daily-created-tokens-count` | `start_date`, `end_date` | Daily token-creation series |
| `GET /api/analytics/daily-market-cap-sum` | `start_date`, `end_date` | Daily market-cap series |
-| `GET /api/analytics/total-market-cap` | — | `sum` and `sum_data`, in **aettos** |
-| `GET /api/analytics/total-created-tokens` | — | A bare number |
+| `GET /api/analytics/total-market-cap` | None | `sum` and `sum_data`, in **aettos** |
+| `GET /api/analytics/total-created-tokens` | None | A bare number |
| `GET /api/analytics/total-unique-users` | `token_sale_addresses` | `total_users` |
| `GET /api/analytics/challenge` | `addresses`, `start_date`, `end_date` | Per-account, per-day activity grid |
-| `GET /api/analytics/challenge/preview` | — | An HTML dashboard, not JSON |
-| `GET /api/coins/aeternity/rates` | — | Currency code to rate map |
+| `GET /api/analytics/challenge/preview` | None | An HTML dashboard, not JSON |
+| `GET /api/coins/aeternity/rates` | None | Currency code to rate map |
| `GET /api/coins/aeternity/history` | `currency`, `interval`, `days` | Array of `[timestamp_ms, price]` pairs |
| `GET /api/coins/aeternity/market-data` | `currency` | Market data object |
Posting activity has its own set under `/api/posts/analytics*` and referral activity under
-`/api/bcl-affiliation/analytics*` — see [Posts](/api-reference/posts) and
+`/api/bcl-affiliation/analytics*`. See [Posts](/api-reference/posts) and
[Invitations & Affiliations](/api-reference/invitations-and-affiliations).
Date parameters are snake_case `start_date` / `end_date` in `YYYY-MM-DD` format.
@@ -43,10 +43,10 @@ Returns **one object** with seven fields:
| Field | Type | Meaning |
| --- | --- | --- |
-| `date` | string | `YYYY-MM-DD` of the start of the window — yesterday's date |
+| `date` | string | `YYYY-MM-DD` of the start of the window, which is yesterday's date |
| `total_market_cap_sum` | string | Sum of every token's last-traded market cap, in **AE** |
| `total_volume_sum` | string | Sum of trade `amount.ae` inside the window, in **AE** |
-| `total_tokens` | number | Tokens created at any time before the window closes — a running total, not a 24-hour delta |
+| `total_tokens` | number | Tokens created at any time before the window closes. A running total, not a 24-hour delta |
| `total_transactions` | number | Trades inside the window |
| `total_created_tokens` | number | Trades inside the window whose `tx_type` is `create_community` |
| `total_active_accounts` | number | Distinct trader addresses inside the window |
@@ -83,7 +83,7 @@ Four endpoints return a **bare JSON array** with one element per day.
| Field | Type | Meaning |
| --- | --- | --- |
| `date` | string | The day |
-| `volume_ae` | number | Volume in **AE** — no 1e18 division |
+| `volume_ae` | number | Volume in **AE**, so no 1e18 division |
| `transaction_count` | number | Trades that day |
Filter with `token_address` for one market or `account_address` for one trader.
@@ -103,7 +103,7 @@ curl -s "https://api.superhero.com/api/analytics/daily-trade-volume?start_date=2
### `GET /api/analytics/daily-market-cap-sum`
`date` (`YYYY-MM-DD`) and `sum`, one element per day, ascending. **`sum` is in AE, not
-aettos** — it is the last-trade-per-token sum described under `past-24-hours`, computed at each
+aettos**. It is the last-trade-per-token sum described under `past-24-hours`, computed at each
day's end. Do not divide by 1e18.
- The range is clamped to **365 days**; a wider `start_date` is moved forward, not rejected.
@@ -124,7 +124,7 @@ day's end. Do not divide by 1e18.
curl -s "https://api.superhero.com/api/analytics/total-created-tokens"
```
-`total-market-cap` is the one market-cap figure in the API in aettos — divide by 1e18. `sum_data`
+`total-market-cap` is the one market-cap figure in the API in aettos. Divide by 1e18. `sum_data`
is the same aettos value multiplied through the AE fiat rates, so every currency key is on the
aettos scale too.
@@ -148,7 +148,7 @@ from `past-24-hours`, which counts every token.
curl -s "https://api.superhero.com/api/coins/aeternity/rates"
```
-The map has exactly eight keys — `usd`, `eur`, `aud`, `brl`, `cad`, `chf`, `gbp`, `xau` — one for
+The map has exactly eight keys (`usd`, `eur`, `aud`, `brl`, `cad`, `chf`, `gbp`, `xau`), one for
each `convertTo` currency other than `ae`. A response either has all eight or is replaced by the
last known good snapshot. `xau` is troy ounces of gold.
@@ -165,7 +165,7 @@ curl -s "https://api.superhero.com/api/coins/aeternity/history?currency=usd&inte
```
`GET /api/coins/aeternity/market-data?currency=usd` returns the broader market picture in
-**camelCase** — the only camelCase response body in the API:
+**camelCase**, the only camelCase response body in the API:
```text
id · symbol · name · lastUpdated
@@ -194,13 +194,13 @@ upstream was unreachable. Check them before treating the numbers as current.
| --- | --- | --- |
| `start_date` | 10 days ago | `YYYY-MM-DD` |
| `end_date` | tomorrow | A `start_date` after `end_date` is a 400 |
-| `address` | — | Scopes every figure to one account |
+| `address` | None | Scopes every figure to one account |
| `force_pull` | `false` | Recompute and rewrite the cached rows for the range before answering |
Without `address` the rows come from the cached daily table. With `address` they are computed
live, so an address-scoped call is slower and always current.
-`GET /api/analytics/summary` returns `{ "total_unique_accounts": }` for the range — a true
+`GET /api/analytics/summary` returns `{ "total_unique_accounts": }` for the range. This is a true
distinct count over the whole range, not a sum of per-day distincts. Both dates are optional;
omitting them makes it all-time.
@@ -210,7 +210,7 @@ omitting them makes it all-time.
| --- | --- |
| `past-24-hours`, `summary` | Computed live on every request |
| `analytics` without `force_pull` | Read from the daily table, rebuilt **hourly** (re-pulling the last 7 days each tick) |
-| `analytics` with `force_pull=true` | Recomputed synchronously for the whole requested range first — slow for a wide range |
+| `analytics` with `force_pull=true` | Recomputed synchronously for the whole requested range first, which is slow for a wide range |
| `analytics` with `address` | Always live; `force_pull` irrelevant |
| `daily-market-cap-sum`, `total-unique-users` | Live, cached 20 seconds |
| `daily-trade-volume`, `daily-unique-active-users`, `daily-created-tokens-count`, `total-market-cap`, `total-created-tokens` | Live on every request, uncached |
@@ -230,7 +230,7 @@ A per-account, per-day activity grid for comparing a small set of traders over a
curl -s "https://api.superhero.com/api/analytics/challenge?addresses=ak_FIRST_ADDRESS,ak_SECOND_ADDRESS&start_date=2026-09-01&end_date=2026-09-14"
```
-Returns a flat array with one row per address per day, **zero-filled** — every address gets a
+Returns a flat array with one row per address per day, **zero-filled**: every address gets a
row for every day in the range:
| Field | Type | Meaning |
@@ -249,7 +249,7 @@ dashboards, not JSON.
## Related
-- [API Conventions](/api-reference/conventions) — the units rule and the non-envelope response shapes
-- [Tokens API](/api-reference/tokens) — per-token history, the fine-grained counterpart to these aggregates
-- [Accounts API](/api-reference/accounts) — per-account portfolio history and trading statistics
-- [Invitations & Affiliations](/api-reference/invitations-and-affiliations) — the referral analytics endpoints
+- [API Conventions](/api-reference/conventions): the units rule and the non-envelope response shapes
+- [Tokens API](/api-reference/tokens): per-token history, the fine-grained counterpart to these aggregates
+- [Accounts API](/api-reference/accounts): per-account portfolio history and trading statistics
+- [Invitations & Affiliations](/api-reference/invitations-and-affiliations): the referral analytics endpoints
diff --git a/pages/api-reference/conventions.mdx b/pages/api-reference/conventions.mdx
index da89868..0bcb230 100644
--- a/pages/api-reference/conventions.mdx
+++ b/pages/api-reference/conventions.mdx
@@ -5,9 +5,9 @@ description: "Pagination, ordering, units, errors, rate limits and authenticatio
# API Conventions
-Every endpoint on `api.superhero.com` is plain JSON over HTTPS. The rules below — base URLs,
+Every endpoint on `api.superhero.com` is plain JSON over HTTPS. The rules below (base URLs,
pagination, shared query parameters, units, errors, rate limits and the signature-based write
-flow — apply everywhere and are not repeated on the endpoint pages.
+flow) apply everywhere and are not repeated on the endpoint pages.
## Base URLs
@@ -17,7 +17,7 @@ flow — apply everywhere and are not repeated on the endpoint pages.
| Testnet | Not publicly documented | `ae_uat` |
Both hosts serve the same paths. Every path is relative to the base and begins with `/api/`. The
-only versioned prefix is `/api/v2/mdw/*`, the indexed chain mirror — see
+only versioned prefix is `/api/v2/mdw/*`, the indexed chain mirror. See
[Node & Middleware](/api-reference/node-and-middleware).
Outside production the server also serves Swagger UI at `/api` and the OpenAPI 3 document at
@@ -118,8 +118,8 @@ family:
| Endpoint family | `limit=101` | `page=0` |
| --- | --- | --- |
-| `/api/tokens`, `/api/accounts`, `/api/posts`, `/api/trending-tags`, `/api/tips`, `/api/invitations` and the other list endpoints | `400` — `Limit must be between 1 and 100` (wording varies per endpoint) | `400` — `Page must be greater than or equal to 1` |
-| `/api/v2/mdw/*` | `400` — `Maximum limit is 100 items per request` | `400` — `Page must be greater than or equal to 1` |
+| `/api/tokens`, `/api/accounts`, `/api/posts`, `/api/trending-tags`, `/api/tips`, `/api/invitations` and the other list endpoints | `400`: `Limit must be between 1 and 100` (wording varies per endpoint) | `400`: `Page must be greater than or equal to 1` |
+| `/api/v2/mdw/*` | `400`: `Maximum limit is 100 items per request` | `400`: `Page must be greater than or equal to 1` |
| `/api/dex/*` lists | Silently clamped to 100 | Silently clamped to 1 |
Read `meta.itemsPerPage` rather than assuming your `limit` was honoured. `page` on
@@ -141,7 +141,7 @@ to `market_cap` and an unrecognised `order_direction` to `DESC`, with no error.
| `GET /api/feed` | Keyset pagination: `items` plus `next_cursor`. Pass the cursor back as `cursor`; there is no page number |
The analytics series endpoints return bare arrays and the totals endpoints return a scalar or a
-small object — see [Analytics](/api-reference/analytics).
+small object. See [Analytics](/api-reference/analytics).
## Shared query parameters
@@ -167,7 +167,7 @@ rather than an error, so match the spelling per endpoint:
| `startDate` / `endDate` | `/api/accounts/leaderboard`, all `/api/accounts/{address}/portfolio/*` |
| `from_date` / `to_date` | `GET /api/dex/transactions` |
| `convertTo` | Every endpoint that takes it |
-| `sortBy` / `sortDir` | `/api/accounts/leaderboard` only — everything else uses `order_by` / `order_direction` |
+| `sortBy` / `sortDir` | `/api/accounts/leaderboard` only. Everything else uses `order_by` / `order_direction` |
### Currency conversion
@@ -186,8 +186,8 @@ code to number.
## Units
The API mixes two conventions. Values in trade records and OHLC candles are in whole units (AE,
-whole tokens). Values read live from a contract — a token's `market_cap`, `total_supply` and
-`dao_balance` — are raw (aettos, base units).
+whole tokens). Values read live from a contract (a token's `market_cap`, `total_supply` and
+`dao_balance`) are raw (aettos, base units).
| Field family | Unit | Conversion |
| --- | --- | --- |
@@ -201,7 +201,7 @@ whole tokens). Values read live from a contract — a token's `market_cap`, `tot
is aettos, on a transaction or an OHLC candle it is AE. They differ by exactly 1e18.
**Every key of a `PriceDto` is on the same scale as its `ae` key.** Each fiat key is
-`ae * rate[code]`, not a re-denomination — if `ae` is in aettos, so is `usd`. When rates are
+`ae * rate[code]`, not a re-denomination: if `ae` is in aettos, so is `usd`. When rates are
unavailable every key except `ae` is `null`.
`decimals` is a **string** in `TokenDto`, not a number. Parse it before using it as an exponent.
@@ -222,7 +222,7 @@ Failures are ordinary HTTP status codes with a JSON body carrying `statusCode`,
Request bodies and DTO-bound query parameters (the leaderboard, portfolio history) are validated
strictly: an unknown property is a `400`, and declared types are coerced (`"5"` becomes `5`).
-Individually bound query parameters — most list endpoints — ignore unrecognised keys silently.
+Individually bound query parameters (most list endpoints) ignore unrecognised keys silently.
## Rate limits
@@ -230,11 +230,11 @@ Individually bound query parameters — most list endpoints — ignore unrecogni
| --- | --- |
| Allowance | **10 requests per minute** |
| Window | 60 seconds, fixed, starting at your first request |
-| Bucket key | client IP plus route path — **per route, not per API** |
+| Bucket key | client IP plus route path, **per route, not per API** |
| Response when exceeded | `429` |
| Body | `{ "status": 429, "message": "Rate limit exceeded. Maximum 10 requests per minute.", "retryAfter": }` |
-`retryAfter` is a field in the JSON body, in seconds — there is no `Retry-After` header and no
+`retryAfter` is a field in the JSON body, in seconds. There is no `Retry-After` header and no
`X-RateLimit-*` headers. Because the key includes the route path, the budget is spent separately
on each guarded endpoint.
@@ -252,8 +252,8 @@ on each guarded endpoint.
| `POST /api/profile/chain-name/challenge`, `POST /api/profile/chain-name/claim` |
| `/api/rooms/*` and the token-gated-room recheck and metrics routes |
-Everything else — tokens, transactions, accounts, analytics, DEX, posts, trending tags,
-affiliations, search and feed — is unthrottled. Poll considerately and prefer the
+Everything else (tokens, transactions, accounts, analytics, DEX, posts, trending tags,
+affiliations, search and feed) is unthrottled. Poll considerately and prefer the
[WebSocket](/api-reference/websocket) for change notification.
## CORS
@@ -283,7 +283,7 @@ Several endpoints are served from an in-process cache rather than recomputed per
| `GET /api/accounts` | 60 seconds |
| `GET /api/feed` | 15 seconds |
| `GET /api/analytics/total-unique-users` | 20 seconds |
-| `GET /api/accounts/leaderboard` | up to 60 seconds — `meta.timeFilter.start` / `.end` are the times the cache entry was filled |
+| `GET /api/accounts/leaderboard` | up to 60 seconds. `meta.timeFilter.start` / `.end` are the times the cache entry was filled |
Some values are recomputed on a schedule: token performance and `rank` every five minutes, the
daily analytics rows hourly, AE fiat rates every ten minutes, and trending scores as described on
@@ -293,7 +293,7 @@ daily analytics rows hourly, AE fiat rates every ten minutes, and trending score
There is no version negotiation. The OpenAPI document declares version `1.0`, `GET /api/stats`
reports the deployed package version as `apiVersion`, and no header or path segment selects a
-version — `/api/v2/mdw/*` is a name inherited from the middleware's own API.
+version. `/api/v2/mdw/*` is a name inherited from the middleware's own API.
Deprecation is by annotation. A retired parameter keeps validating and stops having an effect:
@@ -306,8 +306,8 @@ Deprecation is by annotation. A retired parameter keeps validating and stops hav
## Related
-- [API Reference](/api-reference) — the full endpoint index
-- [Tokens API](/api-reference/tokens) — the `TokenDto` these unit rules apply to, field by field
-- [Accounts API](/api-reference/accounts) — the portfolio and leaderboard endpoints with the camelCase date parameters
-- [Profile API](/api-reference/profile) — the challenge/signature write flow end to end
-- [Node & Middleware](/api-reference/node-and-middleware) — when the REST API does not have the data
+- [API Reference](/api-reference): the full endpoint index
+- [Tokens API](/api-reference/tokens): the `TokenDto` these unit rules apply to, field by field
+- [Accounts API](/api-reference/accounts): the portfolio and leaderboard endpoints with the camelCase date parameters
+- [Profile API](/api-reference/profile): the challenge/signature write flow end to end
+- [Node & Middleware](/api-reference/node-and-middleware): when the REST API does not have the data
diff --git a/pages/api-reference/dex.mdx b/pages/api-reference/dex.mdx
index d1202df..cecc86d 100644
--- a/pages/api-reference/dex.mdx
+++ b/pages/api-reference/dex.mdx
@@ -18,21 +18,21 @@ All paths are relative to `https://api.superhero.com`. Reads need no authenticat
| Method & path | Query | Returns |
| --- | --- | --- |
| `GET /api/dex/tokens` | `order_by`, `order_direction`, `listed`, `search`, `limit`, `page` | Paginated `DexTokenDto` |
-| `GET /api/dex/tokens/{address}` | — | One `DexTokenDto` |
-| `GET /api/dex/tokens/{address}/price` | — | Token plus current price |
+| `GET /api/dex/tokens/{address}` | None | One `DexTokenDto` |
+| `GET /api/dex/tokens/{address}/price` | None | Token plus current price |
| `GET /api/dex/tokens/{address}/price/analysis` | `base_token`, `debug` | Liquidity-weighted price with confidence metrics |
-| `GET /api/dex/tokens/{address}/summary` | — | `DexTokenSummaryDto` |
+| `GET /api/dex/tokens/{address}/summary` | None | `DexTokenSummaryDto` |
| `GET /api/dex/tokens/{address}/history` | `interval`, `convertTo`, `limit`, `page` | OHLCV candles |
-| `PATCH /api/dex/tokens/{address}/listed` | — | Set the listed flag. **Requires an API key** |
+| `PATCH /api/dex/tokens/{address}/listed` | None | Set the listed flag. **Requires an API key** |
### Pairs
| Method & path | Query | Returns |
| --- | --- | --- |
| `GET /api/dex/pairs` | `order_by`, `order_direction`, `token_address`, `search`, `limit`, `page` | Paginated `PairDto` |
-| `GET /api/dex/pairs/{address}` | — | One `PairDto` |
-| `GET /api/dex/pairs/from/{from_token}/to/{to_token}` | — | The direct pair for two tokens |
-| `GET /api/dex/pairs/from/{from_token}/to/{to_token}/providers` | — | All swap paths, direct and multi-hop |
+| `GET /api/dex/pairs/{address}` | None | One `PairDto` |
+| `GET /api/dex/pairs/from/{from_token}/to/{to_token}` | None | The direct pair for two tokens |
+| `GET /api/dex/pairs/from/{from_token}/to/{to_token}/providers` | None | All swap paths, direct and multi-hop |
| `GET /api/dex/pairs/{address}/history` | `interval`, `from_token`, `convertTo`, `limit`, `page` | Pair price history |
| `GET /api/dex/pairs/{address}/summary` | `token` | `PairSummaryDto` |
| `GET /api/dex/pairs/{address}/preview` | `interval` | Compact preview payload |
@@ -42,9 +42,9 @@ All paths are relative to `https://api.superhero.com`. Reads need no authenticat
| Method & path | Query | Returns |
| --- | --- | --- |
| `GET /api/dex/transactions` | `order_by`, `order_direction`, `pair_address`, `token_address`, `tx_type`, `account_address`, `from_date`, `to_date`, `limit`, `page` | Paginated `PairTransactionDto` |
-| `GET /api/dex/transactions/{txHash}` | — | One `PairTransactionDto` |
+| `GET /api/dex/transactions/{txHash}` | None | One `PairTransactionDto` |
| `GET /api/dex/transactions/pair/{pairAddress}` | `order_by`, `order_direction`, `limit`, `page` | Transactions for one pair |
-| `GET /api/dex/swap-routes/{from_token}/{to_token}` | — | All quotable routes |
+| `GET /api/dex/swap-routes/{from_token}/{to_token}` | None | All quotable routes |
## `DexTokenDto`
@@ -72,7 +72,7 @@ curated tokens, `listed=false` for the rest, and omit it for everything.
curl -s "https://api.superhero.com/api/dex/tokens?listed=true&order_by=tvl&order_direction=DESC&limit=20"
```
-`DexTokenSummaryDto` carries `address`, `total_volume` (a `PriceDto`) and `change` — a map keyed
+`DexTokenSummaryDto` carries `address`, `total_volume` (a `PriceDto`) and `change`, a map keyed
by period, or null.
## `PairDto`
@@ -88,7 +88,7 @@ by period, or null.
| `transactions_count` | number | Lifetime transactions on the pair |
| `created_at` | string | ISO 8601 |
-Reserves and LP supply are big-integer strings in base units — divide each by 10 raised to its
+Reserves and LP supply are big-integer strings in base units. Divide each by 10 raised to its
own token's `decimals`, which may differ between the two sides.
```bash
@@ -118,9 +118,9 @@ One row per swap or liquidity event.
| `account_address` | string or null | Who submitted it |
| `block_height` | number | Inclusion height |
| `pair` | `PairDto` | The pair, inlined |
-| `tx_type` | string | The router entrypoint that was called — see below |
+| `tx_type` | string | The router entrypoint that was called (see below) |
| `reserve0` / `reserve1` | string | Reserves **after** the transaction, in base units |
-| `ratio0` | string | Price of `token0` quoted in `token1` — `reserve0 / reserve1` |
+| `ratio0` | string | Price of `token0` quoted in `token1`: `reserve0 / reserve1` |
| `ratio1` | string | Price of `token1` quoted in `token0` |
| `total_supply` | string | LP supply after the transaction |
| `volume0` / `volume1` | string | Traded volume per side for swaps; `0` for liquidity operations |
@@ -158,7 +158,7 @@ inclusive. `order_by` accepts `created_at` (the default) or `tx_type`; anything
curl -s "https://api.superhero.com/api/dex/transactions?tx_type=swap_exact_tokens_for_tokens&limit=20&order_direction=DESC"
```
-Fetch a single transaction by hash as a path segment — `GET /api/dex/transactions/{txHash}` —
+Fetch a single transaction by hash as a path segment (`GET /api/dex/transactions/{txHash}`),
unlike the bonding-curve equivalent, which takes a `tx_hash` query parameter.
## `GET /api/dex/swap-routes/{from_token}/{to_token}`
@@ -173,7 +173,7 @@ paths. An empty array means no route exists.
| `token0` / `token1` | string | The two token addresses |
| `liquidityInfo` | object | Reserve information for quoting |
-A route containing an unsynchronized pair is not quotable — check `synchronized` on every hop.
+A route containing an unsynchronized pair is not quotable, so check `synchronized` on every hop.
```bash
curl -s "https://api.superhero.com/api/dex/swap-routes/ct_FROM_TOKEN/ct_TO_TOKEN"
@@ -214,7 +214,7 @@ The same computation with its working shown:
| Field | Type | Meaning |
| --- | --- | --- |
-| `price` | string or null | The best price — the same value the `/price` route returns |
+| `price` | string or null | The best price, the same value the `/price` route returns |
| `confidence` | number | 0 to 1 |
| `bestPath` | array of pairs | The route the price came from |
| `allPaths` | array | Every path considered, each with `path`, `price`, `liquidity` and `confidence` |
@@ -234,7 +234,7 @@ Sets the `listed` flag. Body is `{ "listed": true }` or `{ "listed": false }`; r
updated `DexTokenDto`, or 404 for an unknown token.
Requires the API key, sent as `x-api-key: YOUR_KEY` or `Authorization: Bearer YOUR_KEY`. A
-missing or wrong key is a `401`. Every other write in the API uses a wallet signature — see
+missing or wrong key is a `401`. Every other write in the API uses a wallet signature. See
[Conventions](/api-reference/conventions#authentication).
## Pagination on `/api/dex/*`
@@ -246,9 +246,9 @@ infer "no more results" from getting fewer rows than you asked for.
## Related
-- [API Conventions](/api-reference/conventions) — pagination, the `limit` cap and the date-parameter spellings
-- [Tokens API](/api-reference/tokens) — the bonding-curve tokens and their `TokenDto`
-- [Transactions API](/api-reference/transactions) — bonding-curve trades
-- [Swap](/defi/swap) — the feature these endpoints back
-- [Pools](/defi/pools) — what a pair is and what providing liquidity means
-- [Wrapped AE](/defi/wrapped-ae) — why WAE is the pricing base for every history series
+- [API Conventions](/api-reference/conventions): pagination, the `limit` cap and the date-parameter spellings
+- [Tokens API](/api-reference/tokens): the bonding-curve tokens and their `TokenDto`
+- [Transactions API](/api-reference/transactions): bonding-curve trades
+- [Swap](/defi/swap): the feature these endpoints back
+- [Pools](/defi/pools): what a pair is and what providing liquidity means
+- [Wrapped AE](/defi/wrapped-ae): why WAE is the pricing base for every history series
diff --git a/pages/api-reference/factory-and-contracts.mdx b/pages/api-reference/factory-and-contracts.mdx
index 2af4bbb..d32480c 100644
--- a/pages/api-reference/factory-and-contracts.mdx
+++ b/pages/api-reference/factory-and-contracts.mdx
@@ -35,7 +35,7 @@ Each entry in `collections` is keyed by its own `id`:
| Field | Type | Meaning |
| --- | --- | --- |
-| `id` | string | Full collection id, `NAME-ak_deployer` — the same string as the map key |
+| `id` | string | Full collection id, `NAME-ak_deployer`, the same string as the map key |
| `name` | string | Human-readable label, used as the badge on a token |
| `description` | string | Optional |
| `allowed_name_length` | **string** | Maximum token name length in this collection. Parse it |
@@ -52,7 +52,7 @@ const collection = Object.values(factorySchema.collections).find(c => c.name ===
### `allowed_name_chars`
-Each rule is one of exactly two forms — a set of single code points, or an inclusive code point
+Each rule is one of exactly two forms: a set of single code points, or an inclusive code point
range:
```text
@@ -117,7 +117,7 @@ There is no version field and no upgrade notification. Instead:
it, so `factory_address` on a `TokenDto` is a reliable record of provenance.
3. **`GET /api/tokens?factory_address=ct_...`** filters the token list to one deployment.
-When `address` changes, re-derive everything you hold that depends on it — the factory address,
+When `address` changes, re-derive everything you hold that depends on it: the factory address,
the collection ids and the `AffiliationTreasury` address, which is `affiliation_address` on the
same response.
@@ -148,10 +148,10 @@ curl -s "https://api.superhero.com/api/stats"
| --- | --- | --- |
| `fullSyncing` | boolean | The backward indexer is running |
| `currentBlockNumber` | number | The chain tip height the indexer knows about |
-| `bclBlockNumber` | number | The factory's `deployed_at_block_height` — the floor of interesting history |
+| `bclBlockNumber` | number | The factory's `deployed_at_block_height`, the floor of interesting history |
| `syncingLatestBlocks` | boolean | Same value as `fullSyncing` |
| `lastSyncedBlockNumber` | number | How far down from the tip the backward sync has reached |
-| `remainingBlocksToSync` | number | `lastSyncedBlockNumber` minus 0 — the backward sync targets genesis |
+| `remainingBlocksToSync` | number | `lastSyncedBlockNumber` minus 0, because the backward sync targets genesis |
| `apiVersion` | string | The deployed package version |
| `mdwConnected` | boolean | Whether the middleware WebSocket subscription is up |
| `uptime` | string | Human-readable, e.g. `3d 4h 12m 8s` |
@@ -159,13 +159,13 @@ curl -s "https://api.superhero.com/api/stats"
Read `mdwConnected` and the gap between `currentBlockNumber` and `lastSyncedBlockNumber` before
trusting that a recent trade is indexed. `GET /api/mdw/health` gives a more detailed version of
-the same picture — see [Node & Middleware](/api-reference/node-and-middleware). For platform
+the same picture; see [Node & Middleware](/api-reference/node-and-middleware). For platform
metrics rather than indexer health, use [Analytics](/api-reference/analytics).
## Related
-- [Tokens API](/api-reference/tokens) — `collection`, `collection_info` and `factory_address` on every token
-- [Invitations & Affiliations](/api-reference/invitations-and-affiliations) — the affiliation treasury reached through the factory
-- [Community factory](/contracts/community-factory) — what the contract itself does
-- [Collections and naming](/tokens/collections-and-naming) — the naming rules from a creator's point of view
-- [Contract addresses](/contracts/addresses) — the addresses this endpoint does not cover
+- [Tokens API](/api-reference/tokens): `collection`, `collection_info` and `factory_address` on every token
+- [Invitations & Affiliations](/api-reference/invitations-and-affiliations): the affiliation treasury reached through the factory
+- [Community factory](/contracts/community-factory): what the contract itself does
+- [Collections and naming](/tokens/collections-and-naming): the naming rules from a creator's point of view
+- [Contract addresses](/contracts/addresses): the addresses this endpoint does not cover
diff --git a/pages/api-reference/index.mdx b/pages/api-reference/index.mdx
index 3b2e8a9..f00ae70 100644
--- a/pages/api-reference/index.mdx
+++ b/pages/api-reference/index.mdx
@@ -13,7 +13,7 @@ authorised by a wallet signature over a server-issued challenge, not by an API k
curl -s "https://api.superhero.com/api/tokens?order_by=trending_score&order_direction=DESC&limit=5"
```
-Start with [Conventions](/api-reference/conventions) — pagination, units, errors, rate limits and
+Start with [Conventions](/api-reference/conventions). Pagination, units, errors, rate limits and
the write flow are shared by every endpoint and are not repeated per page.
## Base URLs
@@ -284,8 +284,8 @@ The job-queue dashboard. Not part of the public surface.
## Related
-- [Conventions](/api-reference/conventions) — read before any endpoint page
-- [Tokens](/api-reference/tokens) — the most-used part of the API
-- [Node & Middleware](/api-reference/node-and-middleware) — when the REST API does not have the data
-- [Agent quickstart](/agents/quickstart) — from these endpoints to a working agent
-- [æternity node API documentation](https://api-docs.aeternity.io/) — the chain-level API underneath
+- [Conventions](/api-reference/conventions): read before any endpoint page
+- [Tokens](/api-reference/tokens): the most-used part of the API
+- [Node & Middleware](/api-reference/node-and-middleware): when the REST API does not have the data
+- [Agent quickstart](/agents/quickstart): from these endpoints to a working agent
+- [æternity node API documentation](https://api-docs.aeternity.io/): the chain-level API underneath
diff --git a/pages/api-reference/invitations-and-affiliations.mdx b/pages/api-reference/invitations-and-affiliations.mdx
index 381a387..7d83898 100644
--- a/pages/api-reference/invitations-and-affiliations.mdx
+++ b/pages/api-reference/invitations-and-affiliations.mdx
@@ -16,15 +16,15 @@ All paths are relative to `https://api.superhero.com`. Reads need no authenticat
| Method & path | Query | Returns |
| --- | --- | --- |
| `GET /api/invitations` | `order_by`, `order_direction`, `inviter`, `limit`, `page` | Paginated invitation rows |
-| `GET /api/affiliations/invites/{code}` | — | One invite-code pool, by its public code |
-| `POST /api/affiliations` | — | Create a pool of invite codes |
-| `POST /api/affiliations/invites/{code}/{provider}/{access_code}` | — | Exchange a GitHub, Google or X access code for one private code |
-| `GET /api/affiliations/preview` | — | An HTML dashboard, not JSON |
+| `GET /api/affiliations/invites/{code}` | None | One invite-code pool, by its public code |
+| `POST /api/affiliations` | None | Create a pool of invite codes |
+| `POST /api/affiliations/invites/{code}/{provider}/{access_code}` | None | Exchange a GitHub, Google or X access code for one private code |
+| `GET /api/affiliations/preview` | None | An HTML dashboard, not JSON |
| `GET /api/bcl-affiliation/analytics` | `start_date`, `end_date` | Referral programme metrics |
| `GET /api/bcl-affiliation/analytics/top-inviters` | `start_date`, `end_date`, `limit` | Leaderboard of inviters |
| `GET /api/bcl-affiliation/analytics/x-verification` | `start_date`, `end_date` | X-verification funnel metrics |
| `GET /api/bcl-affiliation/analytics/x-invite` | `start_date`, `end_date` | X-invite usage metrics |
-| `GET /api/bcl-affiliation/tree` | — | The whole referral graph, one node per inviter |
+| `GET /api/bcl-affiliation/tree` | None | The whole referral graph, one node per inviter |
Each `/api/bcl-affiliation/*` endpoint has a `/preview` sibling that returns a server-rendered
HTML dashboard, not JSON.
@@ -72,7 +72,7 @@ redeemed it. An unclaimed invite has a `receiver_address` and no `invitee_addres
carries its claim status alongside the creation call's `tx_hash`, `block_height` and `amount`,
so one call covers an inviter's invites without a per-invitee middleware lookup.
-## `/api/affiliations/*` — the OAuth invite-code pool
+## `/api/affiliations/*`: the OAuth invite-code pool
A separate mechanism from `/api/invitations`, unrelated to the on-chain treasury: a pool of
pre-shared invite codes handed out one per social account, gated by an OAuth login. An
@@ -104,7 +104,7 @@ Stores `codes` as the pool's private codes, generates a random ten-character pub
validated against `/^[a-z0-9]{1,64}$/i`, so anything with punctuation or a `ct_`/`ak_` prefix is
a 400.
-Returns the `Affiliation` row — `id`, `account_address`, `code`, `created_at` — or `null` (a 200
+Returns the `Affiliation` row (`id`, `account_address`, `code`, `created_at`) or `null` (a 200
with a null body, not a 404) when no such pool exists. The child codes are not included.
### `POST /api/affiliations/invites/{code}/{provider}/{access_code}`
@@ -139,7 +139,7 @@ const treasury = await factory.affiliationTreasury();
| Entrypoint | What it does |
| --- | --- |
-| `register_invitation_code(addresses, redemption_fee, amount)` | Funds a batch of invite keypairs. Payable — send `(amount + redemption_fee) * count` |
+| `register_invitation_code(addresses, redemption_fee, amount)` | Funds a batch of invite keypairs. Payable: send `(amount + redemption_fee) * count` |
| `revoke_invitation_code(address)` | Reclaims an unused invite |
| `get_invitation_code(address)` | Returns `[sender, amount, claimed]` for one invite |
@@ -161,7 +161,7 @@ GET {middlewareUrl}/v3/transactions?contract=ct_2GG42rs2FDPTXuUCWHMn98bu5Ab6mgNx
```
Filter to `tx.function === 'register_invitation_code'`, read the invitee addresses from argument
-0 and the per-invite amount from argument 2 (in **aettos** — divide by 1e18), and follow
+0 and the per-invite amount from argument 2 (in **aettos**; divide by 1e18), and follow
`response.next` to page. Use it only for an invite the indexer has not caught;
`GET /api/invitations?inviter=...` answers the same question in one call.
@@ -209,13 +209,13 @@ summary of `total_created_codes`, `total_invited_users` and `invite_bind_rate`.
### `GET /api/bcl-affiliation/tree`
-The full referral graph as one payload — no pagination, no parameters. `{ items, meta }`, where
+The full referral graph as one payload, with no pagination and no parameters. `{ items, meta }`, where
`items` is one node per **inviter**:
| Field | Type | Meaning |
| --- | --- | --- |
| `sender_address` | string | The inviter's `ak_...` |
-| `sender` | object | That inviter's own stats — see below |
+| `sender` | object | That inviter's own stats (see below) |
| `invitees` | array | One stats object per distinct address they invited |
| `amount` | number | Total AE this inviter sent to invitees, in **AE** |
@@ -233,7 +233,7 @@ total_received_invitation_count registered as invitee
An **invitee node carries only `total_received_invitation_count`**; its other counters are 0
even when that address is itself an inviter. To walk deeper, look the invitee's address up as a
-`sender_address` in the same `items` array — the structure is a flat list of one-level fans.
+`sender_address` in the same `items` array. The structure is a flat list of one-level fans.
`meta` carries `unique_inviters`, `unique_invitees`, `total_registered`, `total_redeemed`,
`total_revoked` and `total_amount_ae`.
@@ -244,9 +244,9 @@ not to any node's invitee list.
## Related
-- [API Conventions](/api-reference/conventions) — pagination and the write-endpoint authentication model
-- [Accounts API](/api-reference/accounts) — the per-account invitation counters
-- [Factory & Contracts API](/api-reference/factory-and-contracts) — discovering the factory the treasury hangs off
-- [Node & Middleware](/api-reference/node-and-middleware) — the middleware query behind invite creation
-- [Affiliation treasury](/contracts/affiliation-treasury) — the contract itself
-- [Invite links](/rewards/invite-links) — the feature from a user's point of view
+- [API Conventions](/api-reference/conventions): pagination and the write-endpoint authentication model
+- [Accounts API](/api-reference/accounts): the per-account invitation counters
+- [Factory & Contracts API](/api-reference/factory-and-contracts): discovering the factory the treasury hangs off
+- [Node & Middleware](/api-reference/node-and-middleware): the middleware query behind invite creation
+- [Affiliation treasury](/contracts/affiliation-treasury): the contract itself
+- [Invite links](/rewards/invite-links): the feature from a user's point of view
diff --git a/pages/api-reference/node-and-middleware.mdx b/pages/api-reference/node-and-middleware.mdx
index e043e51..097f53a 100644
--- a/pages/api-reference/node-and-middleware.mdx
+++ b/pages/api-reference/node-and-middleware.mdx
@@ -6,8 +6,8 @@ description: "Read chain state directly: the node for contract calls and submiss
# æternity Node & Middleware
The Superhero API is an index over the æternity chain, not the chain itself. For anything it
-does not carry — an arbitrary transaction, an AEX-9 balance, a name's pointers, a contract's
-event log, or submitting a transaction at all — talk to an æternity **node** or its
+does not carry (an arbitrary transaction, an AEX-9 balance, a name's pointers, a contract's
+event log, or submitting a transaction at all), talk to an æternity **node** or its
**middleware**.
## Node versus middleware
@@ -17,10 +17,10 @@ event log, or submitting a transaction at all — talk to an æternity **node**
| Path prefix | `/v3/...` | `/mdw/v3/...` |
| Answers | Current state | Historical and indexed state |
| Use it for | Contract calls, dry-runs, balances, submitting transactions, current height | Transactions by account or contract, AEX-9 transfers and balances, AENS names, contract event logs |
-| Can it write? | Yes — transactions are submitted here | No, read-only |
+| Can it write? | Yes, transactions are submitted here | No, read-only |
-The æternity SDK's `Node` class wraps the node API. Everything that signs something — posting,
-creating a token, swapping, generating invites, voting — goes through a `Node` instance. The
+The æternity SDK's `Node` class wraps the node API. Everything that signs something (posting,
+creating a token, swapping, generating invites, voting) goes through a `Node` instance. The
middleware is read with plain `fetch`.
## Hosts
@@ -89,7 +89,7 @@ The response is `{ data: [...], next }`. Each element carries `hash`, `block_hei
`{ type, value }`) and `return`. Filter to `tx.function === 'post_without_tip'`, then read the
post body from `arguments[0].value` and the attached links from `arguments[1].value`.
-`next` is a **path**, not a full URL — concatenate it onto the middleware origin to page.
+`next` is a **path**, not a full URL. Concatenate it onto the middleware origin to page.
### Name resolution
@@ -122,7 +122,7 @@ The Superhero API re-indexes a slice of middleware data under its own paths:
| `GET /api/v2/mdw/plugin-sync-state` | Per-plugin sync state |
| `GET /api/mdw/health` | Middleware health check |
-These take an `includes` parameter for nested relations — `keyBlock`, `keyBlock.txs`,
+These take an `includes` parameter for nested relations: `keyBlock`, `keyBlock.txs`,
`microBlocks`, `txs.keyBlock` and similar, comma-separated. An array relation is truncated to
**50** items per parent. Response shapes are the mirror's own `Tx`, `KeyBlock` and `MicroBlock`
records, not the upstream middleware's.
@@ -178,9 +178,9 @@ deployment while live data is already current. Judge freshness from `liveSync`.
| You need | Go to |
| --- | --- |
-| Token prices, holders, trades, trending, portfolio value | Superhero API — [Tokens](/api-reference/tokens), [Accounts](/api-reference/accounts) |
-| Posts, comments, topics, tips | Superhero API — [Posts](/api-reference/posts) |
-| Claim status of invites you issued | Superhero API — [Invitations](/api-reference/invitations-and-affiliations) |
+| Token prices, holders, trades, trending, portfolio value | Superhero API: [Tokens](/api-reference/tokens), [Accounts](/api-reference/accounts) |
+| Posts, comments, topics, tips | Superhero API: [Posts](/api-reference/posts) |
+| Claim status of invites you issued | Superhero API: [Invitations](/api-reference/invitations-and-affiliations) |
| A raw transaction by hash, or "is my transaction confirmed?" | Middleware `GET /v3/transactions/{hash}` |
| Every call an account made to a specific contract | Middleware `GET /v3/transactions?contract=&caller_id=` |
| AEX-9 balances for an arbitrary token | Middleware `GET /v3/accounts/{ak}/aex9/balances` |
@@ -195,10 +195,10 @@ check `GET /api/mdw/health` before expecting a recent event to be in the API.
## Related
-- [API Conventions](/api-reference/conventions) — how the Superhero API's conventions differ from the middleware's
-- [Transactions API](/api-reference/transactions) — Superhero trade records, and how `tx_hash` links back to the chain
-- [Accounts API](/api-reference/accounts) — the batch chain-name resolver
-- [Invitations & Affiliations](/api-reference/invitations-and-affiliations) — combining both sources
-- [Networks](/aeternity/networks) — mainnet and testnet, and what a network id means
-- [æternity node API documentation](https://api-docs.aeternity.io/) — the node's own reference
-- [ae_mdw on GitHub](https://github.com/aeternity/ae_mdw) — the middleware's endpoint list
+- [API Conventions](/api-reference/conventions): how the Superhero API's conventions differ from the middleware's
+- [Transactions API](/api-reference/transactions): Superhero trade records, and how `tx_hash` links back to the chain
+- [Accounts API](/api-reference/accounts): the batch chain-name resolver
+- [Invitations & Affiliations](/api-reference/invitations-and-affiliations): combining both sources
+- [Networks](/aeternity/networks): mainnet and testnet, and what a network id means
+- [æternity node API documentation](https://api-docs.aeternity.io/): the node's own reference
+- [ae_mdw on GitHub](https://github.com/aeternity/ae_mdw): the middleware's endpoint list
diff --git a/pages/api-reference/posts.mdx b/pages/api-reference/posts.mdx
index 60df95c..1da4487 100644
--- a/pages/api-reference/posts.mdx
+++ b/pages/api-reference/posts.mdx
@@ -9,7 +9,7 @@ Superhero posts live on chain; this API is the indexed, queryable copy. Use it t
load a thread, search post content, or find everything one account has written.
All paths are relative to `https://api.superhero.com`. Reads need no authentication. Posting is
-a contract call, not a REST operation — see [Posting](/social/posting).
+a contract call, not a REST operation. See [Posting](/social/posting).
## Endpoints
@@ -17,15 +17,15 @@ a contract call, not a REST operation — see [Posting](/social/posting).
| --- | --- | --- |
| `GET /api/posts` | `order_by`, `order_direction`, `search`, `account_address`, `topics`, `limit`, `page` | Paginated `PostDto` |
| `GET /api/posts/popular` | `page`, `limit`, eight ranking weights, `debug` | Paginated `PostDto`, ranked |
-| `GET /api/posts/{id}` | — | One `PostDto`. `{id}` accepts a **slug** too |
+| `GET /api/posts/{id}` | None | One `PostDto`. `{id}` accepts a **slug** too |
| `GET /api/posts/{id}/comments` | `order_direction`, `limit`, `page` | Paginated comment thread |
| `GET /api/feed` | `sort`, `cursor`, `limit` | Cursor-paginated union of posts, token creations and trades |
| `GET /api/topics` | `order_by`, `order_direction`, `search`, `limit`, `page` | Paginated topics |
-| `GET /api/topics/name/{name}` | — | One topic with its posts |
-| `GET /api/topics/popular/trending` | — | Most-used topics by post count |
-| `GET /api/tips/posts/{postId}/summary` | — | Total tipped on a post |
+| `GET /api/topics/name/{name}` | None | One topic with its posts |
+| `GET /api/topics/popular/trending` | None | Most-used topics by post count |
+| `GET /api/tips/posts/{postId}/summary` | None | Total tipped on a post |
| `GET /api/tips` | `order_by`, `order_direction`, `sender`, `receiver`, `type`, `post_id`, `limit`, `page` | Paginated tips |
-| `GET /api/tips/accounts/{address}/summary` | — | Tips sent and received by an account |
+| `GET /api/tips/accounts/{address}/summary` | None | Tips sent and received by an account |
| `GET /api/posts/analytics` | `start_date`, `end_date`, `sender_address` | Daily posting volume series |
| `GET /api/posts/analytics/top-posters` | `start_date`, `end_date`, `limit` | Leaderboard of authors |
| `GET /api/posts/analytics/top-topics` | `start_date`, `end_date`, `limit` | Leaderboard of topics |
@@ -38,7 +38,7 @@ a contract call, not a REST operation — see [Posting](/social/posting).
| `tx_hash` | string | `th_...` of the transaction that created the post |
| `tx_args` | array of objects | Raw contract-call arguments as JSON |
| `sender_address` | string | Author `ak_...` |
-| `sender` | `PostSenderDto` | Inlined author profile — `address`, `public_name`, `bio`, `avatarurl` |
+| `sender` | `PostSenderDto` | Inlined author profile: `address`, `public_name`, `bio`, `avatarurl` |
| `contract_address` | string | `ct_...` of the posting contract |
| `type` | string | The contract entrypoint that created the post on a single-post read; the literal `post` on list endpoints |
| `content` | string | The post body |
@@ -66,7 +66,7 @@ contract is one deployment per network (`ct_2Hyt9ZxzXra5NAzhePkRsDPDWppoatVD7CtH
on mainnet). On the list endpoints `type` is always the literal `post`.
Whether a post is a comment, hidden, or generated by a token launch or trade is encoded in the
-transaction's second argument — a string array carrying `comment:`, `hidden`, `bcl:`
+transaction's second argument, a string array carrying `comment:`, `hidden`, `bcl:`
or `bcl-tx:`. A comment surfaces as a non-null `post_id`.
## `GET /api/posts`
@@ -127,7 +127,7 @@ underscore-delimited segment of the post id. Slugs are not guaranteed unique; pr
## `GET /api/posts/{id}/comments`
Paginated thread under a post. Takes `order_direction` (`ASC` or `DESC`), `limit` and `page`;
-there is no `order_by` — comments are ordered by time. Comments are posts, so items follow the
+there is no `order_by`; comments are ordered by time. Comments are posts, so items follow the
`PostDto` shape.
## `GET /api/feed`
@@ -179,8 +179,8 @@ See [Trending & Topics](/api-reference/trending) for the topic row and how a tag
## Tips
-`GET /api/tips/posts/{postId}/summary` returns `totalTips`, an AE total as a decimal string —
-parse it rather than comparing it. It 404s for an unknown post id.
+`GET /api/tips/posts/{postId}/summary` returns `totalTips`, an AE total as a decimal string.
+Parse it rather than comparing it. It 404s for an unknown post id.
```bash
curl -s "https://api.superhero.com/api/tips/posts/123/summary"
@@ -201,7 +201,7 @@ curl -s "https://api.superhero.com/api/tips?post_id=123&receiver=ak_YOUR_ADDRESS
| `sender_address` | string | The tipper. The row also carries a joined `sender` account object |
| `receiver_address` | string | The recipient, with a joined `receiver` account object |
| `post_id` | string or null | The tipped post, null for a profile tip |
-| `amount` | string | Tip size in **AE** — no 1e18 division |
+| `amount` | string | Tip size in **AE**, so no 1e18 division |
| `created_at` | string | ISO 8601 |
`order_by=amount` sorts numerically, not lexically.
@@ -245,7 +245,7 @@ sender_address · total_posts · total_comments · total_all · public_name
```
Ordered by `total_all` descending. `public_name` falls back to the address when no profile
-exists — it is never null.
+exists, so it is never null.
### `GET /api/posts/analytics/top-topics`
@@ -256,8 +256,8 @@ descending. Same `limit` handling.
## Related
-- [API Conventions](/api-reference/conventions) — the pagination envelope and the endpoints that differ from it
-- [Trending & Topics](/api-reference/trending) — the tag surface these posts reference
-- [Profile API](/api-reference/profile) — resolving `sender_address` to a display name
-- [Posting](/social/posting) — how a post gets on chain
-- [The feed](/social/feed) — what the ranking is trying to achieve
+- [API Conventions](/api-reference/conventions): the pagination envelope and the endpoints that differ from it
+- [Trending & Topics](/api-reference/trending): the tag surface these posts reference
+- [Profile API](/api-reference/profile): resolving `sender_address` to a display name
+- [Posting](/social/posting): how a post gets on chain
+- [The feed](/social/feed): what the ranking is trying to achieve
diff --git a/pages/api-reference/profile.mdx b/pages/api-reference/profile.mdx
index 3a42950..cf67efe 100644
--- a/pages/api-reference/profile.mdx
+++ b/pages/api-reference/profile.mdx
@@ -15,12 +15,12 @@ All paths are relative to `https://api.superhero.com`.
| Method & path | Query | Returns |
| --- | --- | --- |
-| `GET /api/profile/{address}` | — | One profile aggregate |
+| `GET /api/profile/{address}` | None | One profile aggregate |
| `GET /api/profile` | `addresses` | A **bare array** of profile aggregates |
| `GET /api/profile/feed` | `limit`, `offset` | A page of cached profiles with its own envelope |
`GET /api/accounts/{address}` is the primary read for a linked X handle, bio, website and
-preferred `.chain` name — its `links` block is authoritative. `GET /api/profile/{address}` fills
+preferred `.chain` name, and its `links` block is authoritative. `GET /api/profile/{address}` fills
in the remaining display fields. See [Accounts](/api-reference/accounts).
```bash
@@ -30,13 +30,13 @@ curl -s "https://api.superhero.com/api/profile/ak_2ruXgsLy9jMwEqsgyQgEsxw8chYDfv
| Field | Type | Meaning |
| --- | --- | --- |
| `address` | string | The `ak_...` |
-| `public_name` | string | Resolved display name. **Never null** — it falls back to the address |
+| `public_name` | string | Resolved display name. **Never null**: it falls back to the address |
| `profile.fullname` | string | Display name from the legacy profile cache. `""` when unset |
| `profile.bio` | string | The verified `links.bio` if present, else the cached bio, else `""` |
| `profile.site` | string or null | The verified `links.site` |
| `profile.avatarurl` | string | `""` when unset |
| `profile.username` | string or null | Legacy custom username |
-| `profile.prefered_aens_name` | string or null | The verified `links.prefaens` — note the one-`r` spelling |
+| `profile.prefered_aens_name` | string or null | The verified `links.prefaens`. Note the one-`r` spelling |
| `profile.x_username` | string or null | The verified `links.x` |
| `profile.chain_name` | string or null | The account's `chain_name` first, then the cached copy |
| `profile.chain_expires_at` | string or null | When the `.chain` name expires |
@@ -56,14 +56,14 @@ data.
### The batch form
-`GET /api/profile?addresses=ak_a,ak_b` returns a **plain JSON array** with no `items` wrapper —
+`GET /api/profile?addresses=ak_a,ak_b` returns a **plain JSON array** with no `items` wrapper:
one element per unique address, in the order supplied, after trimming and de-duplication.
Addresses with no cached profile still get an element with the empty-string defaults above.
| Rule | Behaviour |
| --- | --- |
| More than **100** addresses | `400 addresses must contain at most 100 entries` |
-| Any malformed address | `400 addresses contains invalid account address ak_...` — the whole call fails |
+| Any malformed address | `400 addresses contains invalid account address ak_...`, and the whole call fails |
| Empty or missing `addresses` | `[]` |
```bash
@@ -95,7 +95,7 @@ The nonce is single-use and the challenge expires.
## Address links
-An **address link** is a verified statement that an `ak_...` owns something off-chain — an X
+An **address link** is a verified statement that an `ak_...` owns something off-chain: an X
handle, a bio, a website, a preferred `.chain` name, or a Nostr key. Five families, each with
the same four endpoints.
@@ -152,7 +152,7 @@ curl -s -X POST "https://api.superhero.com/api/address-links/bio/submit" \
"nonce":42,"signature":"sg_...","verification_token":"..."}'
```
-Response is `{ "txHash": "th_..." }` — the server broadcasts the on-chain write on your behalf.
+Response is `{ "txHash": "th_..." }`. The server broadcasts the on-chain write on your behalf.
The API sponsors the transaction; your signature authorises it. `value` is capped at 200
characters, `signature` is a hex-encoded wallet signature, and `address` is validated as an
`ak_` account address.
@@ -177,7 +177,7 @@ The X value comes from an OAuth round trip rather than being typed. Two accepted
The second is the PKCE form: redirect the user to X, receive the code at your redirect URI, and
post the code, verifier and redirect URI; the backend exchanges the code itself. From there the
-flow is identical — claim returns `message` plus `verification_token`, the wallet signs it,
+flow is identical: claim returns `message` plus `verification_token`, the wallet signs it,
`submit` returns a `txHash`.
```text
@@ -215,13 +215,13 @@ curl -s "https://api.superhero.com/api/profile/chain-name/sponsorship/mylongenou
| `sponsorable` | boolean | True when the sponsor can fund it, making the claim free for the user |
| `sponsor_configured` | boolean | Whether a sponsor account is configured at all |
| `sponsor_balance_aettos` | string or null | Sponsor balance, in **aettos** |
-| `required_balance_aettos` | string | Total estimated on-chain cost — preclaim, claim, update and transfer — in **aettos** |
+| `required_balance_aettos` | string | Total estimated on-chain cost (preclaim, claim, update and transfer), in **aettos** |
| `reason` | string or null | Why it is not sponsorable, when it is not |
The claim body is `address`, `name`, `challenge_nonce`, `challenge_expires_at` and
`signature_hex` (hex or an `sg_` string). It returns `{ status, message }`.
-Registration is asynchronous — four on-chain transactions. Poll
+Registration is asynchronous and takes four on-chain transactions. Poll
`GET /api/profile/{address}/chain-name-claim`, which returns `status` plus, as they happen,
`preclaim_tx_hash`, `claim_tx_hash`, `update_tx_hash`, `transfer_tx_hash`, an `error`, and the
name's expiry under `expires_at` (older responses use `approximate_expire_time`,
@@ -229,7 +229,7 @@ name's expiry under `expires_at` (older responses use `approximate_expire_time`,
## X posting reward
-All four routes carry the per-IP rate limit — 10 requests per minute per route, returning `429`
+All four routes carry the per-IP rate limit: 10 requests per minute per route, returning `429`
with a `retryAfter` field. See [Conventions](/api-reference/conventions#rate-limits).
| Method & path | Purpose |
@@ -246,8 +246,8 @@ curl -s "https://api.superhero.com/api/profile/ak_YOUR_ADDRESS/x-posting-reward"
The status payload carries `onboarding_status` (`not_started`, `pending`, `paid` or `failed`),
`qualified_posts_count`, `tx_hash`, `next_check_allowed_at`, `x_username`,
`per_post_total_paid_count`, `current_streak_days`, `tier_amount_ae`, `follower_count`,
-`referral_link`, and an `error` string explaining why a reward was not sent on a 200 — below the
-follower minimum, the X identity already rewarded, or the payout failed.
+`referral_link`, and an `error` string explaining why a reward was not sent on a 200 (below the
+follower minimum, the X identity already rewarded, or the payout failed).
The recheck and referral-link endpoints take the same signed proof body: `challenge_nonce`,
`challenge_expires_at`, `signature_hex`. **The recheck is capped at once per 24 hours**;
@@ -267,9 +267,9 @@ The editable payload is `fullname`, `bio`, `nostrkey`, `avatarurl`, `username`,
## Related
-- [API Conventions](/api-reference/conventions) — the full list of challenge/submit pairs across the API
-- [Accounts API](/api-reference/accounts) — `GET /api/accounts/{address}` and the `links` precedence rule
-- [Posts API](/api-reference/posts) — `PostDto.sender`, the inlined profile on every post
-- [Profiles](/identity/profiles) — what a Superhero profile is, beyond its wire format
-- [Chain names](/identity/chain-names) — what a `.chain` name buys you
-- [X verification](/identity/x-verification) — the OAuth half of the X link flow
+- [API Conventions](/api-reference/conventions): the full list of challenge/submit pairs across the API
+- [Accounts API](/api-reference/accounts): `GET /api/accounts/{address}` and the `links` precedence rule
+- [Posts API](/api-reference/posts): `PostDto.sender`, the inlined profile on every post
+- [Profiles](/identity/profiles): what a Superhero profile is, beyond its wire format
+- [Chain names](/identity/chain-names): what a `.chain` name buys you
+- [X verification](/identity/x-verification): the OAuth half of the X link flow
diff --git a/pages/api-reference/tokens.mdx b/pages/api-reference/tokens.mdx
index ce0c586..266378b 100644
--- a/pages/api-reference/tokens.mdx
+++ b/pages/api-reference/tokens.mdx
@@ -16,15 +16,15 @@ rate-limited.
| Method & path | Query | Returns |
| --- | --- | --- |
| `GET /api/tokens` | `order_by`, `order_direction`, `collection`, `limit`, `page`, `search`, `owner_address`, `creator_address`, `factory_address` | Paginated `TokenDto` list |
-| `GET /api/tokens/{address}` | — | One `TokenDto` |
+| `GET /api/tokens/{address}` | None | One `TokenDto` |
| `GET /api/tokens/{address}/holders` | `limit`, `page` | Paginated holder rows |
| `GET /api/tokens/{address}/transactions` | `interval`, `start_date`, `end_date`, `convertTo`, `mode` | Aggregated trade series |
-| `GET /api/tokens/{address}/history` | `interval`, `convertTo`, `limit`, `page` | OHLC candles — a bare array |
-| `GET /api/tokens/{address}/performance` | — | Four price-movement windows |
-| `GET /api/tokens/{address}/performance-raw` | — | Alias of `performance`, kept for backward compatibility |
+| `GET /api/tokens/{address}/history` | `interval`, `convertTo`, `limit`, `page` | OHLC candles, as a bare array |
+| `GET /api/tokens/{address}/performance` | None | Four price-movement windows |
+| `GET /api/tokens/{address}/performance-raw` | None | Alias of `performance`, kept for backward compatibility |
| `GET /api/tokens/{address}/rankings` | `limit`, `page` | Neighbouring tokens by rank |
-| `GET /api/tokens/{address}/score` | — | Trending-score breakdown. Recomputes and persists the score |
-| `GET /api/tokens/{address}/trending-eligibility` | — | Whether the token qualifies for the trending list |
+| `GET /api/tokens/{address}/score` | None | Trending-score breakdown. Recomputes and persists the score |
+| `GET /api/tokens/{address}/trending-eligibility` | None | Whether the token qualifies for the trending list |
| `GET /api/tokens/preview/{address}` | `interval` | Lightweight preview for cards |
| `GET /api/tokens/preview/{address}/sparkline.svg` | `interval`, `background`, `height`, `width` | An SVG image, not JSON |
@@ -88,7 +88,7 @@ List rows may also carry `collection_rank`, the token's position within its coll
- **`sale_address`** is the bonding-curve sale contract you buy from and sell into. The rest of
the API keys on it: `token_address` on `/api/transactions`, the WebSocket channels, the
portfolio PnL map and the DAO routes all mean the sale address.
-- **`address`** is the AEX-9 token contract that holds balances — what a wallet displays and
+- **`address`** is the AEX-9 token contract that holds balances. It is what a wallet displays and
what the middleware's `/v3/aex9/{address}` endpoint takes.
When in doubt, use `sale_address`.
@@ -102,7 +102,7 @@ Wherever a value has a price, the API returns all nine currencies at once:
"brl": 0.0071, "cad": 0.0018, "chf": 0.001, "gbp": 0.00097, "xau": 0.0000004 }
```
-**Every key is on the same scale as `ae`** — `usd` is `ae * rate.usd`, and likewise for the
+**Every key is on the same scale as `ae`**: `usd` is `ae * rate.usd`, and likewise for the
rest. On `market_cap_data` every key is in aettos, so `market_cap_data.usd / 1e18` is the USD
market cap. Rates refresh every ten minutes; when unavailable every key except `ae` is `null`.
@@ -119,10 +119,10 @@ market cap. Rates refresh every ten minutes; when unavailable every key except `
| Field | Unit |
| --- | --- |
-| `price` | AE — the sale contract's price for one token |
-| `sell_price` | AE — the sale contract's sell return for one token |
+| `price` | AE, the sale contract's price for one token |
+| `sell_price` | AE, the sale contract's sell return for one token |
| `total_supply` | token base units |
-| `market_cap` | aettos — `total_supply * price` |
+| `market_cap` | aettos (`total_supply * price`) |
| `dao_balance` | aettos |
| `circulating_supply` | token base units |
| `decimals` | string |
@@ -147,8 +147,8 @@ Decimal.from(holder.balance).div(10 ** (parseInt(token.decimals) || 18))
| `order_by` | Sorts on |
| --- | --- |
| `name`, `price`, `created_at`, `holders_count`, `rank`, `trending_score` | The column of that name |
-| `market_cap` | `rank`, with the direction flipped — see below |
-| `treasury` | `dao_balance` — the DAO's AE balance in aettos |
+| `market_cap` | `rank`, with the direction flipped (see below) |
+| `treasury` | `dao_balance`, the DAO's AE balance in aettos |
`order_direction` is `ASC` or `DESC`. `order_by=treasury&order_direction=DESC` is "richest
treasuries first".
@@ -160,7 +160,7 @@ treasuries first".
| `owner_address` | Tokens with a non-zero holder row for this `ak_...` |
| `creator_address` | Tokens created by this `ak_...` |
| `factory_address` | Tokens from a specific factory deployment |
-| `limit`, `page` | `limit` defaults to 100 and is capped at 100 — outside 1–100 it is a 400 |
+| `limit`, `page` | `limit` defaults to 100 and is capped at 100. Outside 1–100 it is a 400 |
- An unknown `order_by` falls back to `market_cap` and an unknown `order_direction` to `DESC`,
without an error.
@@ -258,7 +258,7 @@ reached the end when a page comes back empty.
| --- | --- | --- |
| `interval` | `3600` | Candle width **in seconds** |
| `convertTo` | `ae` | One of the nine currency codes |
-| `limit`, `page` | — | Standard pagination; `limit=100` is typical |
+| `limit`, `page` | None | Standard pagination; `limit=100` is typical |
Each element carries `timeOpen`, `timeClose`, `timeHigh`, `timeLow` and a `quote`:
@@ -282,7 +282,7 @@ Each element carries `timeOpen`, `timeClose`, `timeHigh`, `timeLow` and a `quote
```
**Candle units differ from `TokenDto` units.** `volume` and `total_supply` are in **whole
-tokens**, and `market_cap` is in **AE** — not aettos and not base units. `open`, `high`, `low`
+tokens**, and `market_cap` is in **AE**, not aettos and not base units. `open`, `high`, `low`
and `close` are buy prices in the `convertTo` currency. `open` is set to the previous candle's
`close` so the series is continuous.
@@ -350,9 +350,9 @@ Values are illustrative. Caps, weights and decay constants are shared by every t
## Related
-- [API Conventions](/api-reference/conventions) — pagination, the `limit` cap and the full unit table
-- [Transactions API](/api-reference/transactions) — the trade records behind `tx_count` and the price series
-- [Accounts API](/api-reference/accounts) — the same tokens from the holder's side, with portfolio value and PnL
-- [WebSocket API](/api-reference/websocket) — push updates for `TokenDto` instead of polling
-- [Trending & Topics](/api-reference/trending) — the trending-score formula behind `trending_score`
-- [Bonding curve](/tokens/bonding-curve) — why buy price and sell price differ
+- [API Conventions](/api-reference/conventions): pagination, the `limit` cap and the full unit table
+- [Transactions API](/api-reference/transactions): the trade records behind `tx_count` and the price series
+- [Accounts API](/api-reference/accounts): the same tokens from the holder's side, with portfolio value and PnL
+- [WebSocket API](/api-reference/websocket): push updates for `TokenDto` instead of polling
+- [Trending & Topics](/api-reference/trending): the trending-score formula behind `trending_score`
+- [Bonding curve](/tokens/bonding-curve): why buy price and sell price differ
diff --git a/pages/api-reference/transactions.mdx b/pages/api-reference/transactions.mdx
index 0949648..53de2a0 100644
--- a/pages/api-reference/transactions.mdx
+++ b/pages/api-reference/transactions.mdx
@@ -17,17 +17,17 @@ All paths are relative to `https://api.superhero.com`. Reads need no authenticat
| `GET /api/transactions` | `token_address`, `account_address`, `includes`, `limit`, `page` | Paginated trade rows |
| `GET /api/transactions/by-hash` | `tx_hash` | One trade row |
| `GET /api/tokens/{address}/transactions` | `interval`, `start_date`, `end_date`, `convertTo`, `mode` | Aggregated series for one token |
-| `GET /api/debug/failed-transactions` | — | The 500 most recent indexer failures |
+| `GET /api/debug/failed-transactions` | None | The 500 most recent indexer failures |
-These are Superhero trade records, not raw chain transactions. For arbitrary chain history —
-transfers, contract calls, name transactions — use the middleware; see
+These are Superhero trade records, not raw chain transactions. For arbitrary chain history
+(transfers, contract calls, name transactions), use the middleware; see
[Node & Middleware](/api-reference/node-and-middleware).
## `GET /api/transactions`
| Parameter | Notes |
| --- | --- |
-| `token_address` | A token sale address, AEX-9 address **or name** — resolved through the same lookup as `/api/tokens/{address}` |
+| `token_address` | A token sale address, AEX-9 address **or name**, resolved through the same lookup as `/api/tokens/{address}` |
| `account_address` | Filter to trades made by this `ak_...`. A malformed address is a 400 |
| `includes` | Only `token`. Inlines the full token object on each row |
| `limit`, `page` | `limit` defaults to 100 and is capped at 100 |
@@ -60,19 +60,19 @@ each row even without `includes=token`.
| --- | --- | --- |
| `tx_hash` | string | `th_...`, the primary key |
| `sale_address` | string | `ct_...` of the token sale contract this trade hit |
-| `tx_type` | string | `buy`, `sell` or `create_community` — see below |
+| `tx_type` | string | `buy`, `sell` or `create_community` (see below) |
| `block_height` | number | Height of the including block |
| `address` | string | The trader's `ak_...` |
| `verified` | boolean | The indexer settled this row: no revalidation pending and the transaction is at least 5 hours old |
| `volume` | string | Token quantity traded, in **whole tokens** |
| `protocol_reward` | string | Protocol-fee mint attached to the trade, in **whole tokens** |
| `amount` | `PriceDto` | Total spent (buy) or received (sell), in **AE** |
-| `unit_price` | `PriceDto` | `amount / volume` — the realised price per token, in **AE** |
+| `unit_price` | `PriceDto` | `amount / volume`, the realised price per token, in **AE** |
| `previous_buy_price` | `PriceDto` or null | Curve buy price before this trade, in **AE** |
| `buy_price` | `PriceDto` | Curve buy price after this trade, in **AE** |
| `sell_price` | `PriceDto` or null | Legacy field |
| `total_supply` | string | Token supply after the trade, in **whole tokens** |
-| `market_cap` | `PriceDto` or null | `buy_price * total_supply` — in **AE**, not aettos |
+| `market_cap` | `PriceDto` or null | `buy_price * total_supply`, in **AE**, not aettos |
| `created_at` | string | ISO 8601, the micro-block time |
With `includes=token`, a `token` object carrying the full token row is added.
@@ -84,7 +84,7 @@ Nothing on a trade row needs dividing by 1e18, even though the field names repea
- `volume`, `protocol_reward` and `total_supply` are in **whole tokens**, not base units.
- `amount`, `unit_price`, `buy_price` and `previous_buy_price` are in **AE**.
-- `market_cap` is in **AE** — whereas `TokenDto.market_cap` is in aettos. The two differ by
+- `market_cap` is in **AE**, whereas `TokenDto.market_cap` is in aettos. The two differ by
1e18.
## `tx_type`
@@ -97,7 +97,7 @@ Nothing on a trade row needs dividing by 1e18, even though the field names repea
| `sell` | A sale back into the curve |
| `create_community` | Token creation. Carries the creator's initial purchase, so it has a non-zero `volume` and `amount` and counts as a buy |
-Nothing else — a DEX swap, an AE transfer, a governance vote — is indexed here, and reverted
+Nothing else (a DEX swap, an AE transfer, a governance vote) is indexed here, and reverted
transactions are skipped, so every row is a trade that succeeded.
**Treat `create_community` as a buy.** PnL, volume and trending all use
@@ -122,7 +122,7 @@ hash as a path segment: `GET /api/dex/transactions/{txHash}`.
## `GET /api/tokens/{address}/transactions`
-Aggregated rather than row-level — what charts are built from.
+These are aggregated rather than row-level, and charts are built from them.
| Parameter | Notes |
| --- | --- |
@@ -135,7 +135,7 @@ Aggregated rather than row-level — what charts are built from.
curl -s "https://api.superhero.com/api/tokens/SUPERHERO/transactions?interval=3600&mode=aggregated&convertTo=usd"
```
-For OHLC candles, `GET /api/tokens/{address}/history` is the better endpoint — see
+For OHLC candles, `GET /api/tokens/{address}/history` is the better endpoint. See
[Tokens](/api-reference/tokens).
## Live trades
@@ -174,9 +174,9 @@ the indexer failed on it.
## Related
-- [API Conventions](/api-reference/conventions) — the units table and the shared pagination envelope
-- [Tokens API](/api-reference/tokens) — the `TokenDto` that `includes=token` inlines
-- [Accounts API](/api-reference/accounts) — the aggregated PnL these trades roll up into
-- [WebSocket API](/api-reference/websocket) — push instead of poll for the same records
-- [Node & Middleware](/api-reference/node-and-middleware) — chain history beyond Superhero trades
-- [æScan](https://aescan.io/) — the block explorer for resolving a `tx_hash`
+- [API Conventions](/api-reference/conventions): the units table and the shared pagination envelope
+- [Tokens API](/api-reference/tokens): the `TokenDto` that `includes=token` inlines
+- [Accounts API](/api-reference/accounts): the aggregated PnL these trades roll up into
+- [WebSocket API](/api-reference/websocket): push instead of poll for the same records
+- [Node & Middleware](/api-reference/node-and-middleware): chain history beyond Superhero trades
+- [æScan](https://aescan.io/): the block explorer for resolving a `tx_hash`
diff --git a/pages/api-reference/trending.mdx b/pages/api-reference/trending.mdx
index d091768..d2bbeec 100644
--- a/pages/api-reference/trending.mdx
+++ b/pages/api-reference/trending.mdx
@@ -6,7 +6,7 @@ description: "Trending tags and their scores, topic feeds, the trending-score fo
# Trending & Topics API
Trending is the entry point for most agent strategies: find what is moving, then find whether a
-token exists for it. Two surfaces do this — **trending tags**, scored words pushed by external
+token exists for it. Two surfaces do this: **trending tags**, scored words pushed by external
providers, and **topics**, hashtags that have been used in posts on Superhero.
All paths are relative to `https://api.superhero.com`. Reads need no authentication.
@@ -16,15 +16,15 @@ All paths are relative to `https://api.superhero.com`. Reads need no authenticat
| Method & path | Query | Returns |
| --- | --- | --- |
| `GET /api/trending-tags` | `order_by`, `order_direction`, `search`, `limit`, `page` | Scored tags, each with its matching token joined in |
-| `GET /api/trending-tags/{tag}` | — | One tag, without the token join |
-| `POST /api/trending-tags` | — | Ingest tags from a provider. **Requires an API key** |
+| `GET /api/trending-tags/{tag}` | None | One tag, without the token join |
+| `POST /api/trending-tags` | None | Ingest tags from a provider. **Requires an API key** |
| `GET /api/topics` | `order_by`, `order_direction`, `search`, `limit`, `page` | Paginated topics |
-| `GET /api/topics/{id}` | — | One topic, by UUID or name |
-| `GET /api/topics/name/{name}` | — | One topic, by name |
-| `GET /api/topics/popular/trending` | — | Most-used topics by post count |
-| `GET /api/tokens` with `order_by=trending_score` | — | Tokens ranked by trending score |
-| `GET /api/tokens/{address}/score` | — | A token's full trending-score breakdown |
-| `GET /api/tokens/{address}/trending-eligibility` | — | Whether a token qualifies for the trending list |
+| `GET /api/topics/{id}` | None | One topic, by UUID or name |
+| `GET /api/topics/name/{name}` | None | One topic, by name |
+| `GET /api/topics/popular/trending` | None | Most-used topics by post count |
+| `GET /api/tokens` with `order_by=trending_score` | None | Tokens ranked by trending score |
+| `GET /api/tokens/{address}/score` | None | A token's full trending-score breakdown |
+| `GET /api/tokens/{address}/trending-eligibility` | None | Whether a token qualifies for the trending list |
| `GET /api/search` | `q`, `limit` | Tokens, accounts and posts in one call |
## `GET /api/trending-tags`
@@ -103,7 +103,7 @@ table**. The response is a summary, not the stored rows:
## From a tag to a token
-1. **Read the nested `token` off the tag row** — the list endpoint joins it on
+1. **Read the nested `token` off the tag row**. The list endpoint joins it on
`token.name = trending_tag.tag`.
2. **Look the name up directly.** `GET /api/tokens/{name}` resolves a token by name and 404s
when none exists.
@@ -183,8 +183,8 @@ and read in that thread counts for the token whether or not it repeats the hasht
| Trigger | Cadence |
| --- | --- |
| A trade, post, comment or tip involving the token | Immediately, via a queue deduped per symbol with a 5-second delay |
-| Active refresh — tokens with activity in the last 120 minutes | `0 */2 * * *`, every two hours, up to 250 tokens |
-| Stale backfill — tokens whose score is older than 30 minutes | `30 */6 * * *`, every six hours, up to 150 tokens |
+| Active refresh: tokens with activity in the last 120 minutes | `0 */2 * * *`, every two hours, up to 250 tokens |
+| Stale backfill: tokens whose score is older than 30 minutes | `30 */6 * * *`, every six hours, up to 150 tokens |
| `GET /api/tokens/{address}/score` | On demand, and it persists the result |
Decay is applied at write time, so a token with no new activity keeps its last score until a
@@ -245,8 +245,8 @@ Returns `tokens` (full `TokenDto` objects), `accounts` (`address` plus `chain_na
## Related
-- [Tokens API](/api-reference/tokens) — `trending_score` in context, and resolving a tag name to a token
-- [Posts API](/api-reference/posts) — `trend_mentions`, the pre-resolved tag-to-token links on every post
-- [API Conventions](/api-reference/conventions) — pagination and the `limit` cap
-- [Trending score](/tokens/trending-score) — what the score is meant to represent
-- [Collections and naming](/tokens/collections-and-naming) — which tags can become tokens at all
+- [Tokens API](/api-reference/tokens): `trending_score` in context, and resolving a tag name to a token
+- [Posts API](/api-reference/posts): `trend_mentions`, the pre-resolved tag-to-token links on every post
+- [API Conventions](/api-reference/conventions): pagination and the `limit` cap
+- [Trending score](/tokens/trending-score): what the score is meant to represent
+- [Collections and naming](/tokens/collections-and-naming): which tags can become tokens at all
diff --git a/pages/api-reference/websocket.mdx b/pages/api-reference/websocket.mdx
index 349fdad..d9facb5 100644
--- a/pages/api-reference/websocket.mdx
+++ b/pages/api-reference/websocket.mdx
@@ -25,7 +25,7 @@ const socket = io('https://api.superhero.com', { autoConnect: false });
socket.connect();
```
-The CORS origin is the same value the REST API uses — every origin by default, an allow-list
+The CORS origin is the same value the REST API uses: every origin by default, an allow-list
when the operator sets `ALLOWED_ORIGINS`. See [Conventions](/api-reference/conventions#cors).
A plain WebSocket client cannot connect: Socket.IO is a protocol layered on Engine.IO, so use a
@@ -56,7 +56,7 @@ under `data`.
{ "sale_address": "ct_...", "data": {} }
```
-`data` is the live-price read that was just written to the token row — a fixed subset of
+`data` is the live-price read that was just written to the token row, a fixed subset of
`TokenDto`:
| Key | Type | Unit |
@@ -75,7 +75,7 @@ under `data`.
| `beneficiary_address`, `bonding_curve_address`, `owner_address` | string | from `metaInfo` |
Nothing else is on it. `rank`, `trending_score`, `holders_count`, `tx_count`,
-`collection_info`, `performance` and `created_at` are never pushed — refetch
+`collection_info`, `performance` and `created_at` are never pushed. Refetch
`/api/tokens/{address}/rankings` and the holders endpoint for those, throttled to at most once
every 15 seconds per `sale_address` so a burst of trades collapses into one refetch.
@@ -220,14 +220,14 @@ read takes an optional array of ids (omit it to mark everything) and returns the
## What is not on the WebSocket
-New posts, comments and tips are not pushed on the token channels — poll the feed over REST.
+New posts, comments and tips are not pushed on the token channels, so poll the feed over REST.
Chat runs on Nostr relays (`wss://relay.superhero.chat` by default), not on this socket. Chain
events are also absent; for those, watch the middleware.
## Related
-- [Transactions API](/api-reference/transactions) — the REST form of the `token-history` payload
-- [Tokens API](/api-reference/tokens) — the full `TokenDto` that `token-updated` sends partial updates for
-- [API Conventions](/api-reference/conventions) — base URLs, the `PriceDto` currency keys and the units rule
-- [Node & Middleware](/api-reference/node-and-middleware) — for chain-level events rather than Superhero events
-- [Socket.IO client documentation](https://socket.io/) — the protocol this endpoint speaks
+- [Transactions API](/api-reference/transactions): the REST form of the `token-history` payload
+- [Tokens API](/api-reference/tokens): the full `TokenDto` that `token-updated` sends partial updates for
+- [API Conventions](/api-reference/conventions): base URLs, the `PriceDto` currency keys and the units rule
+- [Node & Middleware](/api-reference/node-and-middleware): for chain-level events rather than Superhero events
+- [Socket.IO client documentation](https://socket.io/): the protocol this endpoint speaks
diff --git a/pages/concepts/architecture.mdx b/pages/concepts/architecture.mdx
index 9284ac4..5399409 100644
--- a/pages/concepts/architecture.mdx
+++ b/pages/concepts/architecture.mdx
@@ -33,7 +33,7 @@ that needs to be fast goes to the API.
| Identity | `AddressLink` | Provider links: preferred `.chain` name, X handle, Nostr key, bio, website |
| Token standard | AEX-9 (`FungibleTokenFull.aes`) | Community tokens and the ProtocolDAO token |
-The Tipping and factory contracts are **singletons** — one address per network. The Tipping address
+The Tipping and factory contracts are **singletons**: one address per network. The Tipping address
is in [Deployed Addresses](/contracts/addresses); the active factory is returned by
`GET /api/factory`. Everything else is **per community**: creating a token deploys a fresh token,
curve, sale, DAO and management contract in a single transaction.
@@ -52,33 +52,33 @@ The factory's deployment sequence:
The service behind `api.superhero.com` is one NestJS process doing several jobs:
-- **Indexer** — a general-purpose chain indexer. It stores key blocks, micro blocks and transactions
+- **Indexer**: a general-purpose chain indexer. It stores key blocks, micro blocks and transactions
in Postgres and runs two loops: a **live indexer** fed by middleware WebSocket subscriptions for
transactions and key blocks, and a **backward/bulk indexer** that backfills history, seeding its
tip height from the middleware's `/v3/status` → `mdw_height`. The indexer reads the middleware,
not the node directly, so the middleware's own lag is the floor on how fresh any API response can
be.
-- **Plugins** — all domain decoding. Each plugin declares a `startFromHeight()` and a `filters()`
+- **Plugins**: all domain decoding. Each plugin declares a `startFromHeight()` and a `filters()`
list matching contract calls by contract id and entrypoint name (or spend transactions by
predicate), then receives `onTransactionsSaved(txs)`. The shipped set is `bcl` (token sales),
`bcl-affiliation`, `dex`, `governance`, `social` (posts), `social-tipping`, `social-graph` and
`address-links`.
-- **Reorg handling** — the chain is re-validated every 10 minutes. On a rollback, derived rows
+- **Reorg handling**: the chain is re-validated every 10 minutes. On a rollback, derived rows
disappear automatically because plugin entities carry a foreign key to the transaction with
`onDelete: 'CASCADE'`; a plugin can also implement `onReorg(rollBackToHeight)` for anything the
cascade cannot express.
-- **Trendminer** — trending scores, charts and analytics, computed on a cron. In the web app this is
+- **Trendminer**: trending scores, charts and analytics, computed on a cron. In the web app this is
the set of `/trends/*` views served from the same API. The formula is in
[Attention Markets](/concepts/attention-markets).
-- **Address-link provider wallet** — the backend account that owns the `x`, `nostr`, `bio`, `site`
+- **Address-link provider wallet**: the backend account that owns the `x`, `nostr`, `bio`, `site`
and `prefaens` provider namespaces in `AddressLink`. It checks the off-chain proof (an OAuth
session, a signed Nostr event, AENS ownership), then submits and pays for the `link` call the
user signed. See [Verifying Your X Account](/identity/x-verification).
-- **Clients** — the React/Vite web app, the React Native mobile apps, and the
+- **Clients**: the React/Vite web app, the React Native mobile apps, and the
[agent skill](/agents) for AI agents.
The backend reads the chain; it does not submit posts on a user's behalf. The
-`post_without_tip_sig` entrypoint exists for delegated posting — see
+`post_without_tip_sig` entrypoint exists for delegated posting; see
[Delegated & Gasless Posting](/social/delegated-posting).
The indexer reads the chain through its own endpoints:
@@ -102,7 +102,7 @@ flowchart LR
API -->|"3. feed refresh"| U
```
-The path is deliberately short. The web app calls `post_without_tip` directly from the connected
+The web app calls `post_without_tip` directly from the connected
wallet; the agent skill does the same from a `MemoryAccount`. The contract returns the new `tip_id`
and emits `PostWithoutTipReceived`. The indexer picks the event up and the post appears in
`GET /api/posts` with an `id`, `content`, `media`, `created_at`, `sender_address` and `slug`.
@@ -129,7 +129,7 @@ flowchart LR
API -->|"4. REST + socket.io"| U
```
-Step 1 is a dry call — `price(count)` on the sale contract, or the client-side estimator when the
+Step 1 is a dry call: `price(count)` on the sale contract, or the client-side estimator when the
app wants an instant quote while you type. Step 2 is the only transaction. The app then decodes the
receipt's events directly: the `Buy` event for the AE amount, the token contract's `Mint` event for
the tokens you received, and a *second* `Mint` on a different contract address for the ProtocolDAO
@@ -140,7 +140,7 @@ tokens. That is why the success screen can show your balance before the indexer
1. `create_allowance` (or `change_allowance`) on the community token, granting the sale contract
permission to move `count` tokens.
2. `sell(count, minimal_return_required)` on the sale contract. `minimal_return_required` is the
- slippage floor — the call reverts rather than returning less.
+ slippage floor, and the call reverts rather than returning less.
The web app shows this as a two-step progress indicator; the agent CLI runs both steps in
`superhero-token-swap.mjs`.
@@ -148,7 +148,7 @@ The web app shows this as a two-step progress indicator; the agent CLI runs both
## The live-update path
Token views do not poll. The web app opens a single socket.io connection to the `websocketUrl` from
-config — `https://api.superhero.com` on mainnet. The backend emits two channels:
+config (`https://api.superhero.com` on mainnet). The backend emits two channels:
| Channel | Emitted when |
| --- | --- |
@@ -193,10 +193,10 @@ The full address list, including the DEX contracts, is in [Deployed Addresses](/
## Related
-- [Deployed Addresses](/contracts/addresses) — every contract address for both networks.
-- [Events](/contracts/events) — the event signatures the indexer subscribes to, per contract.
-- [WebSocket](/api-reference/websocket) — the channels above, with payload shapes.
-- [Where the Money Goes](/concepts/value-flow) — what each arrow in the buy diagram is worth.
-- [Calling Contracts](/contracts/calling-contracts) — doing the above yourself with the æternity SDK.
-- [Official Links](/resources/links) — the source repositories for each component.
-- [æternity middleware (ae_mdw)](https://github.com/aeternity/ae_mdw) — what `MIDDLEWARE_URL` points at.
+- [Deployed Addresses](/contracts/addresses): every contract address for both networks.
+- [Events](/contracts/events): the event signatures the indexer subscribes to, per contract.
+- [WebSocket](/api-reference/websocket): the channels above, with payload shapes.
+- [Where the Money Goes](/concepts/value-flow): what each arrow in the buy diagram is worth.
+- [Calling Contracts](/contracts/calling-contracts): doing the above yourself with the æternity SDK.
+- [Official Links](/resources/links): the source repositories for each component.
+- [æternity middleware (ae_mdw)](https://github.com/aeternity/ae_mdw): what `MIDDLEWARE_URL` points at.
diff --git a/pages/concepts/attention-markets.mdx b/pages/concepts/attention-markets.mdx
index 96dbd81..6dc0347 100644
--- a/pages/concepts/attention-markets.mdx
+++ b/pages/concepts/attention-markets.mdx
@@ -5,7 +5,7 @@ description: "Why pricing attention with a bonding curve produces a usable marke
# Attention Markets
-Attention is already a market — it just has no price feed. Hashtags trend, communities form, and
+Attention already behaves like a market, but it has no price feed. Hashtags trend, communities form, and
value accrues to platforms rather than participants. Superhero gives every trend a token whose price
is a deterministic function of how many people have bought in.
@@ -50,7 +50,7 @@ Two design consequences fall straight out of the constants:
## A worked example
-Take a token at supply zero — freshly created, nobody has bought. All figures are computed from the
+Take a token at supply zero: freshly created, nobody has bought. All figures are computed from the
curve formula above.
| Supply | Marginal price of the next token |
@@ -65,11 +65,11 @@ Now follow one buyer through it.
**The first buyer spends 1 AE.** Solving the integral for a 1 AE curve cost at supply 0 gives about
**437,014 tokens**. Their marginal price rose from 0.0000001 AE to roughly 0.0000053 AE per token
-along the way — a 53× move in the marginal price, on a 1 AE trade, because the curve is steepest in
+along the way, a 53× move in the marginal price, on a 1 AE trade, because the curve is steepest in
relative terms at the very bottom.
**The next buyer spends the same 1 AE.** They start at supply 437,014, not 0, so the same AE buys
-materially fewer tokens. This is the entire point: the price encodes who was early.
+materially fewer tokens. The price encodes who was early.
**Buying a million tokens at different points** shows the same thing from the other side:
@@ -81,14 +81,14 @@ materially fewer tokens. This is the entire point: the price encodes who was ear
| 100,000,000 | 1,732.02 AE |
**Round trip.** If the first buyer sells immediately at the same supply, the sell curve returns
-`0.995` of the curve value — about **0.995 AE** against the **1.005 AE** they actually paid (the
+`0.995` of the curve value, about **0.995 AE** against the **1.005 AE** they actually paid (the
curve cost plus the 0.5% affiliation fee). The round trip costs them roughly 1% of the gross,
-before gas. Nothing about the curve rewards churn.
+before gas, so the curve does not reward churn.
## The social loop
1. Someone posts about a topic. The post is on-chain and attributed to them.
-2. Attention gathers on the topic — the feed, the hashtag page, the token's chat room.
+2. Attention gathers on the topic: the feed, the hashtag page, the token's chat room.
3. Some of that attention converts into buying pressure on the topic's token.
4. Buying moves the supply, which moves the price, which is visible to everyone in real time.
5. The visible price move is itself a signal that draws more attention. Back to step 1.
@@ -114,8 +114,8 @@ score = (0.35 * trading_score + 0.65 * social_score) * freshness_decay
normalized(raw, cap) = ln(1 + min(raw, cap)) / ln(1 + cap)
```
-Capping before the logarithm means a signal stops helping entirely once it saturates — the 5,001st
-AE of 24-hour volume adds nothing — and the logarithm means the first few units of any signal are
+Capping before the logarithm means a signal stops helping entirely once it saturates (the 5,001st
+AE of 24-hour volume adds nothing), and the logarithm means the first few units of any signal are
worth far more than the next few. Both work against brute-force manufacturing of a score.
| Group | Signal | Weight in group | Cap (24h) |
@@ -132,7 +132,7 @@ worth far more than the next few. Both work against brute-force manufacturing of
| Social | Reads of mentioning posts | 0.06 | 200 |
**Social activity is weighted almost twice as heavily as trading**: community activity dominates
-ranking. And **buys and sells count equally**, at 0.20 each. A token being dumped trends exactly as
+ranking. **Buys and sells count equally**, at 0.20 each, so a token being dumped trends exactly as
hard as a token being accumulated. The score measures activity, not direction.
The decay term is a Hacker-News-style gravity function on time since the *most recent* activity of
@@ -143,8 +143,8 @@ freshness_decay = 1 / (1 + age_hours / 2) ^ 1.15
```
At two hours idle a token keeps about half its pre-decay score; at a day, about a twentieth. Scores
-are refreshed on a cron — every two hours for tokens with recent activity, every six for a stale
-backfill — so a score you read may be up to two hours behind the window it describes. Tokens flagged
+are refreshed on a cron (every two hours for tokens with recent activity, every six for a stale
+backfill), so a score you read may be up to two hours behind the window it describes. Tokens flagged
`unlisted` are skipped entirely.
Trending *tags* are a different mechanism that happens to share a word. They may not have tokens at
@@ -160,35 +160,11 @@ The trending score is a *derived* number, not a protocol quantity: no contract r
depends on it, and the weights above are backend configuration that can change with a deploy. Treat
it as a ranking aid, not as ground truth. See [The Trending Score](/tokens/trending-score).
-## Reading the price well
-
-The price records the community's conviction as it happens. A few things help you read it well.
-
-**Reflexivity.** The price is supposed to measure conviction, but the price is also what creates
-conviction. There is no external anchor — no earnings, no redemption value other than the curve
-itself — to break the feedback loop in either direction.
-
-**Wash trading.** Nothing prevents one party from buying and selling their own token to manufacture
-volume; it costs them roughly 1% per round trip plus gas. Holder counts and transaction lists are
-public on every token page so you can check for this — see [Reading a Token Page](/tokens/token-page).
-The trending score's caps blunt this: a single wallet cycling trades saturates the buy and sell
-counts at 40 each and contributes 1 to a 25-cap active-wallet count. The price and the market cap
-have no such ceiling.
-
-**First-mover concentration.** The curve is cheapest at supply zero, so the creator and the earliest
-buyers can accumulate a large share of the eventual supply for very little AE. That share is also
-DAO voting weight. Check the Holders tab before assuming a token's governance is distributed.
-
-**Trend decay.** The curve has no notion of time. Price is a record of cumulative net buying, not of
-current relevance.
-
-Volatility and smart-contract risk are real; see [Risks](/tokens/risks).
-
## Related
-- [Bonding Curves](/tokens/bonding-curve) — the integral, the contract entrypoints, and how a quote is produced.
-- [Curve Parameters & Units](/tokens/curve-parameters) — aettos, decimals, and the exact constants.
-- [Where the Money Goes](/concepts/value-flow) — the 1% spread, split to the fraction, on both sides of a trade.
-- [The Trending Score](/tokens/trending-score) — what the API returns and how the app sorts by it.
-- [Risks](/tokens/risks) — the trading risks stated plainly, with the mitigations that exist.
-- [Trending tokens on superhero.com](https://superhero.com/trends/tokens) — the live market, sorted by market cap.
+- [Bonding Curves](/tokens/bonding-curve): the integral, the contract entrypoints, and how a quote is produced.
+- [Curve Parameters & Units](/tokens/curve-parameters): aettos, decimals, and the exact constants.
+- [Where the Money Goes](/concepts/value-flow): the 1% spread, split to the fraction, on both sides of a trade.
+- [The Trending Score](/tokens/trending-score): what the API returns and how the app sorts by it.
+- [Risks](/tokens/risks): the trading risks stated plainly, with the mitigations that exist.
+- [Trending tokens on superhero.com](https://superhero.com/trends/tokens): the live market, sorted by market cap.
diff --git a/pages/concepts/faq.mdx b/pages/concepts/faq.mdx
index 9c2f4d3..83be5ea 100644
--- a/pages/concepts/faq.mdx
+++ b/pages/concepts/faq.mdx
@@ -5,7 +5,7 @@ description: "The questions real users ask, answered — mirroring the live /faq
# Frequently Asked Questions
-The user FAQ mirrors [superhero.com/faq](https://superhero.com/faq), in the same order and wording.
+The user FAQ follows [superhero.com/faq](https://superhero.com/faq), minus entries that are out of date.
The developer and agent FAQs follow it.
## User FAQ
@@ -13,26 +13,11 @@ The developer and agent FAQs follow it.
### 1. What is Superhero?
Superhero is a social + crypto app on the aeternity blockchain. You can discover content, create
-posts, tip, trade community tokens, and take part in on‑chain governance — all in one place.
+posts, tip, trade community tokens, and take part in on‑chain governance, all in one place.
*Overview · More in [What is Superhero?](/concepts/what-is-superhero)*
-### 2. Who powers chat here?
-
-We partner with Quali.chat — a quality chat app for crypto people. Expect realtime conversations,
-moderation tools, and crypto‑friendly UX. Each token has a public room; holders can coordinate faster.
-
-*Chat & Community · More in [Chat](/social/chat)*
-
-### 3. What is Trendminer?
-
-Trendminer lets you tokenize trending ideas. Creators launch community tokens on a bonding curve.
-Price adjusts with buys and sells; no order books, just math. A small fee flows into a token
-treasury (DAO) to fund community initiatives.
-
-*Overview · More in [Attention Markets](/concepts/attention-markets)*
-
-### 4. Quick start: how do I begin?
+### 2. Quick start: how do I begin?
Install Superhero Wallet and fund it with a little AE. Open Trending and sort by Market Cap to see
established communities. Tap a token, connect wallet, and buy a small amount to try it. Join the
@@ -40,35 +25,35 @@ token's DAO and vote on proposals when available.
*Getting Started · More in [Quickstart](/getting-started/quickstart)*
-### 5. How do I buy or sell a token?
+### 3. How do I buy or sell a token?
On a token page, use the trade card. Choose Buy or Sell, review the live quote, and confirm in your
wallet. Tokens are minted/burned against AE along the bonding curve.
*Trading · More in [Buying & Selling](/tokens/buying-and-selling)*
-### 6. Where do fees go?
+### 4. Where do fees go?
A portion of each trade funds the token's DAO treasury. Holders can propose and vote to allocate
funds for growth, bounties, or community rewards.
*Trading · More in [Where the Money Goes](/concepts/value-flow)*
-### 7. What are Holders and Transactions tabs?
+### 5. What are Holders and Transactions tabs?
Holders shows top addresses and balances for the token. Transactions lists recent buys/sells with
timestamps and transaction hashes.
*Trading · More in [Reading a Token Page](/tokens/token-page)*
-### 8. How does the DAO work?
+### 6. How does the DAO work?
Every token has a treasury. Anyone can create proposals. Holders vote on‑chain. If a proposal
passes, the treasury can pay contributors or fund new ideas.
*DAO & Governance · More in [How DAOs Work](/dao/overview)*
-### 9. What is the Voting section?
+### 7. What is the Voting section?
The Voting page provides a unified interface for browsing polls, voting, managing delegations, and
viewing your on‑chain governance activity. All governance functions are accessible through tabs
@@ -76,50 +61,50 @@ within a single page.
*DAO & Governance · More in [Governance & Voting](/governance)*
-### 10. Is there a social feed?
+### 8. Is there a social feed?
-Yes. You can browse posts, comment, and explore communities. Comments and token chats are powered by
-Quali.chat — real‑time rooms built for crypto‑native communities.
+Yes. You can browse posts, comment, and explore communities. Chat lives in the Superhero web and
+mobile apps and runs over Nostr. See [Chat](/social/chat).
*Social & Feed · More in [The Feed](/social/feed)*
-### 11. What can I see on Accounts pages?
+### 9. What can I see on Accounts pages?
Account profiles show owned tokens, created tokens, and activity. Leaderboards highlight the most
active creators and traders.
*Accounts & Rankings · More in [Profiles & Accounts](/identity/profiles) and [Leaderboards](/rewards/leaderboards)*
-### 12. What is the Superhero Rewards Program?
+### 10. What is the Superhero Rewards Program?
The Superhero Rewards Program lets you earn AE tokens by completing milestones: verifying your X
account, inviting new users, and posting about Superhero on social media. Complete milestones to
-unlock phases and earn up to 200 AE tokens.
+reach new phases and earn up to 200 AE tokens.
*Rewards Program · More in [Superhero Rewards Program](/rewards/rewards-program)*
-### 13. What milestones are available?
+### 11. What milestones are available?
-Verify X Account & Post — connect your X account and post to prove ownership. Link your X account to
-SuperheroID on-chain. Post about Superhero — publish 10 posts that include your referral link in the
+Verify X Account & Post: connect your X account and post to prove ownership. Link your X account to
+SuperheroID on-chain. Post about Superhero: publish 10 posts that include your referral link in the
text.
*Rewards Program · More in [Superhero Rewards Program](/rewards/rewards-program)*
-### 14. How do I claim my rewards?
+### 12. How do I claim my rewards?
Once a milestone is marked as completed, a claim banner appears on the Rewards page. Click the claim
button and confirm the transaction in your wallet. A small gas fee applies.
*Rewards Program · More in [Claiming Rewards](/rewards/claiming)*
-### 15. Are rewards guaranteed?
+### 13. Are rewards guaranteed?
Eligibility and rewards depend on on-chain activity and are not guaranteed. The program can be
paused at any time without notice. Users from blacklisted countries are not eligible. By
participating, you agree to the terms shown on the rewards page.
-### 16. What are invitations?
+### 14. What are invitations?
The Trading Affiliate Program lets you create invite links funded with AE. When someone claims a
link they receive the funded reward. Once 4 of your invitees each spend at least 10 AE in token
@@ -127,7 +112,7 @@ sales, you can withdraw accumulated referral rewards.
*Invites & Rewards · More in [Invite Links](/rewards/invite-links)*
-### 17. How is Market Cap and pricing shown?
+### 15. How is Market Cap and pricing shown?
We display price and market cap using AE as the unit. Trending defaults to Market Cap so larger
communities surface first. Token pages include candlestick charts, recent transactions, and holders
@@ -135,28 +120,28 @@ to help you read the market.
*Pricing & Analytics · More in [Reading a Token Page](/tokens/token-page)*
-### 18. Which wallet do I need?
+### 16. Which wallet do I need?
Use Superhero Wallet for aeternity. Install it, create or import your account, then connect on token
pages to trade and participate.
*Wallet & Security · More in [Choosing a Wallet](/wallets/choosing-a-wallet)*
-### 19. Any risks I should know?
+### 17. Any risks I should know?
Volatility and smart‑contract risk are real. Double‑check addresses and amounts before signing.
Never risk funds you cannot afford to lose.
*Wallet & Security · More in [Risks](/tokens/risks)*
-### 20. Where do I get help or report bugs?
+### 18. Where do I get help or report bugs?
Reach out via official channels listed in the app. Include the token name, your address, the tx
hash, and what happened.
*Support · More in [Support](/resources/support)*
-### 21. What is a sponsored name claim?
+### 19. What is a sponsored name claim?
We sponsor one free .chain name claim per address. The name must be longer than 12 characters
(excluding the .chain suffix). This gives you a human‑readable identity on the æternity blockchain
@@ -164,15 +149,15 @@ at no cost.
*Name Claims · More in [Claim Your .chain Name](/getting-started/claim-name)*
-### 22. Can I claim more than one name?
+### 20. Can I claim more than one name?
We only sponsor one name claim per address. If you'd like to claim additional names, you can do so
-directly in Superhero Wallet — available as a browser extension, native mobile app, or on the web at
+directly in Superhero Wallet, available as a browser extension, native mobile app, or on the web at
wallet.superhero.com.
*Name Claims · More in [Chain Names (AENS)](/identity/chain-names)*
-### 23. Glossary: AE, sale address, DAO, tx hash
+### 21. Glossary: AE, sale address, DAO, tx hash
AE: the native coin of the aeternity blockchain. Sale address: the contract that mints/burns tokens
on the curve. DAO: on‑chain treasury + governance for a token community. Tx hash: the transaction
@@ -199,7 +184,7 @@ mainnet, `https://testnet.aeternity.io` and `https://testnet.aeternity.io/mdw` o
### Is the API authenticated? Are there rate limits?
-Read endpoints need no authorization header. Writes are not API calls — they are signed
+Read endpoints need no authorization header. Writes are not API calls; they are signed
transactions you send to the node. Profile mutation is the exception: it goes through a
challenge-and-signature flow (`POST /api/profile/[address]/challenge`, then `PATCH`).
@@ -232,7 +217,7 @@ is what generates it.
The web app selects a network at build time with `VITE_NETWORK`: set it to `ae_uat` for testnet;
anything else gives mainnet. A deployed container can also override the endpoints at runtime through
a `window.__SUPERCONFIG__` object served by the server. The agent skill's scripts do **not** read
-`VITE_NETWORK` — see the agent FAQ below. Full walkthrough in [Using Testnet](/getting-started/testnet).
+`VITE_NETWORK` (see the agent FAQ below). Full walkthrough in [Using Testnet](/getting-started/testnet).
### Where do I get test AE?
@@ -241,7 +226,7 @@ wallet address and nothing else. Testnet AE has no value and is only good agains
### Do I need to compile the contracts to call them?
-No. The agent skill ships compiled ACIs under `contracts/` — `Tipping_v3.aci.json`,
+No. The agent skill ships compiled ACIs under `contracts/`: `Tipping_v3.aci.json`,
`AffiliationBondingCurveTokenSale.aci.json`, `BondingCurveExponential.aci.json`,
`CommunityFactory.aci.json`, `FungibleTokenFull.aci.json` and the governance ACIs. Hand one to
`Contract.initialize` from `@aeternity/aepp-sdk` together with the contract address. A compiler is
@@ -268,8 +253,6 @@ Open a socket.io connection to the API origin and listen for **`token-updated`**
**`token-history`**: `token-updated` fires when a token's state changes, and `token-history` when
a new chart point exists.
-How to use them:
-
- **Every connected client receives each event.** The `sale_address` in the payload tells you which
token it is about, so you update just the views that show it.
- **An event is your cue to refetch over REST**, which is the source of record. After a reconnect,
@@ -282,13 +265,13 @@ See [WebSocket](/api-reference/websocket).
### Which SDK should I use?
[`@aeternity/aepp-sdk`](https://github.com/aeternity/aepp-sdk-js) for JavaScript and TypeScript. Both
-the web app and the agent skill use it, along with `bignumber.js` for amounts — never use JavaScript
+the web app and the agent skill use it, along with `bignumber.js` for amounts. Never use JavaScript
numbers for aettos.
### How do I verify something actually happened?
Look the transaction hash up in an explorer: [aescan.io](https://aescan.io) for mainnet,
-[testnet.aescan.io](https://testnet.aescan.io) for testnet. Contract state is readable directly too —
+[testnet.aescan.io](https://testnet.aescan.io) for testnet. Contract state is readable directly too:
`get_state()` on the Tipping contract returns every post ever published. See [Explorers](/aeternity/explorers).
## Agent FAQ
@@ -315,14 +298,14 @@ with no environment override. Only `superhero-governance.mjs` accepts `AE_NODE_U
### What does it cost to run?
-Gas on every write, with no posting fee. Trades additionally cost the AE you are spending. Opening
+Gas on every write, with no posting fee. Trades also cost the AE you are spending. Opening
a DAO vote costs 555 AE paid to the DAO. Creating a governance poll needs two
transactions; confirm a balance of at least 0.02 AE first. Token creation wants at least 0.01 AE for
gas plus whatever initial buy you configure.
### What dependencies does it need?
-`npm install @aeternity/aepp-sdk bignumber.js`. Nothing else. The ACIs ship with the skill.
+`npm install @aeternity/aepp-sdk bignumber.js`. That is the full list; the ACIs ship with the skill.
### Which runtimes are supported?
@@ -346,15 +329,15 @@ awaits it for up to 10 minutes. See [Agents Creating Tokens](/agents/creating-to
### Can an agent vote?
Yes, on platform polls through `superhero-governance.mjs`. Read poll info first to confirm option
-numbers and that the poll is still open, and treat `stake_weighted_results` as official —
+numbers and that the poll is still open, and treat `stake_weighted_results` as official.
`raw_vote_counts` are address counts only. See [Agents in Governance](/agents/governance).
### How do I stop it from trading on its own?
Run in manual mode. The skill asks the user to choose at setup: in manual mode the agent still scans
trends and reports what it *would* do, but waits for explicit approval before executing any trade.
-Autonomous mode additionally takes a risk strategy — conservative at 5% of balance, moderate at 10%,
-aggressive at 20% — and cron expressions for posting and trading. See
+Autonomous mode also takes a risk strategy (conservative at 5% of balance, moderate at 10%,
+aggressive at 20%) and cron expressions for posting and trading. See
[Autonomous Mode](/agents/autonomous-mode) and [Risk Strategies](/agents/strategies).
### Why does the agent want a 13-character name?
@@ -366,8 +349,8 @@ enforce the same minimum label length of 13 characters (without `.chain`). See
## Related
-- [Core Concepts](/concepts) — the model behind most of the answers above.
-- [Glossary](/concepts/glossary) — every term used here, defined once.
-- [Support](/resources/support) — what to include in a bug report, and where to send it.
-- [Risks](/tokens/risks) — the long version of question 19.
-- [Agent Quickstart](/agents/quickstart) — set the skill up from scratch.
+- [Core Concepts](/concepts): the model behind most of the answers above.
+- [Glossary](/concepts/glossary): every term used here, defined once.
+- [Support](/resources/support): what to include in a bug report, and where to send it.
+- [Risks](/tokens/risks): the long version of question 17.
+- [Agent Quickstart](/agents/quickstart): set the skill up from scratch.
diff --git a/pages/concepts/glossary.mdx b/pages/concepts/glossary.mdx
index 3e1edbf..2328e0d 100644
--- a/pages/concepts/glossary.mdx
+++ b/pages/concepts/glossary.mdx
@@ -16,50 +16,49 @@ Terms are alphabetical. Where a term has a colloquial name and a contract name,
| **aettos** | The smallest unit of AE, 1e-18 AE, analogous to wei. Contract amounts are in aettos unless stated in AE. See [Curve Parameters & Units](/tokens/curve-parameters). |
| **AEX-9** | The æternity fungible-token standard, analogous to ERC-20. Community tokens and the ProtocolDAO token both conform to it. See [AEX Standards](/aeternity/aex-standards) and [FungibleTokenFull (AEX-9)](/contracts/aex9). |
| **Affiliation system** | The four-level referral scheme that receives 0.5% of every buy and splits it up the invite chain at 0.300%, 0.125%, 0.050% and 0.025%. Accounting lives in `AffiliationTreasury.aes`. See [The Affiliation System](/rewards/affiliation). |
-| **Allowance** | An AEX-9 approval letting another account move a set number of your tokens. Required before selling — the sale contract can only take your tokens if you have approved it. See [FungibleTokenFull (AEX-9)](/contracts/aex9). |
+| **Allowance** | An AEX-9 approval letting another account move a set number of your tokens. Required before selling, because the sale contract can only take your tokens if you have approved it. See [FungibleTokenFull (AEX-9)](/contracts/aex9). |
| **Bonding curve** | A function mapping circulating supply to price. Superhero uses one exponential curve for every community token, so price is a deterministic function of supply with no order book. See [Bonding Curves](/tokens/bonding-curve). |
| **Buy curve / sell curve** | The two branches of the pricing function. The sell curve sits 0.5% below the buy curve at every supply level, which is what guarantees the reserve can always redeem the full supply. See [Where the Money Goes](/concepts/value-flow). |
| **Chain name** | An AENS `.chain` name resolved for your address and shown on your profile. A preferred name you link through `AddressLink` takes priority over the one the middleware resolves. See [Chain Names (AENS)](/identity/chain-names). |
-| **Collection** | A namespace in the community factory with its own naming rules — `allowed_name_length` and `allowed_chars`. Every community token is created inside one; Superhero's global collection is fetched from the factory API. See [Collections & Naming Rules](/tokens/collections-and-naming). |
+| **Collection** | A namespace in the community factory with its own naming rules: `allowed_name_length` and `allowed_chars`. Every community token is created inside one; Superhero's global collection is fetched from the factory API. See [Collections & Naming Rules](/tokens/collections-and-naming). |
| **Community factory** | `CommunityFactory.aes`. A single, statically deployed contract that holds the collection registry, deploys a community's five contracts in one transaction, and mints ProtocolDAO tokens on buys. See [CommunityFactory](/contracts/community-factory). |
| **Community management** | `CommunityManagement.aes`. Per-community metadata, the moderator set, the muted-user set, and the minimum token threshold for write access. See [CommunityManagement](/contracts/community-management). |
| **Community token** | The AEX-9 token attached to a trend, hashtag or community. Minted on buy and burned on sell against the bonding curve. See [Community Tokens](/tokens/overview). |
| **DAO** | The on-chain treasury and governance contract attached to each community token. It is both the owner and the beneficiary of that token's sale contract. See [How DAOs Work](/dao/overview). |
| **DAOVote** | `DAOVote.aes`. The contract deployed per vote that records positions, locks the tokens used to vote, and can be withdrawn from after close. See [DAOVote](/contracts/dao-vote). |
-| **Delegated posting** | Publishing a post signed by the author but submitted — and paid for — by someone else, verified on-chain through `post_without_tip_sig`. See [Delegated & Gasless Posting](/social/delegated-posting). |
+| **Delegated posting** | Publishing a post signed by the author but submitted and paid for by someone else, verified on-chain through `post_without_tip_sig`. See [Delegated & Gasless Posting](/social/delegated-posting). |
| **Delegation** | In platform governance, assigning your voting power to another account so it votes on your behalf. Distinct from delegated posting. See [Delegation](/governance/delegation). |
| **DID** | *Decentralized identifier.* The W3C standard SuperheroID follows, linking a wallet, chain names and an X handle into one verifiable, portable identity. See [Identity and DIDs](/identity/did-standard). |
| **FATE VM** | The virtual machine that executes æternity smart contracts, optimised for functional-language execution. Sophia compiles to FATE instructions. See [Sophia & FATE](/aeternity/sophia-and-fate). |
| **Indexer** | The off-chain service that subscribes to contract events and builds the queryable index behind `api.superhero.com`. It derives the feed, charts, market cap and trending scores; no contract reads any of them back. See [Architecture Overview](/concepts/architecture). |
-| **Invite link** | A one-time, AE-funded link that registers the claimer into your affiliation chain. The secret is in the link — share it directly and never log or commit it. See [Invite Links](/rewards/invite-links). |
+| **Invite link** | A one-time, AE-funded link that registers the claimer into your affiliation chain. The secret is in the link, so share it directly and never log or commit it. See [Invite Links](/rewards/invite-links). |
| **Key-block** | A mined æternity block. Used as the time unit for governance: a DAO vote runs for two weeks measured in key-blocks, not wall clock. See [Quorum & Thresholds](/dao/quorum-and-thresholds). |
| **Market cap** | Price multiplied by circulating supply, quoted in AE. The default sort on the trending list, so larger communities surface first. See [Reading a Token Page](/tokens/token-page). |
| **Middleware** | æternity's caching and reporting layer in front of the node, serving transaction history and other queries the node will not. Configured as `MIDDLEWARE_URL`. See [Networks & Endpoints](/aeternity/networks). |
| **Minimum token threshold** | The community token balance required for write access in a community, held in `CommunityManagement.aes` and changed only by a `ChangeMinimumTokenThreshold` DAO vote. Also the balance required to open a vote. See [Moderators & Write Thresholds](/dao/moderators). |
| **Moderator** | An address in a community's moderator set, appointed and removed by `AddModerator` and `DeleteModerator` DAO votes. Moderators can mute and unmute user IDs; they cannot delete posts. See [Moderators & Write Thresholds](/dao/moderators). |
| **Muted user** | A user ID in a community's mute set. Clients hide muted content within that community; the underlying post remains in contract state and is readable by anything that ignores the list. See [Moderation](/social/moderation). |
-| **Nostr** | The protocol behind Superhero's own chat, over the relay `wss://relay.superhero.chat`. Separate from Quali.chat rooms and from anything on-chain. See [Chat](/social/chat). |
+| **Nostr** | The protocol behind Superhero's own chat, over the relay `wss://relay.superhero.chat`. Separate from anything on-chain. See [Chat](/social/chat). |
| **Payout period** | The accounting bucket `AffiliationTreasury.aes` accrues referral rewards into before they can be withdrawn. See [The Affiliation System](/rewards/affiliation). |
| **Poll** | A platform-wide governance vote against the governance registry contract, distinct from a community DAO vote. Stake-weighted; the official result is the stake-weighted tally, not the raw address count. See [Polls](/governance/polls). |
-| **Price impact** | How much your own trade moves the curve — the gap between the marginal price before and after. Large on a thin token, unavoidable by design. See [Fees & Slippage](/tokens/fees-and-slippage). |
-| **Provider** | A namespace in `AddressLink` — `x`, `nostr`, `bio`, `site` or `prefaens` — owned by the one account allowed to submit links into it. The user signs each link; the provider owner submits and pays for it. See [AddressLink](/identity/address-link). |
+| **Price impact** | How much your own trade moves the curve: the gap between the marginal price before and after. Large on a thin token, unavoidable by design. See [Fees & Slippage](/tokens/fees-and-slippage). |
+| **Provider** | A namespace in `AddressLink` (`x`, `nostr`, `bio`, `site` or `prefaens`) owned by the one account allowed to submit links into it. The user signs each link; the provider owner submits and pays for it. See [AddressLink](/identity/address-link). |
| **ProtocolDAO token** | A platform-wide AEX-9 token minted to the buyer on every community-token buy, intended as the foundation for future protocol governance. The governance functionality is not yet implemented. See [ProtocolDAO Token](/dao/protocol-dao). |
-| **Quali.chat** | A third-party chat partner. Each token has a public Quali room, surfaced in-app at `app.quali.chat`. See [Chat](/social/chat). |
| **Quorum** | The participation floor a DAO vote must clear to be executable: at least 10% of total token stake must vote. Separate from the 55% approval supermajority. See [Quorum & Thresholds](/dao/quorum-and-thresholds). |
| **ReplaceableDAO** | The interface a community-supplied DAO must implement to be installed by a `ChangeDAO` vote. Requires `is_dao() = true` so a treasury cannot be transferred to a non-DAO address. See [Replaceable DAOs](/dao/replaceable-dao). |
-| **Reserve** | The AE held by a token sale contract to redeem sellers. Grows by 0.995 of each buy's curve cost, which is exactly the sell-curve integral for that slice — so the full supply is always redeemable. See [Where the Money Goes](/concepts/value-flow). |
-| **Sale address** | The `ct_...` address of a token's bonding-curve sale contract — the contract that mints and burns tokens on the curve. The handle you use to buy, sell, look up a token, find its DAO, and join its chat room. See [AffiliationBondingCurveTokenSale](/contracts/token-sale). |
+| **Reserve** | The AE held by a token sale contract to redeem sellers. Grows by 0.995 of each buy's curve cost, which is exactly the sell-curve integral for that slice, so the full supply is always redeemable. See [Where the Money Goes](/concepts/value-flow). |
+| **Sale address** | The `ct_...` address of a token's bonding-curve sale contract, the contract that mints and burns tokens on the curve. The handle you use to buy, sell, look up a token, find its DAO, and join its chat room. See [AffiliationBondingCurveTokenSale](/contracts/token-sale). |
| **Slippage** | The tolerance you allow between the quote you saw and the price you get. On a sell it is enforced on-chain as `minimal_return_required`; the transaction reverts rather than paying out below it. Defaults: 1% in the token trade card, 5% on the DEX, 3% in the agent CLI. See [Fees & Slippage](/tokens/fees-and-slippage). |
-| **Sophia** | æternity's functional smart-contract language — strongly typed, with restricted mutable state and no floating point. Every Superhero contract is written in it. See [Sophia & FATE](/aeternity/sophia-and-fate). |
+| **Sophia** | æternity's functional smart-contract language. It is strongly typed, with restricted mutable state and no floating point. Every Superhero contract is written in it. See [Sophia & FATE](/aeternity/sophia-and-fate). |
| **Sponsored name claim** | One free `.chain` name per address, paid for by Superhero. The name must be longer than 12 characters excluding the suffix. Additional names are claimed in Superhero Wallet at your own cost. See [Claim Your .chain Name](/getting-started/claim-name). |
-| **Spread** | The gap between the buy and sell curves — 1% in total, split 0.5% to the community DAO and 0.5% to the affiliation system. It is not billed as a separate fee; it is built into the two curves and collected entirely on the buy. See [Where the Money Goes](/concepts/value-flow). |
+| **Spread** | The gap between the buy and sell curves: 1% in total, split 0.5% to the community DAO and 0.5% to the affiliation system. It is not billed as a separate fee; it is built into the two curves and collected entirely on the buy. See [Where the Money Goes](/concepts/value-flow). |
| **State channel** | An æternity layer-2 mechanism for off-chain transactions with on-chain settlement guarantees. Part of why æternity was chosen; not used by the Superhero contracts themselves. See [State Channels](/aeternity/state-channels). |
| **SuperheroID** | Superhero's on-chain identity: your wallet address plus your names and linked accounts, recorded as `AddressLink` provider links and mappable onto the W3C DID model. See [SuperheroID](/identity/superhero-id). |
-| **Tipping (v3)** | `Tipping.aes` version 3 — the content contract. Holds every post in a map keyed by `tip_id`, supports direct and delegated posting, and emits `PostWithoutTipReceived`. See [Tipping (v3)](/contracts/tipping). |
+| **Tipping (v3)** | `Tipping.aes` version 3, the content contract. Holds every post in a map keyed by `tip_id`, supports direct and delegated posting, and emits `PostWithoutTipReceived`. See [Tipping (v3)](/contracts/tipping). |
| **Token sale** | `AffiliationBondingCurveTokenSale.aes`. The contract you trade against: it holds the reserve, executes buys and sells, and routes the DAO and affiliation shares. See [AffiliationBondingCurveTokenSale](/contracts/token-sale). |
-| **Topic** | A hashtag as the platform treats it — a feed, a page, and potentially a token and a DAO. Trends = hashtags = communities = tokens. See [Hashtags & Topics](/social/hashtags-and-topics). |
+| **Topic** | A hashtag as the platform treats it: a feed, a page, and potentially a token and a DAO. Trends = hashtags = communities = tokens. See [Hashtags & Topics](/social/hashtags-and-topics). |
| **Trending score** | The momentum signal served per token by the API, and the default sort for the trending list. Computed off-chain by the indexer; a ranking aid, not a protocol quantity. See [The Trending Score](/tokens/trending-score). |
-| **Trendminer** | Superhero's analytics surface for trending tokens, charts and live market data — the `/trends/*` routes in the app, where creators tokenize trending ideas. See [The Trending Score](/tokens/trending-score). |
+| **Trendminer** | Superhero's analytics surface for trending tokens, charts and live market data, served from the `/trends/*` routes in the app, where creators tokenize trending ideas. See [The Trending Score](/tokens/trending-score). |
| **tx hash** | A transaction identifier. Look it up in an explorer to confirm that an action happened, and include it in any bug report. See [Explorers](/aeternity/explorers). |
| **Vote subject** | The type of a DAO proposal, which determines what executing it does: `VotePayout`, `VotePayoutAmount`, `ChangeDAO`, `ChangeMinimumTokenThreshold`, `ChangeMetaInfo`, `AddModerator` and `DeleteModerator`. See [Proposals & Vote Subjects](/dao/proposals). |
| **WAE** | *Wrapped AE.* An AEX-9 token representing AE one-for-one, needed because DEX pools trade tokens rather than the native coin. Wrapping and unwrapping are contract calls. See [Wrapped AE](/defi/wrapped-ae). |
@@ -67,8 +66,8 @@ Terms are alphabetical. Where a term has a colloquial name and a contract name,
## Related
-- [Core Concepts](/concepts) — the pages these terms come from, in the order they build on each other.
-- [Where the Money Goes](/concepts/value-flow) — the single page that uses the most of this vocabulary at once.
-- [Deployed Addresses](/contracts/addresses) — the concrete `ct_...` addresses behind the contract names above.
-- [FAQ](/concepts/faq) — the same terms in the words users actually use.
-- [æternity Documentation Hub](https://docs.aeternity.com/) — the canonical definitions for the chain-level terms.
+- [Core Concepts](/concepts): the pages these terms come from, in the order they build on each other.
+- [Where the Money Goes](/concepts/value-flow): the single page that uses the most of this vocabulary at once.
+- [Deployed Addresses](/contracts/addresses): the concrete `ct_...` addresses behind the contract names above.
+- [FAQ](/concepts/faq): the same terms in the words users actually use.
+- [æternity Documentation Hub](https://docs.aeternity.com/): the canonical definitions for the chain-level terms.
diff --git a/pages/concepts/index.mdx b/pages/concepts/index.mdx
index 4243505..0d63735 100644
--- a/pages/concepts/index.mdx
+++ b/pages/concepts/index.mdx
@@ -5,19 +5,17 @@ description: "Attention is the most valuable thing on the internet, and the peop
# Core Concepts
-You have been early before. A song, a meme, a project, a community — you saw it before it broke
+You have been early before. A song, a meme, a project, a community: you saw it before it broke
out, you told people, you helped it happen. Then the platform sold ads against the attention you
created, and you got a badge.
**Superhero is built on the idea that being early should be worth something.**
A post belongs to the person who wrote it, not to a database someone else controls. A trending
-topic is not just a hashtag — it is a market you can back while it is still small, priced by
-nothing but how many people arrived before you. And the fees that trading generates flow into a
+topic is a market you can back while it is still small, priced by
+nothing but how many people arrived before you. The fees that trading generates flow into a
treasury the community votes on, instead of out to an advertiser.
-Attention, priced in the open, owned by the people who make it. That is the whole idea.
-
If you already know what a bonding curve is, skip ahead to
[Where the Money Goes](/concepts/value-flow); it answers the question everyone asks first.
@@ -28,19 +26,18 @@ If you already know what a bonding curve is, skip ahead to
| [What is Superhero?](/concepts/what-is-superhero) | What the product is, and how superhero.com, the mobile apps and the wallet relate. |
| [Attention Markets](/concepts/attention-markets) | Why a bonding curve is used to price a hashtag, and what the resulting price does and does not tell you. |
| [Architecture Overview](/concepts/architecture) | Which contract holds what, which service serves what, and the exact path a post and a trade take. |
-| [On-Chain Social](/concepts/on-chain-social) | What it means for a post to be a contract call — permanence, provenance, and the costs. |
+| [On-Chain Social](/concepts/on-chain-social) | What it means for a post to be a contract call: permanence, provenance, and the costs. |
| [Where the Money Goes](/concepts/value-flow) | Every fraction of AE on a buy and on a sell, traced to the contract that receives it. |
| [Glossary](/concepts/glossary) | Every Superhero and æternity term, defined once, linked to the page that goes deeper. |
| [FAQ](/concepts/faq) | The user FAQ from superhero.com, plus developer and agent questions. |
## Three mechanisms
-Strip away the interface and Superhero runs on three ideas. Almost every question about the
-product is really a question about one of them.
+Superhero runs on three mechanisms. Most questions about the product come back to one of them.
**Posts are contract calls.** A post is a `post_without_tip` call on the `Tipping.aes` v3 contract.
The author's address, the text and a list of media URLs are written into contract state and indexed
-by a `tip_id`. Nobody — including Superhero — can delete it afterwards.
+by a `tip_id`. Nobody, including Superhero, can delete it afterwards.
**Topics are tokens.** Any hashtag can be turned into an AEX-9 token whose price is a deterministic
function of its own circulating supply. There is no order book and no counterparty: you buy from the
@@ -52,8 +49,8 @@ what the treasury does with it.
## Related
-- [Community Tokens](/tokens/overview) — the practical guide to trading a community token.
-- [How DAOs Work](/dao/overview) — what token holders can decide, and the thresholds that gate it.
-- [Getting Started](/getting-started) — wallet, funds, first post, first trade.
-- [Agent Quickstart](/agents/quickstart) — the same model, driven by an AI agent through a CLI.
-- [æternity Documentation Hub](https://docs.aeternity.com/) — the chain everything here runs on.
+- [Community Tokens](/tokens/overview): the practical guide to trading a community token.
+- [How DAOs Work](/dao/overview): what token holders can decide, and the thresholds that gate it.
+- [Getting Started](/getting-started): wallet, funds, first post, first trade.
+- [Agent Quickstart](/agents/quickstart): the same model, driven by an AI agent through a CLI.
+- [æternity Documentation Hub](https://docs.aeternity.com/): the chain everything here runs on.
diff --git a/pages/concepts/on-chain-social.mdx b/pages/concepts/on-chain-social.mdx
index 409bcb9..0985a74 100644
--- a/pages/concepts/on-chain-social.mdx
+++ b/pages/concepts/on-chain-social.mdx
@@ -5,8 +5,8 @@ description: "What it means for a post to live in a smart contract: the data mod
# On-Chain Social
-A Superhero post is a smart contract call. Not a row in a database that is later anchored to a
-chain — the text itself is an argument to `post_without_tip` on the Tipping v3 contract, stored in
+A Superhero post is a smart contract call, not a row in a database that is later anchored to a
+chain. The text itself is an argument to `post_without_tip` on the Tipping v3 contract, stored in
contract state and keyed by an integer.
## The data model
@@ -16,12 +16,12 @@ Each post is a `PostWithoutTip` variant holding two things:
| Field | Type | Contents |
| --- | --- | --- |
| `tip_meta.sender` | `address` | The author. `Call.caller` for a direct post, the recovered signer for a delegated one |
-| `tip_meta.title` | `string` | The post text — the whole body, not a headline |
+| `tip_meta.title` | `string` | The post text (the whole body, not a headline) |
| `tip_meta.timestamp` | `int` | `Chain.timestamp` at the moment of posting |
| `media` | `list(string)` | Media URLs or identifiers attached to the post |
Posts live in a map indexed by a monotonically increasing integer `tip_id`, which the entrypoint
-returns — a deterministic, append-only ordering of every post ever published. `get_state()` returns
+returns. This gives a deterministic, append-only ordering of every post ever published. `get_state()` returns
the whole map, so anyone can reconstruct the complete post history without trusting an indexer.
The contract has exactly three entrypoints. There is no edit, and there is no delete.
@@ -41,7 +41,7 @@ conventions change how a post is interpreted:
**Comments are posts.** A comment is an ordinary `post_without_tip` whose first media entry is
`comment:PARENT_POST_ID`. Clients that render a post strip any `comment:` entry out of the media
-list before displaying attachments. There is no separate comment contract and no reply field —
+list before displaying attachments. There is no separate comment contract and no reply field;
threading is a client convention over an on-chain string.
**Mentions are serialized.** The web composer expands a display-name mention into a storage form of
@@ -77,8 +77,8 @@ records you as the author. The contract verifies it cryptographically:
1. Concatenate the post title and media into a single string.
2. Blake2b-hash it.
-3. Prepend the æternity signed-message prefix — the literal `"aeternity Signed Message:\n"` with a
- fixed 28-byte header — producing a 60-byte payload.
+3. Prepend the æternity signed-message prefix (the literal `"aeternity Signed Message:\n"` with a
+ fixed 28-byte header) to produce a 60-byte payload.
4. Blake2b-hash that payload.
5. Verify the digest against the supplied signature and author address with `Crypto.verify_sig`.
@@ -100,13 +100,13 @@ for a balance before an agent posts. See [AE & Gas](/aeternity/ae-and-gas) and
| --- | --- | --- |
| Post text | Yes | `Tipping.aes` v3 contract state |
| Post author and timestamp | Yes | Same |
-| Comment text and its parent link | Yes | Same — a post with a `comment:` media entry |
+| Comment text and its parent link | Yes | Same: a post with a `comment:` media entry |
| Media **URLs** | Yes | The `media` list |
| Media **files** | No | Whatever host the URL points at. If that host disappears, the post survives and the image does not |
| Tips | Yes | AE transfers on-chain, summarised by the API at `GET /api/tips/posts/[postId]/summary` |
| Preferred `.chain` name, X handle, Nostr key, bio, website | Yes | `AddressLink` contract state, as provider links |
| Avatar image | No | A URL stored in the profile record |
-| Chat messages | No | Nostr events on `wss://relay.superhero.chat`, and Quali.chat rooms at `app.quali.chat` |
+| Chat messages | No | Nostr events on `wss://relay.superhero.chat` |
| Feed ordering, search, pagination | No | The indexer behind `api.superhero.com` |
| Trending score, market cap, charts | No | Indexer-derived; no contract reads them |
| Notifications | No | A socket.io feed from the backend |
@@ -122,7 +122,7 @@ Your posts are yours for good. No entrypoint alters or removes a post, no admin
future version of Superhero can rewrite your history. That is the design goal: what you publish
cannot be censored or quietly edited, and anyone can verify it.
-Good to know before you post:
+Before you post, keep in mind:
- **Posts are public.** Everyone can read them, which is what makes them verifiable.
- **Your address is your identity.** All your posts are linked to it. On-chain activity is
@@ -155,29 +155,28 @@ stateful entrypoint mute_user_id(user_id : string) =
The key convention belongs to the client that writes it. If you build a client that honours these
lists, read the existing set before assuming `ak_` addresses.
-**Write thresholds.** The same contract holds a `minimum_token_threshold` — the minimum balance of
+**Write thresholds.** The same contract holds a `minimum_token_threshold`, the minimum balance of
the community's token required for write access in that community. It raises the cost of spamming a
community without granting anyone the power to erase what is already there.
-Both levers are governed rather than administered. Muting requires `require_moderator()` —
+Both levers are governed rather than administered. Muting requires `require_moderator()`, meaning
membership of `moderator_accounts`. Everything else requires `require_owner()`, and the owner is the
community's DAO. Moderators are appointed and removed by DAO vote (`AddModerator`,
`DeleteModerator`) and the threshold is changed by DAO vote (`ChangeMinimumTokenThreshold`); a
moderator cannot appoint another moderator or move the threshold. Each of those votes carries the
full DAO cost and quorum: 555 AE to open, two weeks in key-blocks, 55% approval, 10% participation.
-Every moderation change is deliberate and approved by the community.
`is_private` is fixed by `init` at community creation; no entrypoint changes it and it is not among
the vote subjects. A community's private/public setting is permanent.
-Superhero offers **community-level visibility control**, while the protocol keeps every post intact
-and verifiable.
+Superhero controls visibility per community, while the protocol keeps every post intact and
+verifiable.
## Related
-- [Posting](/social/posting) — the practical guide, including hashtags, mentions and media.
-- [Delegated & Gasless Posting](/social/delegated-posting) — the signature scheme above, with code.
-- [Comments](/social/comments) — the `comment:` convention and how threads are reconstructed.
-- [Moderation](/social/moderation) — moderators, mute lists and write thresholds in detail.
-- [Tipping (v3)](/contracts/tipping) — the full contract reference, entrypoints and events.
-- [æScan explorer](https://aescan.io) — look up the Tipping contract and read the post history yourself.
+- [Posting](/social/posting): the practical guide, including hashtags, mentions and media.
+- [Delegated & Gasless Posting](/social/delegated-posting): the signature scheme above, with code.
+- [Comments](/social/comments): the `comment:` convention and how threads are reconstructed.
+- [Moderation](/social/moderation): moderators, mute lists and write thresholds in detail.
+- [Tipping (v3)](/contracts/tipping): the full contract reference, entrypoints and events.
+- [æScan explorer](https://aescan.io): look up the Tipping contract and read the post history yourself.
diff --git a/pages/concepts/value-flow.mdx b/pages/concepts/value-flow.mdx
index 9f5868a..3771f04 100644
--- a/pages/concepts/value-flow.mdx
+++ b/pages/concepts/value-flow.mdx
@@ -6,8 +6,8 @@ description: "The exact split of every AE spent on a community token buy — and
# Where the Money Goes
Every AE that enters a community token trade ends up in one of four places: the bonding curve
-reserve, the community's DAO treasury, the affiliation chain, or the network as gas. Here is the
-full accounting, on both sides of a trade.
+reserve, the community's DAO treasury, the affiliation chain, or the network as gas. This page gives
+the full accounting, on both sides of a trade.
## The buy side
@@ -29,12 +29,12 @@ Buyer also receives:
```
The 1% total spread is the difference between the buy curve and the sell curve. It is not
-charged as a separate fee — it is built into the two curves. See
+charged as a separate fee; it is built into the two curves. See
[Bonding Curves](/tokens/bonding-curve) for the math.
## The exact split
-Write `C` for the **curve cost** of the slice you are buying — the integral of the buy curve from the
+Write `C` for the **curve cost** of the slice you are buying: the integral of the buy curve from the
current supply to the supply after your purchase:
```text
@@ -57,7 +57,7 @@ function exp_helper(x : int, term : int, sum : int, i : int, scale : int) : int
The series matches the closed form to well below one aetto per token. Use the closed form to
reason about the shape; use `price(count)` when a number has to be exact.
-The sell curve is `sell(x) = buy(x) * 0.995` — the 0.5% that funds the DAO. The sale contract adds
+The sell curve is `sell(x) = buy(x) * 0.995`, and that 0.5% gap funds the DAO. The sale contract adds
a further 0.5% affiliation fee **on top of** the curve price, so the total spread between buy and
sell price is 1%.
@@ -73,7 +73,7 @@ entrypoint price(count : int) : int =
`price(n)` already equals `1.005 * C`; do not multiply it by 1.005 again. `buy` uses the same
arithmetic and requires `Call.value >= total_price`, refunding any excess with
-`Chain.spend(Call.caller, overpaid_refund)` — which is why the agent CLI can attach `price * 1.03`
+`Chain.spend(Call.caller, overpaid_refund)`. That is why the agent CLI can attach `price * 1.03`
and get the difference back.
The affiliation fee rate is read from the treasury at call time: `get_affiliation_fee_percentage()`
@@ -93,7 +93,7 @@ split rounded to one decimal place.
The four affiliation levels are percentages **of the transaction value**, not of the fee, which is
why they sum to 0.5% rather than to 100%. The transaction value handed to the treasury is `C`, the
-bare curve price — so level 1 receives 0.300% of `C`, not of `1.005 * C`.
+bare curve price, so level 1 receives 0.300% of `C`, not of `1.005 * C`.
### How the split is executed
@@ -108,7 +108,7 @@ bare curve price — so level 1 receives 0.300% of `C`, not of `1.005 * C`.
| 5 | `dao_contract.record_sale_transaction(...)` | `Call.value - overpaid_refund - affiliation_amount - reserve` |
The DAO's cut in step 5 is a **residual**, not a percentage. `reserve` is
-`calculate_sell_return(total_supply_after_mint, count)`, which is `0.995 * C` — exactly what a
+`calculate_sell_return(total_supply_after_mint, count)`, which is `0.995 * C`: exactly what a
seller of that same slice could immediately redeem. Subtracting it and the affiliation fee from
`1.005 * C` leaves `0.005 * C` for the DAO. The sale contract keeps precisely the sell-side
obligation and forwards the rest, which is what makes the solvency guarantee structural.
@@ -152,7 +152,7 @@ return = integral of sell(x) dx, from supply - amount to supply
| Affiliation chain | nothing |
| ProtocolDAO tokens minted | none |
-The 0.5% gap relative to the buy curve is not a sell fee — it was taken when those tokens were
+The 0.5% gap relative to the buy curve is not a sell fee. It was taken when those tokens were
bought. The reserve grows by `0.995 * C` per buy, which is exactly the sell-curve integral over the
same slice, so the reserve at supply `S` is always `integral of sell(x) from 0 to S`: precisely
enough to redeem the entire supply. Selling the entire supply back to the curve is always possible.
@@ -190,13 +190,13 @@ only. Likewise the factory's `mint_protocol_dao_token(int, address)` is called o
| Event | Argument 0 | Argument 1 | Argument 2 |
| --- | --- | --- | --- |
-| `Buy` | `total_price` — all-in AE, fee included | `affiliation_amount` | `total_supply` **before** the mint |
-| `Sell` | `return` — AE paid to the seller | `total_supply` **before** the burn | — |
-| `PriceChange` | `previous_price` | `next_price` | — |
+| `Buy` | `total_price`: all-in AE, fee included | `affiliation_amount` | `total_supply` **before** the mint |
+| `Sell` | `return`: AE paid to the seller | `total_supply` **before** the burn | n/a |
+| `PriceChange` | `previous_price` | `next_price` | n/a |
`Buy` and `Sell` omit `count`; take the token amount from the decoded call arguments, not the
-event. Both unit prices in `PriceChange` come from `calculate_unit_price()`, which is `price(10^18)`
-— the all-in cost of one whole token at that moment, affiliation fee included.
+event. Both unit prices in `PriceChange` come from `calculate_unit_price()`, which is `price(10^18)`:
+the all-in cost of one whole token at that moment, affiliation fee included.
## A worked example
@@ -223,7 +223,7 @@ If your buy is attributed to a referrer, that 0.050 AE splits down the invite ch
| 4 | 0.025% | 0.0025 AE |
| **Total** | **0.500%** | **0.0500 AE** |
-A level that does not exist — nobody invited your inviter — contributes nothing to anyone.
+A level that does not exist (nobody invited your inviter) contributes nothing to anyone.
Now sell all 1,400,993 tokens straight back, before anyone else trades:
@@ -234,7 +234,7 @@ Now sell all 1,400,993 tokens straight back, before anyone else trades:
| **You receive** | **9.950 AE** (minus gas, on two transactions) |
Round trip: you paid 10.050 AE and got back 9.950 AE. The 0.100 AE difference is **0.995% of what
-you sent** — the 1% spread, all of it collected on the way in. Gas is extra, and a sell costs two
+you sent**: the 1% spread, all of it collected on the way in. Gas is extra, and a sell costs two
transactions' worth of it.
## Slippage
@@ -261,10 +261,10 @@ Count transactions, not trades:
| --- | --- |
| Post or comment | 1 |
| Buy a token | 1 |
-| **Sell a token** | **2** — allowance, then sell |
+| **Sell a token** | **2**: allowance, then sell |
| Create a token | 1 (deploys token, curve, sale, DAO and management contracts together) |
| Open a DAO vote | 1, plus a **555 AE** payment to the DAO |
-| Create a governance poll | 2 — deploy, then register |
+| Create a governance poll | 2: deploy, then register |
| Claim rewards | 1; a small gas fee applies |
Gas for every transaction follows the network's gas price at execution;
@@ -289,7 +289,7 @@ switch(get_direct_inviter(invitee))
```
No entry is credited for a missing level. The only way AE leaves the treasury is `withdraw()`,
-which pays `get_accumulated_rewards(Call.caller)` — the sum of that caller's own ledger entries.
+which pays `get_accumulated_rewards(Call.caller)`, the sum of that caller's own ledger entries.
There is no owner, no admin entrypoint and no sweep, so uncredited AE stays in the contract balance
permanently. (Creating a collection, by contrast, sends its 555 AE fee to the burn address
`ak_11111111111111111111111111111111273Yts`.)
@@ -297,8 +297,8 @@ permanently. (Creating a collection, by contrast, sends its 555 AE fee to the bu
Two further amounts burn the same way, both consequences of `withdraw()`:
- **Rewards older than two payout periods.** `get_accumulated_rewards` sums only the current period
- and the one before it. A payout period is `Chain.timestamp / 2592000000` — 30 days in
- milliseconds — so anything credited more than roughly 30 to 60 days ago can no longer be
+ and the one before it. A payout period is `Chain.timestamp / 2592000000` (30 days in
+ milliseconds), so anything credited more than roughly 30 to 60 days ago can no longer be
withdrawn.
- **Rewards belonging to an inviter who has not qualified.** `withdraw()` requires
`state.unique_invitees[...] == ThresholdReached`, and aborts with
@@ -309,8 +309,8 @@ Two further amounts burn the same way, both consequences of `withdraw()`:
## ProtocolDAO tokens
-Every buy also mints ProtocolDAO tokens to the buyer — a separate platform-wide AEX-9 token, not the
-community token you bought — at **1,000× the AE value of the buy**, issued to the buyer's address at
+Every buy also mints ProtocolDAO tokens to the buyer (a separate platform-wide AEX-9 token, not the
+community token you bought) at **1,000× the AE value of the buy**, issued to the buyer's address at
the time of purchase. Its governance functionality is not yet implemented.
The factory holds the multiplier as a single constant:
@@ -324,7 +324,7 @@ stateful entrypoint mint_protocol_dao_token(buy_value : int, receiver : address)
state.protocol_dao_token.mint(receiver, buy_value * protocol_dao_token_multiplier)
```
-The sale contract passes `Call.value - overpaid_refund` as `buy_value` — the **all-in** amount
+The sale contract passes `Call.value - overpaid_refund` as `buy_value`: the **all-in** amount
debited, `1.005 * C`, affiliation fee included. A buy whose curve cost is 10 AE costs 10.05 AE and
mints 10,050 ProtocolDAO tokens. Only a sale the factory itself deployed can mint
(`known_token_sales`). During `create_community` the factory mints the initial buy's ProtocolDAO
@@ -338,9 +338,9 @@ record.
## Related
-- [Bonding Curves](/tokens/bonding-curve) — the integral, the entrypoints, and how a quote is built.
-- [Fees & Slippage](/tokens/fees-and-slippage) — the practical guide to setting tolerance before you trade.
-- [The Affiliation System](/rewards/affiliation) — how the four-level chain is recorded and how payouts are claimed.
-- [The Treasury](/dao/treasury) — what happens to the DAO's 0.5% once it arrives.
-- [ProtocolDAO Token](/dao/protocol-dao) — what the platform token is for, and what it is not yet.
-- [Buy or sell on superhero.com](https://superhero.com/trends/tokens) — the live token list and trade cards.
+- [Bonding Curves](/tokens/bonding-curve): the integral, the entrypoints, and how a quote is built.
+- [Fees & Slippage](/tokens/fees-and-slippage): the practical guide to setting tolerance before you trade.
+- [The Affiliation System](/rewards/affiliation): how the four-level chain is recorded and how payouts are claimed.
+- [The Treasury](/dao/treasury): what happens to the DAO's 0.5% once it arrives.
+- [ProtocolDAO Token](/dao/protocol-dao): what the platform token is for, and what it is not yet.
+- [Buy or sell on superhero.com](https://superhero.com/trends/tokens): the live token list and trade cards.
diff --git a/pages/concepts/what-is-superhero.mdx b/pages/concepts/what-is-superhero.mdx
index df06bdc..272886b 100644
--- a/pages/concepts/what-is-superhero.mdx
+++ b/pages/concepts/what-is-superhero.mdx
@@ -6,10 +6,10 @@ description: "Superhero in plain language: an on-chain social network where tren
# What is Superhero?
Superhero is a social and crypto application on the æternity blockchain. You can discover content,
-publish posts, tip creators, trade community tokens, and take part in on-chain governance — all from
+publish posts, tip creators, trade community tokens, and take part in on-chain governance, all from
one app, available on the web, as a mobile app, and as an installable PWA.
-> A decentralized attention market for social trends — where creators own their content,
+> A decentralized attention market for social trends, where creators own their content,
> communities become tradable markets, and attention is priced in real time.
## The six pillars
@@ -43,7 +43,7 @@ contract call you sign yourself.
**Tokens are priced by a formula.** There is no bid, no ask, no maker and no taker. You trade
against a [bonding curve](/tokens/bonding-curve), and the price stays on that curve for the token's
-whole life — there is no graduation to an AMM pool. The sale contract holds a reserve sufficient to
+whole life. There is no graduation to an AMM pool. The sale contract holds a reserve sufficient to
redeem the entire supply.
**Everything runs on æternity.** Superhero is a set of Sophia contracts plus an indexer and a
@@ -65,7 +65,7 @@ Superhero is one application surfaced four ways, all against the same contracts.
| Surface | URL or store | Notes |
| --- | --- | --- |
| Web app | [superhero.com](https://superhero.com) | The primary surface |
-| Installable PWA | superhero.com, "Install the Superhero app" prompt | Home-screen install, integrated wallet, push notifications — no app store needed |
+| Installable PWA | superhero.com, "Install the Superhero app" prompt | Home-screen install, integrated wallet, push notifications, no app store needed |
| iOS app | [App Store](https://apps.apple.com/us/app/superhero-web3-communities/id6758045846) | Ships with a built-in wallet |
| Android app | [Google Play](https://play.google.com/store/apps/details?id=com.superhero.apps) | Ships with a built-in wallet |
@@ -76,15 +76,14 @@ management lives in the wallet. See [Choosing a Wallet](/wallets/choosing-a-wall
Two other services appear in the app:
-- **api.superhero.com** — the indexer and REST API behind the feed, token data and analytics. See [API Reference](/api-reference).
-- **quali.chat** — a third-party chat partner. Token rooms and comments surface Quali rooms at
- `app.quali.chat`; the app also ships a Nostr-based chat against `wss://relay.superhero.chat`.
+- **api.superhero.com**: the indexer and REST API behind the feed, token data and analytics. See [API Reference](/api-reference).
+- **Chat**: built into the web and mobile apps, over Nostr on `wss://relay.superhero.chat`. See [Chat](/social/chat).
## Related
-- [Attention Markets](/concepts/attention-markets) — why a hashtag gets a price at all, and what that price means.
-- [Architecture Overview](/concepts/architecture) — the contracts and services behind each action in the table above.
-- [Where the Money Goes](/concepts/value-flow) — the fee split, to the fraction.
-- [Quickstart](/getting-started/quickstart) — go from nothing to a first post and a first trade.
-- [Glossary](/concepts/glossary) — every term above, defined.
-- [Official Links](/resources/links) — every official Superhero URL.
+- [Attention Markets](/concepts/attention-markets): why a hashtag gets a price at all, and what that price means.
+- [Architecture Overview](/concepts/architecture): the contracts and services behind each action in the table above.
+- [Where the Money Goes](/concepts/value-flow): the fee split, to the fraction.
+- [Quickstart](/getting-started/quickstart): go from nothing to a first post and a first trade.
+- [Glossary](/concepts/glossary): every term above, defined.
+- [Official Links](/resources/links): every official Superhero URL.
diff --git a/pages/contracts/_meta.json b/pages/contracts/_meta.json
index f9e1ad8..736f8c4 100644
--- a/pages/contracts/_meta.json
+++ b/pages/contracts/_meta.json
@@ -14,5 +14,8 @@
"address-link": "AddressLink",
"governance-contracts": "Registry & Poll",
"events": "Events",
- "security": "Security Model"
+ "security": "Security Model",
+ "profile-registry": {
+ "display": "hidden"
+ }
}
diff --git a/pages/contracts/address-link.mdx b/pages/contracts/address-link.mdx
index bcdf838..78e8a31 100644
--- a/pages/contracts/address-link.mdx
+++ b/pages/contracts/address-link.mdx
@@ -5,9 +5,9 @@ description: "The identity contract: provider-keyed links from an address to an
# AddressLink
-`AddressLink` is Superhero's identity contract. It maps an address to a `map(provider, value)`
-— one value per provider, such as an X handle, a nostr public key or a preferred AENS name —
-with a reverse index for resolving a value back to an address and a per-address nonce
+`AddressLink` is Superhero's identity contract. It maps an address to a `map(provider, value)`,
+holding one value per provider (an X handle, a nostr public key, a preferred AENS name). It
+also keeps a reverse index for resolving a value back to an address and a per-address nonce
sequence for signed writes.
A link can be owned by a bare account, by an AENS name (a *principal*), or by a DID with a
@@ -48,7 +48,7 @@ record state =
## Providers
A provider id is a namespace owned by an account. `register_provider(provider)` claims it,
-and only the owner may write links under it — any other caller aborts with
+and only the owner may write links under it. Any other caller aborts with
`NOT_PROVIDER_OWNER`. Provider ids are at most ten lowercase `a-z` characters
(`/^[a-z]{1,10}$/`), which is why the AENS provider is spelled `prefaens`.
@@ -137,9 +137,9 @@ Every event carries an `address` topic and a `string` in `data`. On the link eve
## Related
-- [Superhero ID](/identity/superhero-id) — the identity system from a user's point of view
-- [Chain names](/identity/chain-names) — AENS names, which are verifiable without this contract
-- [X verification](/identity/x-verification) — the claim-sign-submit flow in the app
-- [AddressLink](/identity/address-link) — the identity-section view of linking
-- [Profile API](/api-reference/profile) — the endpoints in the table above
-- [Events](/contracts/events) — the `AddressLink` topic hashes in the cross-contract catalogue
+- [Superhero ID](/identity/superhero-id): the identity system from a user's point of view
+- [Chain names](/identity/chain-names): AENS names, which are verifiable without this contract
+- [X verification](/identity/x-verification): the claim-sign-submit flow in the app
+- [AddressLink](/identity/address-link): the identity-section view of linking
+- [Profile API](/api-reference/profile): the endpoints in the table above
+- [Events](/contracts/events): the `AddressLink` topic hashes in the cross-contract catalogue
diff --git a/pages/contracts/addresses.mdx b/pages/contracts/addresses.mdx
index e20be8c..037afd0 100644
--- a/pages/contracts/addresses.mdx
+++ b/pages/contracts/addresses.mdx
@@ -7,7 +7,7 @@ description: "Every shared contract address Superhero uses on mainnet and testne
The addresses below are the shared contracts on æternity mainnet (`ae_mainnet`) and testnet
(`ae_uat`). Per-community contracts (token, sale, DAO, community management) are deployed by
-the factory and resolved per token — see
+the factory and resolved per token. See
[Reading addresses at runtime](#reading-addresses-at-runtime).
## Mainnet (`ae_mainnet`)
@@ -24,9 +24,9 @@ the factory and resolved per token — see
| WAE (wrapped AE) | `ct_J3zBY8xxjsRr3QojETNw48Eb38fjvEuJKkQ6KzECvubvEcvCa` |
| aeETH | `ct_ryTY1mxqjCjq1yBn9i6HDaCSdA6thXUFZTA84EMzbWd1SLKdh` |
-The mainnet factory was deployed at key block height **1089546**. Start an indexer backfill of
+The mainnet factory was deployed at key block height 1089546. Start an indexer backfill of
factory events from there. The governance registry is older: its backfill starts at height
-**164578**.
+164578.
## Testnet (`ae_uat`)
@@ -42,8 +42,8 @@ factory events from there. The governance registry is older: its backfill starts
| WAE (wrapped AE) | `ct_JDp175ruWd7mQggeHewSLS1PFXt9AzThCDaFedxon8mF8xTRF` |
| aeETH | `ct_WVqAvLQpvZCgBg4faZLXA1YBj43Fxj91D33Z8K7pFsY8YCofv` |
-The testnet factory was deployed at key block height **1097291**; the testnet governance
-registry backfill starts at height **168710**.
+The testnet factory was deployed at key block height 1097291; the testnet governance
+registry backfill starts at height 168710.
## Reading addresses at runtime
@@ -119,8 +119,8 @@ addresses without any chain calls.
## Related
-- [Calling Contracts](/contracts/calling-contracts) — how to turn one of these addresses into a working contract instance
-- [CommunityFactory](/contracts/community-factory) — the entrypoints used above to resolve addresses
-- [Networks](/aeternity/networks) — node, middleware and explorer endpoints for both networks
-- [Factory and contracts API](/api-reference/factory-and-contracts) — the REST endpoints that serve the factory schema
-- [aeScan block explorer](https://aescan.io) — inspect any address, its state and its calls
+- [Calling Contracts](/contracts/calling-contracts): how to turn one of these addresses into a working contract instance
+- [CommunityFactory](/contracts/community-factory): the entrypoints used above to resolve addresses
+- [Networks](/aeternity/networks): node, middleware and explorer endpoints for both networks
+- [Factory and contracts API](/api-reference/factory-and-contracts): the REST endpoints that serve the factory schema
+- [aeScan block explorer](https://aescan.io): inspect any address, its state and its calls
diff --git a/pages/contracts/aex9.mdx b/pages/contracts/aex9.mdx
index 56d16e2..b4dadf2 100644
--- a/pages/contracts/aex9.mdx
+++ b/pages/contracts/aex9.mdx
@@ -5,8 +5,8 @@ description: "The AEX-9 token behind every community token and the ProtocolDAO t
# FungibleTokenFull (AEX-9)
-`FungibleTokenFull.aes` is the AEX-9 implementation every Superhero token uses — each
-community's token and the ProtocolDAO token alike. It is the æternity reference fungible token
+`FungibleTokenFull.aes` is the AEX-9 implementation every Superhero token uses, for
+every community's token and for the ProtocolDAO token. It is the æternity reference fungible token
(`aeternity-fungible-token` v2.2.0) with the allowance, mintable, burnable and swappable
extensions.
@@ -20,7 +20,7 @@ token is `ct_dsa6octVEHPcm7wRszK6VAjPp1FTqMWa7sBFdxQ9jBT35j6VW` on mainnet and
| Entrypoint | Signature | Flags |
| --- | --- | --- |
-| `init` | `(name: string, decimals: int, symbol: string, initial_owner_balance: option(int)) => state` | — |
+| `init` | `(name: string, decimals: int, symbol: string, initial_owner_balance: option(int)) => state` | |
| `transfer` | `(to_account: address, value: int) => unit` | stateful |
| `transfer_allowance` | `(from_account: address, to_account: address, value: int) => unit` | stateful |
| `create_allowance` | `(for_account: address, value: int) => unit` | stateful |
@@ -28,17 +28,17 @@ token is `ct_dsa6octVEHPcm7wRszK6VAjPp1FTqMWa7sBFdxQ9jBT35j6VW` on mainnet and
| `reset_allowance` | `(for_account: address) => unit` | stateful |
| `mint` | `(account: address, value: int) => unit` | stateful |
| `burn` | `(value: int) => unit` | stateful |
-| `balance` | `(account: address) => option(int)` | — |
-| `balances` | `() => FungibleTokenFull.balances` | — |
-| `allowance` | `(allowance_accounts: FungibleTokenFull.allowance_accounts) => option(int)` | — |
-| `allowance_for_caller` | `(from_account: address) => option(int)` | — |
-| `allowances` | `() => FungibleTokenFull.allowances` | — |
-| `meta_info` | `() => FungibleTokenFull.meta_info` | — |
-| `total_supply` | `() => int` | — |
-| `owner` | `() => address` | — |
-| `aex9_extensions` | `() => list(string)` | — |
+| `balance` | `(account: address) => option(int)` | |
+| `balances` | `() => FungibleTokenFull.balances` | |
+| `allowance` | `(allowance_accounts: FungibleTokenFull.allowance_accounts) => option(int)` | |
+| `allowance_for_caller` | `(from_account: address) => option(int)` | |
+| `allowances` | `() => FungibleTokenFull.allowances` | |
+| `meta_info` | `() => FungibleTokenFull.meta_info` | |
+| `total_supply` | `() => int` | |
+| `owner` | `() => address` | |
+| `aex9_extensions` | `() => list(string)` | |
| `swap` | `() => unit` | stateful |
-| `swapped` | `() => map(address, int)` | — |
+| `swapped` | `() => map(address, int)` | |
| `check_swap` | `(account: address) => int` | stateful |
## Types
@@ -65,8 +65,8 @@ record state =
, swapped : map(address, int) }
```
-`allowance` takes the `allowance_accounts` record as a **single argument**, not two
-addresses — pass an object with exactly those two field names:
+`allowance` takes the `allowance_accounts` record as a single argument, not as two
+addresses. Pass an object with exactly those two field names:
```javascript
const current = await token
@@ -86,12 +86,12 @@ datatype event =
```
These are the standard AEX-9 events. A single token buy produces a `Mint` on the community
-token *and* a `Mint` on the ProtocolDAO token in the same transaction — see
+token *and* a `Mint` on the ProtocolDAO token in the same transaction. See
[Events](/contracts/events) for how to tell them apart.
## Decimals
-Community tokens have **18 decimals**: one whole token is `1000000000000000000` base units,
+Community tokens have 18 decimals: one whole token is `1000000000000000000` base units,
the same scale as AE itself. Every `value`, `count` and `amount` in these contracts is in base
units.
@@ -103,7 +103,7 @@ require(decimals == bonding_curve.supported_decimals(),
"BONDING_CURVE_SUPPORTED_DECIMALS_MISSMATCH")
```
-Read `meta_info()` and use its `decimals` field rather than hardcoding 18 — the ProtocolDAO
+Read `meta_info()` and use its `decimals` field rather than hardcoding 18. The ProtocolDAO
token or a future collection could differ:
```javascript
@@ -119,12 +119,11 @@ The sale contract creates the token in its own `init`:
token_contract = Chain.create(name, decimals, symbol, None) : FungibleTokenFull
```
-- **The `owner` is the sale contract**, because `Chain.create` runs inside it. That is what
- authorises `mint` on a buy and `burn` on a sell.
-- **`initial_owner_balance` is `None`**, so a new community token starts at zero total supply.
- Every token in existence was minted by a buy.
-- **The name and the symbol are the same string.** `CommunityFactory.create_community` passes
- its `name` argument to both positions.
+Because `Chain.create` runs inside the sale contract, the sale contract is the token's
+`owner`, and that is what authorises `mint` on a buy and `burn` on a sell.
+`initial_owner_balance` is `None`, so a new community token starts at zero total supply: every
+token in existence was minted by a buy. The name and the symbol are the same string, because
+`CommunityFactory.create_community` passes its `name` argument to both positions.
## Allowances
@@ -132,8 +131,8 @@ Two Superhero flows require an allowance before they work:
| Flow | Grant the allowance to |
| --- | --- |
-| Selling tokens back to the bonding curve | the **sale** contract address, `ct_` rewritten to `ak_` |
-| Voting in a community DAO | the **vote** contract address, `ct_` rewritten to `ak_` |
+| Selling tokens back to the bonding curve | the sale contract address, `ct_` rewritten to `ak_` |
+| Voting in a community DAO | the vote contract address, `ct_` rewritten to `ak_` |
The `ct_` to `ak_` rewrite is required. A contract's account identity uses the `ak_` prefix
over the same key bytes, and that is the address that appears as `for_account`:
@@ -147,7 +146,7 @@ Three entrypoints manage the value:
| Entrypoint | Semantics | When to use it |
| --- | --- | --- |
| `create_allowance(for_account, value)` | Creates a new allowance entry. | First time granting to this spender |
-| `change_allowance(for_account, value_change)` | Adds a **delta** to an existing allowance. The delta may be negative. | Adjusting an existing allowance |
+| `change_allowance(for_account, value_change)` | Adds a delta to an existing allowance. The delta may be negative. | Adjusting an existing allowance |
| `reset_allowance(for_account)` | Sets it to zero. | Revoking |
The pattern:
@@ -176,9 +175,9 @@ if (existing === undefined) {
`mint` and `burn` are how supply tracks the bonding curve:
-- **Buy** — the sale contract calls `mint(buyer, count)`. Supply goes up.
-- **Sell** — the sale contract pulls your tokens with `transfer_allowance` and calls `burn`.
- Supply goes down.
+- On a buy, the sale contract calls `mint(buyer, count)` and supply goes up.
+- On a sell, the sale contract pulls your tokens with `transfer_allowance` and calls `burn`,
+ and supply goes down.
Both are owner-gated. For a community token the owner is the sale contract, so the only way to
increase supply is to pay the curve. That is what makes `total_supply()` a reliable input to a
@@ -191,15 +190,15 @@ balances from an older token contract into a newer one: `swap()` credits the cal
their balance in the predecessor and records the amount in the `swapped` map. Superhero does
not use this path; for a factory-created token `swapped()` is empty.
-`aex9_extensions()` returns the list of extension names the contract implements. Call it
-rather than assuming — it is the standard's own discovery mechanism.
+`aex9_extensions()` returns the list of extension names the contract implements. It is the
+standard's own discovery mechanism, so call it instead of assuming.
## Reading balances
| Read | Returns | Note |
| --- | --- | --- |
-| `balance(account)` | `option(int)` | `undefined` when the account has never held the token, **not** zero |
-| `balances()` | `map(address, int)` | Every holder. Large on popular tokens — prefer the middleware |
+| `balance(account)` | `option(int)` | `undefined` when the account has never held the token, not zero |
+| `balances()` | `map(address, int)` | Every holder. Large on popular tokens; prefer the middleware |
| `total_supply()` | `int` | The input to every bonding curve price call |
For holder lists and balances at scale, query the middleware's AEX-9 endpoints
@@ -208,9 +207,9 @@ in one response.
## Related
-- [AffiliationBondingCurveTokenSale](/contracts/token-sale) — the contract that mints and burns these tokens
-- [DAOVote](/contracts/dao-vote) — the other flow that needs an allowance
-- [Calling Contracts](/contracts/calling-contracts) — SDK setup and the full allowance example
-- [AEX-9 tokens in your wallet](/wallets/aex9-tokens) — the same token from a holder's point of view
-- [AEX standards](/aeternity/aex-standards) — where AEX-9 sits among the æternity standards
-- [AEX-9 specification](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md) — the standard itself
+- [AffiliationBondingCurveTokenSale](/contracts/token-sale): the contract that mints and burns these tokens
+- [DAOVote](/contracts/dao-vote): the other flow that needs an allowance
+- [Calling Contracts](/contracts/calling-contracts): SDK setup and the full allowance example
+- [AEX-9 tokens in your wallet](/wallets/aex9-tokens): the same token from a holder's point of view
+- [AEX standards](/aeternity/aex-standards): where AEX-9 sits among the æternity standards
+- [AEX-9 specification](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md): the standard itself
diff --git a/pages/contracts/affiliation-treasury.mdx b/pages/contracts/affiliation-treasury.mdx
index 9d2cd49..e71e697 100644
--- a/pages/contracts/affiliation-treasury.mdx
+++ b/pages/contracts/affiliation-treasury.mdx
@@ -21,27 +21,27 @@ Or resolve it at runtime with `factory.affiliation_treasury()`. Its interface is
| Entrypoint | Signature | Flags |
| --- | --- | --- |
-| `init` | `() => AffiliationTreasury.state` | — |
+| `init` | `() => AffiliationTreasury.state` | |
| `register_invitation_code` | `(invitation_addresses: list(address), redemption_fee_cover: int, invitation_amount: int) => unit` | stateful, payable |
| `revoke_invitation_code` | `(invitation_address: address) => unit` | stateful |
| `redeem_invitation_code` | `(invitee_address: address) => unit` | stateful |
| `register_invitation` | `(inviter_address: address) => unit` | stateful |
| `record_sale_transaction` | `(buyer: address, transaction_value: int) => unit` | stateful, payable |
| `withdraw` | `() => unit` | stateful |
-| `get_accumulated_rewards` | `(account: address) => int` | — |
-| `get_direct_inviter` | `(account: address) => option(address)` | — |
-| `get_affiliation_tree` | `(address: address) => address` | — |
-| `affiliation_tree` | `() => map(address, address)` | — |
-| `get_affiliation_fee_percentage` | `() => int` | — |
-| `get_affiliation_fee_percentages` | `() => list(int)` | — |
-| `get_affiliation_fee_precision` | `() => int` | — |
-| `get_invitation_code` | `(address: address) => tuple(address, int, bool)` | — |
-| `invitation_codes` | `() => map(address, tuple(address, int, bool))` | — |
-| `get_unique_invitee` | `(address: address) => AffiliationTreasury.unique_invitees_state` | — |
-| `unique_invitees` | `() => map(address, AffiliationTreasury.unique_invitees_state)` | — |
-| `get_payout_period` | `() => int` | — |
-| `payout_periods` | `() => map(int, map(address, int))` | — |
-| `get_state` | `() => AffiliationTreasury.state` | — |
+| `get_accumulated_rewards` | `(account: address) => int` | |
+| `get_direct_inviter` | `(account: address) => option(address)` | |
+| `get_affiliation_tree` | `(address: address) => address` | |
+| `affiliation_tree` | `() => map(address, address)` | |
+| `get_affiliation_fee_percentage` | `() => int` | |
+| `get_affiliation_fee_percentages` | `() => list(int)` | |
+| `get_affiliation_fee_precision` | `() => int` | |
+| `get_invitation_code` | `(address: address) => tuple(address, int, bool)` | |
+| `invitation_codes` | `() => map(address, tuple(address, int, bool))` | |
+| `get_unique_invitee` | `(address: address) => AffiliationTreasury.unique_invitees_state` | |
+| `unique_invitees` | `() => map(address, AffiliationTreasury.unique_invitees_state)` | |
+| `get_payout_period` | `() => int` | |
+| `payout_periods` | `() => map(int, map(address, int))` | |
+| `get_state` | `() => AffiliationTreasury.state` | |
## Types
@@ -58,7 +58,7 @@ record state =
, unique_invitees : map(address, unique_invitees_state) }
```
-`invitation_codes` is keyed by the **invite address** — the public key of a throwaway keypair
+`invitation_codes` is keyed by the invite address: the public key of a throwaway keypair
whose secret key is the invite link. Each entry is a three-element tuple, decoded in
JavaScript as an array:
@@ -78,7 +78,7 @@ entrypoint get_affiliation_fee_percentage(): int = 500 // 0.5%, the sum of the
| Level | Constant | Share of the transaction |
| --- | --- | --- |
-| 1 — the direct inviter | 300 | 0.300% |
+| 1 (the direct inviter) | 300 | 0.300% |
| 2 | 125 | 0.125% |
| 3 | 50 | 0.050% |
| 4 | 25 | 0.025% |
@@ -164,12 +164,12 @@ Chain.spend(Call.caller, invitation_amount)
```
Only the original inviter may revoke, and only before redemption. The `redemption_fee_cover`
-is not part of the refund — it was spent to the invite address at registration. If you kept
+is not part of the refund, because it was spent to the invite address at registration. If you kept
the keypair, sweep it from the invite account with a plain spend.
### Redeeming
-`redeem_invitation_code(invitee_address)` is called **by the invite address itself** — the
+`redeem_invitation_code(invitee_address)` is called by the invite address itself. The
invitee's client signs with the secret key from the link, and the contract looks the code up by
`Call.caller`. It marks the code redeemed, spends the gift to `invitee_address`, and writes
`affiliation_tree[invitee_address] = inviter_address`.
@@ -286,14 +286,14 @@ Notes for indexers:
## Tree shape
-`affiliation_tree` is `map(address, address)` — one direct inviter per account, written once
+`affiliation_tree` is `map(address, address)`: one direct inviter per account, written once
and never re-parented. The tree itself has no depth limit; the payout walk visits at most four
ancestors, one per entry in `affiliation_fee_percentages`. Level five and beyond exist in the
data and earn nothing.
## Related
-- [AffiliationBondingCurveTokenSale](/contracts/token-sale) — the contract that funds this one on every buy
-- [Affiliation](/rewards/affiliation) — the reward programme explained for participants
-- [Invite links](/rewards/invite-links) — creating and sharing invites from the app
-- [Claiming rewards](/rewards/claiming) — the withdrawal flow
+- [AffiliationBondingCurveTokenSale](/contracts/token-sale): the contract that funds this one on every buy
+- [Affiliation](/rewards/affiliation): the reward programme explained for participants
+- [Invite links](/rewards/invite-links): creating and sharing invites from the app
+- [Claiming rewards](/rewards/claiming): the withdrawal flow
diff --git a/pages/contracts/bonding-curve.mdx b/pages/contracts/bonding-curve.mdx
index 17252d8..8e6ea9c 100644
--- a/pages/contracts/bonding-curve.mdx
+++ b/pages/contracts/bonding-curve.mdx
@@ -6,7 +6,7 @@ description: "The pricing contract: entrypoints, curve constants, the fixed-poin
# BondingCurveExponential
`BondingCurveExponential.aes` computes every price in the token system. It holds no funds and
-no per-community state — one instance is shared by every community, and the token sale calls
+no per-community state. One instance is shared by every community, and the token sale calls
into it through the `BondingCurve` interface.
Resolve its address with `factory.bonding_curve()`. Use `BondingCurveExponential.aci.json`
@@ -52,8 +52,8 @@ Use `calculate_buy_price` and `calculate_sell_return` for quotes.
| `minimum_count` | `1 * 10 ^ 12` | 10^12 aettos, i.e. 10^-6 of a token |
| `sell_return_percentage` | `9950` | 99.50% |
| `sell_return_precision` | `10000` | the denominator of that percentage |
-| `curve_type()` | `"TAYLOR_EXPONENTIAL_V1"` | — |
-| `supported_decimals()` | `18` | — |
+| `curve_type()` | `"TAYLOR_EXPONENTIAL_V1"` | n/a |
+| `supported_decimals()` | `18` | n/a |
The closed-form curve these constants encode:
@@ -100,7 +100,7 @@ function calculate_price(total_supply : int, count : int) =
+ ((a * (mc2(next_supply_exponent) - mc2(current_supply_exponent))) / (k * decimals))
```
-`mc2(x)` is the Maclaurin series for `e^x` **starting at the quadratic term** — it omits the
+`mc2(x)` is the Maclaurin series for `e^x` starting at the quadratic term. It omits the
`1` and the `x` term, because those cancel in the difference and are folded into the
`initial_price * count / decimals` term:
@@ -125,7 +125,7 @@ Two things bound the series:
before the iteration cap.
The approximation error is negligible: the on-chain result and the closed form agree to within
-2e-16 AE at supply 0 and 1.4e-12 AE at supply 10,000,000 — far below one aetto of a per-token
+2e-16 AE at supply 0 and 1.4e-12 AE at supply 10,000,000, far below one aetto of a per-token
price. Quote the closed form for explanation; call `calculate_buy_price` for money.
`calculate_price` carries the only `require` on the curve: a `count` below `minimum_count`
@@ -153,7 +153,7 @@ const value = await curve.buy_curve(supply).then((r) => r.decodedResult);
```
Keep it as a ratio of BigInts until the last possible moment. Never build a JavaScript
-`Number` out of either half — both can exceed 2^53:
+`Number` out of either half, because both can exceed 2^53:
```javascript
import BigNumber from 'bignumber.js';
@@ -203,8 +203,8 @@ console.log({
## Related
-- [Bonding curve](/tokens/bonding-curve) — the conceptual explanation, with worked examples
-- [Curve parameters](/tokens/curve-parameters) — the same constants from a trader's point of view
-- [AffiliationBondingCurveTokenSale](/contracts/token-sale) — the contract that calls this one
-- [Calling Contracts](/contracts/calling-contracts) — how to run the snippets above
-- [Sophia standard library](https://docs.aeternity.com/aesophia/v7.0.1/sophia_features/) — where `Frac` is defined
+- [Bonding curve](/tokens/bonding-curve): the conceptual explanation, with worked examples
+- [Curve parameters](/tokens/curve-parameters): the same constants from a trader's point of view
+- [AffiliationBondingCurveTokenSale](/contracts/token-sale): the contract that calls this one
+- [Calling Contracts](/contracts/calling-contracts): how to run the snippets above
+- [Sophia standard library](https://docs.aeternity.com/aesophia/v7.0.1/sophia_features/): where `Frac` is defined
diff --git a/pages/contracts/calling-contracts.mdx b/pages/contracts/calling-contracts.mdx
index 7cb4ace..a1af62a 100644
--- a/pages/contracts/calling-contracts.mdx
+++ b/pages/contracts/calling-contracts.mdx
@@ -36,7 +36,7 @@ contracts/
## A complete example
-This script reads a token sale's price and then buys from it. It is runnable as written —
+This script reads a token sale's price and then buys from it. It is runnable as written:
set `AE_PRIVATE_KEY` and pass a sale address.
```javascript
@@ -113,7 +113,7 @@ console.log('events:', result.decodedEvents.map((e) => e.name));
| `MemoryAccount(secretKey)` | Holds the key in process memory and signs locally. Nothing is sent to a remote signer. |
| `new Node(url)` | Points at a node's HTTP API. Mainnet `https://mainnet.aeternity.io`, testnet `https://testnet.aeternity.io`. |
| `Contract.initialize` | Needs `aci` plus `address`. Pass `onNode` always, and `onAccount` only when you intend to sign. Without `onAccount` the instance can still do read calls. |
-| `.decodedResult` | Every call returns a result envelope. `decodedResult` is the value, already decoded against the ACI — integers come back as `BigInt`, records as plain objects, maps as `Map`. |
+| `.decodedResult` | Every call returns a result envelope. `decodedResult` is the value, already decoded against the ACI: integers come back as `BigInt`, records as plain objects, maps as `Map`. |
| `{ amount }` | The AE attached to a payable call, in aettos (1 AE = 10^18 aettos). |
| `omitUnknown: true` | Drops call-option keys the SDK does not recognise instead of throwing. Set it on every write. |
@@ -123,7 +123,7 @@ The ACI drives argument encoding, so pass JavaScript values that match the Sophi
| Sophia type | Pass |
| --- | --- |
-| `int` | a `BigInt`, a `number`, or a decimal string — strings are safest above 2^53 |
+| `int` | a `BigInt`, a `number`, or a decimal string (strings are safest above 2^53) |
| `string` | a string |
| `bool` | a boolean |
| `address` | an `ak_...` string |
@@ -134,7 +134,7 @@ The ACI drives argument encoding, so pass JavaScript values that match the Sophi
| `option(t)` | `undefined` for `None`, the bare value for `Some` |
A `Map` is required where the ACI says `map`. `create_community` takes
-`meta_info : map(string, string)`, so pass `new Map()` — an object literal fails to encode.
+`meta_info : map(string, string)`, so pass `new Map()`. An object literal fails to encode.
Variants use the one-key-object form. To create a DAO payout vote:
@@ -192,9 +192,9 @@ Two caveats:
- **State moves.** A buy that lands after several other buys in the same micro block touches
different map entries and can use more gas than the dry run measured. The 30% margin above
is a starting point, not a guarantee.
-- **`create_community` is expensive.** It deploys four contracts in one transaction — a
+- **`create_community` is expensive.** It deploys four contracts in one transaction (a
`CommunityManagement`, a `DAO`, an `AffiliationBondingCurveTokenSale`, and the AEX-9 token
- the sale creates in its own `init` — then makes three more cross-contract calls to wire them
+ the sale creates in its own `init`), then makes three more cross-contract calls to wire them
together, and optionally performs an initial buy on top. Do not trim its gas limit
aggressively; let the SDK use its default unless you have measured repeatedly.
@@ -218,7 +218,7 @@ for (const e of result.decodedEvents) {
// PriceChange ct_sale... [ previous_price, next_price ]
```
-A single buy emits `Mint` **twice** — once from the community token and once from the
+A single buy emits `Mint` twice, once from the community token and once from the
ProtocolDAO token. Distinguish them by `e.contract.address`:
```javascript
@@ -269,7 +269,7 @@ Two failure modes that are **not** reverts and need separate handling:
- **Insufficient balance.** The transaction is rejected before execution. Check
`aeSdk.getBalance(address)` first.
- **Not mined.** `await` on a write resolves when the transaction is mined by default. Pass
- `waitMined: false` to get the hash immediately and poll yourself — useful for
+ `waitMined: false` to get the hash immediately and poll yourself. This is useful for
`create_community`, so a UI can navigate to a pending token page straight away.
## Selling needs an allowance first
@@ -321,9 +321,9 @@ await factory.has_community(collectionId, 'MYTOKEN');
## Related
-- [Deployed Addresses](/contracts/addresses) — the addresses these examples need, and how to resolve them at runtime
-- [Events](/contracts/events) — the full event catalogue and how to read events you did not submit
-- [AffiliationBondingCurveTokenSale](/contracts/token-sale) — the buy and sell entrypoints in detail
-- [FungibleTokenFull (AEX-9)](/contracts/aex9) — the allowance model the sell flow depends on
-- [Agent CLI reference](/agents/cli-reference) — ready-made scripts for buying, selling, creating tokens and inviting
-- [æternity JavaScript SDK contract guide](https://docs.aeternity.com/developer-documentation/aepp-sdk-js/docs/guides/contracts) — the upstream reference for `Contract.initialize` and call options
+- [Deployed Addresses](/contracts/addresses): the addresses these examples need, and how to resolve them at runtime
+- [Events](/contracts/events): the full event catalogue and how to read events you did not submit
+- [AffiliationBondingCurveTokenSale](/contracts/token-sale): the buy and sell entrypoints in detail
+- [FungibleTokenFull (AEX-9)](/contracts/aex9): the allowance model the sell flow depends on
+- [Agent CLI reference](/agents/cli-reference): ready-made scripts for buying, selling, creating tokens and inviting
+- [æternity JavaScript SDK contract guide](https://docs.aeternity.com/developer-documentation/aepp-sdk-js/docs/guides/contracts): the upstream reference for `Contract.initialize` and call options
diff --git a/pages/contracts/community-factory.mdx b/pages/contracts/community-factory.mdx
index 14c30b8..953f982 100644
--- a/pages/contracts/community-factory.mdx
+++ b/pages/contracts/community-factory.mdx
@@ -29,7 +29,7 @@ Four values are fixed, so you never need a node to know them:
| `fee_percentage()` | `500` | passthrough to `AffiliationTreasury.get_affiliation_fee_percentage()` |
| `fee_precision()` | `100000` | passthrough to `AffiliationTreasury.get_affiliation_fee_precision()` |
-`fee_percentage() / fee_precision()` is `500 / 100000` — **0.5%**. Divide the two rather than
+`fee_percentage() / fee_precision()` is `500 / 100000`, or 0.5%. Divide the two rather than
hardcoding 0.005; both are passthroughs and a treasury redeployment could move them.
## Entrypoints
@@ -40,22 +40,22 @@ hardcoding 0.005; both are passthroughs and a treasury redeployment could move t
| `create_collection` | `(collection_name: string, allowed_name_length: int, allowed_name_chars: list(CommunityFactory.allowedNameChars)) => string` | stateful, payable |
| `create_community` | `(collection_name: string, name: string, initial_buy_count: int, is_private: bool, meta_info: CommunityManagement.meta_info) => tuple(DAO, TokenSale, CommunityManagement)` | stateful, payable |
| `mint_protocol_dao_token` | `(buy_value: int, receiver: address) => unit` | stateful |
-| `has_community` | `(collection_name: string, name: string) => bool` | — |
-| `get_token_sale` | `(collection_name: string, name: string) => TokenSale` | — |
-| `token_contract` | `(collection_name: string, name: string) => FungibleTokenFull` | — |
-| `get_community_management` | `(token_sale: TokenSale) => CommunityManagement` | — |
-| `token_sale_registry` | `(collection_name: string) => CommunityFactory.token_sale_registry` | — |
-| `community_management` | `() => CommunityFactory.community_management` | — |
-| `allowed_name_length` | `(collection_name: string) => int` | — |
-| `allowed_name_chars` | `(collection_name: string) => list(CommunityFactory.allowedNameChars)` | — |
-| `bonding_curve` | `() => BondingCurve` | — |
-| `affiliation_treasury` | `() => AffiliationTreasury` | — |
-| `protocol_dao_token` | `() => FungibleTokenFull` | — |
-| `fee_percentage` | `() => int` | — |
-| `fee_precision` | `() => int` | — |
-| `factory_type` | `() => string` | — |
-| `version` | `() => int` | — |
-| `get_state` | `() => CommunityFactory.state` | — |
+| `has_community` | `(collection_name: string, name: string) => bool` | |
+| `get_token_sale` | `(collection_name: string, name: string) => TokenSale` | |
+| `token_contract` | `(collection_name: string, name: string) => FungibleTokenFull` | |
+| `get_community_management` | `(token_sale: TokenSale) => CommunityManagement` | |
+| `token_sale_registry` | `(collection_name: string) => CommunityFactory.token_sale_registry` | |
+| `community_management` | `() => CommunityFactory.community_management` | |
+| `allowed_name_length` | `(collection_name: string) => int` | |
+| `allowed_name_chars` | `(collection_name: string) => list(CommunityFactory.allowedNameChars)` | |
+| `bonding_curve` | `() => BondingCurve` | |
+| `affiliation_treasury` | `() => AffiliationTreasury` | |
+| `protocol_dao_token` | `() => FungibleTokenFull` | |
+| `fee_percentage` | `() => int` | |
+| `fee_precision` | `() => int` | |
+| `factory_type` | `() => string` | |
+| `version` | `() => int` | |
+| `get_state` | `() => CommunityFactory.state` | |
## Types
@@ -93,7 +93,7 @@ const chars = await factory.allowed_name_chars(collectionId).then((r) => r.decod
// [ { CharRangeFromTo: [ 65n, 90n ] }, { CharRangeFromTo: [ 48n, 57n ] }, { SingleChar: [ 45n ] } ]
```
-`CommunityManagement.meta_info` is `map(string, string)` — free-form key/value metadata with
+`CommunityManagement.meta_info` is `map(string, string)`: free-form key/value metadata with
no schema enforced on chain. The Superhero app writes four keys when it creates a token:
| Key | Value |
@@ -104,7 +104,7 @@ no schema enforced on chain. The Superhero app writes four keys when it creates
| `twitter` | an X handle or URL |
All four are optional and the contract validates none of them. Pass a `Map`, not an
-object — an empty `new Map()` is valid.
+object. An empty `new Map()` is valid.
## Events
@@ -116,7 +116,7 @@ datatype event =
// collection id, creator
```
-`CreateCommunity` is the single best source for the three per-community addresses — capture
+`CreateCommunity` is the single best source for the three per-community addresses. Capture
it instead of making three follow-up reads.
## Creating a collection
@@ -141,7 +141,7 @@ Superhero API are typed as `${string}-${Encoded.AccountAddress}`. Creating a col
name already exists aborts with `collection_ALREADY_EXISTS` (note the lowercase first letter).
Any account may register a collection, with any naming rules. The collections the Superhero
-app lists on mainnet — `WORDS`, `CHINESE`, `ARABIC` and `RUSSIAN` — are a curated set
+app lists on mainnet (`WORDS`, `CHINESE`, `ARABIC` and `RUSSIAN`) are a curated set
maintained in the API.
## Creating a community
@@ -152,7 +152,7 @@ maintained in the API.
(`NAME_ALREADY_REGISTERED`), and validates it against the collection's length
(`NAME_TOO_LONG`) and character rules (`NAME_NOT_ALLOWED_CHAR`).
2. Deploys a `CommunityManagement` contract with the caller as the initial moderator, a
- minimum token threshold of `10 ^ 18` — one whole token — and your `is_private` and
+ minimum token threshold of `10 ^ 18` (one whole token), and your `is_private` and
`meta_info`.
3. Deploys a `DAO` with no token sale set, pointing back at the factory.
4. Deploys an `AffiliationBondingCurveTokenSale`, which in turn deploys the community's AEX-9
@@ -185,7 +185,7 @@ const [daoAddress, tokenSaleAddress, communityManagementAddress] = result.decode
`initial_buy_count` is a **token count in base units**, not an AE amount. Community tokens use
18 decimals, so buying 5 whole tokens means passing `5 * 10^18`.
-To go the other way — "I want to spend 0.1 AE" — invert the bonding curve in two steps:
+To go the other way ("I want to spend 0.1 AE"), invert the bonding curve in two steps:
```javascript
// 1. Estimate a token count from an AE amount with client-side curve math.
@@ -232,8 +232,8 @@ let protocol_dao_token_multiplier = 1000
```
A 1 AE buy mints 1,000 ProtocolDAO tokens to the buyer. The base is the net AE the buyer
-paid — `Call.value` minus any overpayment refund — which includes the affiliation fee, not
-just the curve price.
+paid (`Call.value` minus any overpayment refund), which includes the affiliation fee as well
+as the curve price.
**An initial buy at creation also mints them.** The sale skips its callback when the caller is
the factory, and `create_community` performs the mint itself instead:
@@ -256,8 +256,8 @@ The factory refunds overpayment before the buy, against
## Related
-- [AffiliationBondingCurveTokenSale](/contracts/token-sale) — the sale contract this factory deploys
-- [CommunityManagement](/contracts/community-management) — the `meta_info` map and moderator model
-- [Collections and naming](/tokens/collections-and-naming) — the naming rules from a user's point of view
-- [Create a token from the CLI](/tokens/create-from-cli) — a working end-to-end creation flow
-- [Deployed Addresses](/contracts/addresses) — factory addresses and runtime resolution
+- [AffiliationBondingCurveTokenSale](/contracts/token-sale): the sale contract this factory deploys
+- [CommunityManagement](/contracts/community-management): the `meta_info` map and moderator model
+- [Collections and naming](/tokens/collections-and-naming): the naming rules from a user's point of view
+- [Create a token from the CLI](/tokens/create-from-cli): a working end-to-end creation flow
+- [Deployed Addresses](/contracts/addresses): factory addresses and runtime resolution
diff --git a/pages/contracts/community-management.mdx b/pages/contracts/community-management.mdx
index 5012085..a36d36f 100644
--- a/pages/contracts/community-management.mdx
+++ b/pages/contracts/community-management.mdx
@@ -10,7 +10,7 @@ economics: who the moderators are, who is muted, how many tokens you need to hol
and the community's free-form metadata.
One instance is deployed per community by the factory. Its owner is the community's DAO, so
-every setting on it changes only through a DAO vote — except muting, which moderators do
+every setting on it changes only through a DAO vote, except muting, which moderators do
directly.
Resolve it with `factory.get_community_management(token_sale)`. Its interface is inlined in
@@ -28,13 +28,13 @@ Resolve it with `factory.get_community_management(token_sale)`. Its interface is
| `change_minimum_token_threshold` | `(minimum_token_threshold: int) => unit` | stateful |
| `change_meta_info` | `(meta_info: CommunityManagement.meta_info) => unit` | stateful |
| `set_owner` | `(owner: address) => unit` | stateful |
-| `moderator_accounts` | `() => Set.set(address)` | — |
-| `muted_user_ids` | `() => Set.set(string)` | — |
-| `minimum_token_threshold` | `() => int` | — |
-| `meta_info` | `() => CommunityManagement.meta_info` | — |
-| `owner` | `() => address` | — |
-| `version` | `() => int` | — |
-| `get_state` | `() => state` | — |
+| `moderator_accounts` | `() => Set.set(address)` | |
+| `muted_user_ids` | `() => Set.set(string)` | |
+| `minimum_token_threshold` | `() => int` | |
+| `meta_info` | `() => CommunityManagement.meta_info` | |
+| `owner` | `() => address` | |
+| `version` | `() => int` | |
+| `get_state` | `() => state` | |
## Types
@@ -65,7 +65,7 @@ moderators.has('ak_alice...'); // true or false
## The `meta_info` map
-`meta_info` is `map(string, string)` — no schema, no validation, nothing reserved. The
+`meta_info` is `map(string, string)` with no schema, no validation and no reserved keys. The
Superhero app writes these keys when it creates a community:
| Key | What the app puts there | Where it shows up |
@@ -100,7 +100,7 @@ datatype event =
| ChangedMetaInfo
```
-`ChangedMetaInfo` is the only event in the Superhero suite that carries **no arguments** — it
+`ChangedMetaInfo` is the only event in the Superhero suite that carries no arguments. It
signals that the map changed without saying how. An indexer that wants the new metadata
re-reads `meta_info()` when it sees this event.
@@ -108,10 +108,10 @@ re-reads `meta_info()` when it sees this event.
| Action | Caller |
| --- | --- |
-| `add_moderator`, `delete_moderator` | the owner — the DAO, via an `AddModerator` / `DeleteModerator` vote |
-| `change_minimum_token_threshold` | the owner — via a `ChangeMinimumTokenThreshold` vote |
-| `change_meta_info` | the owner — via a `ChangeMetaInfo` vote |
-| `set_owner` | the owner — this is how a `ChangeDAO` migration hands over control |
+| `add_moderator`, `delete_moderator` | the owner (the DAO), via an `AddModerator` / `DeleteModerator` vote |
+| `change_minimum_token_threshold` | the owner, via a `ChangeMinimumTokenThreshold` vote |
+| `change_meta_info` | the owner, via a `ChangeMetaInfo` vote |
+| `set_owner` | the owner; this is how a `ChangeDAO` migration hands over control |
| `mute_user_id`, `unmute_user_id` | a moderator, directly |
Two guard functions enforce that table:
@@ -124,8 +124,8 @@ function require_moderator() =
require(Set.member(Call.caller, state.moderator_accounts), "ONLY_MODERATOR_CAN_CHANGE")
```
-**Moderators are not owners** — a moderator cannot add another moderator, change the
-threshold, or touch the metadata. **The owner is not automatically a moderator** — the DAO
+Moderators are not owners: a moderator cannot add another moderator, change the
+threshold, or touch the metadata. The owner is not automatically a moderator either, so the DAO
cannot mute anyone without first voting itself onto the moderator set. The initial moderator
is the community creator, set once in `init`; the owner becomes the DAO immediately afterwards.
@@ -142,7 +142,7 @@ Chain.create(Call.caller, 10 ^ decimals(), is_private, meta_info) : CommunityMan
| Field | Initial value |
| --- | --- |
-| `initial_moderator` | `Call.caller` — whoever created the community |
+| `initial_moderator` | `Call.caller`, whoever created the community |
| `minimum_token_threshold` | `10 ^ 18`, i.e. exactly **one whole token** |
| `is_private` | whatever you passed to `create_community` |
| `meta_info` | whatever you passed to `create_community` |
@@ -178,7 +178,7 @@ dedicated getter; read it through `get_state()`. Contract state is public, so a
community's moderators, mutes, threshold and metadata are readable by anyone.
Off chain, the Superhero API copies it to the community's chat room and uses it to choose the
-visibility tag on the NIP-29 edit-metadata event — `public` or `private`. The web client
+visibility tag on the NIP-29 edit-metadata event, `public` or `private`. The web client
reports a private room as `auth-required` rather than rendering it openly. A token with no
chat room defaults to public.
@@ -187,8 +187,8 @@ control over on-chain data.
## Related
-- [DAO](/contracts/dao) — the owner of this contract and the source of every governed change
-- [CommunityFactory](/contracts/community-factory) — where the initial values above are set
-- [Moderators](/dao/moderators) — the moderator role explained for community members
-- [Moderation](/social/moderation) — what muting does in the social layer
-- [Proposals](/dao/proposals) — the vote subjects that change these settings
+- [DAO](/contracts/dao): the owner of this contract and the source of every governed change
+- [CommunityFactory](/contracts/community-factory): where the initial values above are set
+- [Moderators](/dao/moderators): the moderator role explained for community members
+- [Moderation](/social/moderation): what muting does in the social layer
+- [Proposals](/dao/proposals): the vote subjects that change these settings
diff --git a/pages/contracts/dao-vote.mdx b/pages/contracts/dao-vote.mdx
index 03390a7..3454a40 100644
--- a/pages/contracts/dao-vote.mdx
+++ b/pages/contracts/dao-vote.mdx
@@ -12,29 +12,29 @@ the community tokens voters have locked behind each side.
Its interface is inlined in `CommunityFactory.aci.json`.
`DAOVote` counts stake and gates on height. The quorum and supermajority checks are in
-`DAO.apply_vote_subject` — see [Passing conditions](#passing-conditions).
+`DAO.apply_vote_subject`. See [Passing conditions](#passing-conditions).
## Entrypoints
| Entrypoint | Signature | Flags |
| --- | --- | --- |
-| `init` | `(metadata: DAOVote.metadata, token: FungibleTokenFull, author: address) => DAOVote.state` | — |
+| `init` | `(metadata: DAOVote.metadata, token: FungibleTokenFull, author: address) => DAOVote.state` | |
| `vote` | `(option: DAOVote.vote_option, amount: DAOVote.amount) => unit` | stateful |
| `revoke_vote` | `() => unit` | stateful |
| `withdraw` | `() => unit` | stateful |
-| `current_vote_state` | `() => DAOVote.vote_state` | — |
-| `final_vote_state` | `() => option(DAOVote.vote_state)` | — |
-| `has_voted` | `(voter: address) => bool` | — |
-| `voted_option` | `(voter: address) => option(DAOVote.vote_option)` | — |
-| `has_withdrawn` | `(voter: address) => option(bool)` | — |
-| `is_closed` | `() => bool` | — |
-| `close_height` | `() => int` | — |
-| `subject` | `() => VoteSubjects.subject` | — |
-| `metadata` | `() => DAOVote.metadata` | — |
-| `token` | `() => FungibleTokenFull` | — |
-| `vote_accounts` | `() => DAOVote.vote_accounts` | — |
-| `version` | `() => int` | — |
-| `get_state` | `() => DAOVote.state` | — |
+| `current_vote_state` | `() => DAOVote.vote_state` | |
+| `final_vote_state` | `() => option(DAOVote.vote_state)` | |
+| `has_voted` | `(voter: address) => bool` | |
+| `voted_option` | `(voter: address) => option(DAOVote.vote_option)` | |
+| `has_withdrawn` | `(voter: address) => option(bool)` | |
+| `is_closed` | `() => bool` | |
+| `close_height` | `() => int` | |
+| `subject` | `() => VoteSubjects.subject` | |
+| `metadata` | `() => DAOVote.metadata` | |
+| `token` | `() => FungibleTokenFull` | |
+| `vote_accounts` | `() => DAOVote.vote_accounts` | |
+| `version` | `() => int` | |
+| `get_state` | `() => DAOVote.state` | |
## Types
@@ -106,7 +106,7 @@ entrypoint is_closed() : bool = Chain.block_height >= state.close_height
Note the `>=`: the vote is closed *at* `close_height`, not after it.
-`init` caps the proposal text — `require(String.length(metadata.description) =< 300,
+`init` caps the proposal text with `require(String.length(metadata.description) =< 300,
"DESCRIPTION_STRING_TOO_LONG")`. A description over 300 characters makes `DAO.add_vote`
abort, taking the whole 555 AE transaction with it. `link` is unchecked.
@@ -151,14 +151,14 @@ to the tally.
| --- | --- | --- |
| When | While the vote is open | After the close height |
| Height gate | `require(!is_closed(), "VOTE_ALREADY_CLOSED")` | `require(is_closed(), "VOTE_NOT_CLOSED")` |
-| Effect on the tally | Removes your stake from the option you chose | None — the result is already final |
-| Repeatable | Yes, after voting again | No — `AMOUNT_ALREADY_WITHDRAWN` |
+| Effect on the tally | Removes your stake from the option you chose | None; the result is already final |
+| Repeatable | Yes, after voting again | No (`AMOUNT_ALREADY_WITHDRAWN`) |
| Use it to | Change your mind, or exit before close | Reclaim locked tokens from a finished vote |
Both gates are enforced on chain by block height. They are exact complements of each other
through `is_closed()`, so at every height exactly one of the two is callable.
-Each also requires that you voted — `require(Map.member(Call.caller, state.vote_accounts),
+Each also requires that you voted: `require(Map.member(Call.caller, state.vote_accounts),
"VOTER_NOT_VOTED")`.
### Changing your mind
@@ -170,11 +170,11 @@ require(!Map.member(Call.caller, state.vote_accounts), "VOTER_ALREADY_VOTED")
```
`revoke_vote` deletes your entry from `vote_accounts` outright, so the sequence **vote,
-revoke, vote again works** — and the second vote may use a different option and a different
+revoke, vote again works**, and the second vote may use a different option and a different
amount. That is the supported way to switch sides or resize a position while a vote is open.
To add to an existing position, revoke first.
-`has_withdrawn(voter)` returns `option(bool)` — `None` if that address never voted or has
+`has_withdrawn(voter)` returns `option(bool)`: `None` if that address never voted or has
revoked, `Some(false)` if they voted and have not withdrawn, `Some(true)` if they have.
Tokens stay locked in the vote contract until you call `withdraw`; nothing returns them
@@ -186,7 +186,7 @@ automatically.
| --- | --- | --- |
| Return type | `vote_state` | `option(vote_state)` |
| Before close height | The running tally, changing with every vote and revoke | `None` |
-| After close height | Still readable | `Some(tally)` — the frozen result |
+| After close height | Still readable | `Some(tally)`, the frozen result |
`DAO.apply_vote_subject` switches on `final_vote_state()` and aborts with `VOTE_NOT_YET_FINAL`
when it gets `None`, which is what stops a proposal being executed mid-vote on a favourable
@@ -201,8 +201,8 @@ const inFavour = current.get(true) ?? 0n;
const against = current.get(false) ?? 0n;
```
-The map is keyed by the boolean option, and an option nobody has voted for is absent — hence
-the `?? 0n`.
+The map is keyed by the boolean option, and an option nobody has voted for is absent. That is why
+the code uses `?? 0n`.
## Passing conditions
@@ -239,8 +239,8 @@ need `get_token().total_supply()` at the height you expect execution to happen.
## Related
-- [DAO](/contracts/dao) — the contract that deploys these, runs the thresholds, and executes the result
-- [FungibleTokenFull (AEX-9)](/contracts/aex9) — the allowance calls voting depends on
-- [Voting](/dao/voting) — the same flow from the app
-- [Quorum and thresholds](/dao/quorum-and-thresholds) — what it takes for a proposal to pass
-- [Calling Contracts](/contracts/calling-contracts) — SDK setup and revert handling
+- [DAO](/contracts/dao): the contract that deploys these, runs the thresholds, and executes the result
+- [FungibleTokenFull (AEX-9)](/contracts/aex9): the allowance calls voting depends on
+- [Voting](/dao/voting): the same flow from the app
+- [Quorum and thresholds](/dao/quorum-and-thresholds): what it takes for a proposal to pass
+- [Calling Contracts](/contracts/calling-contracts): SDK setup and revert handling
diff --git a/pages/contracts/dao.mdx b/pages/contracts/dao.mdx
index 44b9394..86b0339 100644
--- a/pages/contracts/dao.mdx
+++ b/pages/contracts/dao.mdx
@@ -22,15 +22,15 @@ from the `CreateCommunity` event. Its interface is inlined in `CommunityFactory.
| `apply_vote_subject` | `(vote_seq_id: int) => unit` | stateful |
| `record_sale_transaction` | `(buyer: address, buy_price: int) => unit` | stateful, payable |
| `set_token_sale` | `(token_sale: TokenSale) => unit` | stateful |
-| `votes` | `() => DAO.votes` | — |
-| `vote_timeout` | `() => int` | — |
-| `get_token` | `() => FungibleTokenFull` | — |
-| `get_token_sale` | `() => TokenSale` | — |
-| `get_community_management` | `() => option(CommunityManagement)` | — |
-| `factory` | `() => Factory` | — |
-| `is_dao` | `() => bool` | — |
-| `version` | `() => int` | — |
-| `get_state` | `() => DAO.state` | — |
+| `votes` | `() => DAO.votes` | |
+| `vote_timeout` | `() => int` | |
+| `get_token` | `() => FungibleTokenFull` | |
+| `get_token_sale` | `() => TokenSale` | |
+| `get_community_management` | `() => option(CommunityManagement)` | |
+| `factory` | `() => Factory` | |
+| `is_dao` | `() => bool` | |
+| `version` | `() => int` | |
+| `get_state` | `() => DAO.state` | |
## Types
@@ -65,7 +65,7 @@ is checked exactly:
require(Call.value == 555 * (10 ^ 18), "ADD_VOTE_DAO_DONATION_MISSMATCH")
```
-555 AE, no more and no less. The AE goes to the DAO treasury — unlike collection creation,
+555 AE, no more and no less. The AE goes to the DAO treasury. Unlike collection creation,
where the 555 AE is burned, here the community keeps it. That is the anti-spam cost of
opening a proposal.
@@ -123,7 +123,7 @@ datatype subject =
```
In JavaScript each is a one-key object whose value is an array of the constructor's
-arguments — `{ VotePayoutAmount: ['ak_...', '1000000000000000000'] }`, and for the map-valued
+arguments: `{ VotePayoutAmount: ['ak_...', '1000000000000000000'] }`, and for the map-valued
one, `{ ChangeMetaInfo: [new Map([['description', 'new text']])] }`.
The Superhero app's create-vote form offers `VotePayout`, `ChangeDAO`, `AddModerator` and
@@ -145,7 +145,7 @@ switch(vote.final_vote_state())
### Quorum and supermajority
-`DAOVote.final_vote_state()` does no threshold arithmetic — it returns `Some(vote_state)` once
+`DAOVote.final_vote_state()` does no threshold arithmetic. It returns `Some(vote_state)` once
`Chain.block_height >= close_height` and `None` before that. Every percentage check is in
`DAO.apply_vote_subject`:
@@ -165,7 +165,7 @@ require(stake_percentage >= 10, "GREATER_10_PERCENT_STAKE_REQUIRED")
- **The supermajority is measured against votes cast, not supply.** `in_favor_percentage` is
`yes / (yes + no)`. Abstaining does not count against a proposal.
-- **Quorum is measured against `total_supply()` read at execution time** — not at vote
+- **Quorum is measured against `total_supply()` read at execution time,** not at vote
creation and not at close height. Buys before execution raise the denominator; sells lower
it. The short application window limits the effect.
- **Both are integer divisions, truncated before comparison.** With 200 tokens of stake, 110
@@ -187,7 +187,7 @@ The full precondition set for execution, in the order the contract checks them:
### The execution window
A vote that passed but was not applied within `vote_timeout` key blocks after its close height
-can no longer be applied — `apply_vote_subject` aborts with `VOTE_RESULT_TIMEOUTED` from then
+can no longer be applied: `apply_vote_subject` aborts with `VOTE_RESULT_TIMEOUTED` from then
on. To retry, open the proposal again, at the cost of another 555 AE.
The window is **960 key blocks**, set once in `init`:
@@ -207,8 +207,8 @@ passing, call `apply_vote_subject` yourself once the vote closes.
`record_sale_transaction(buyer, buy_price)` is payable and is how the token sale pays the DAO
its half of the spread on every buy. The buyer address and the price come along as arguments
-so a replacement DAO can implement its own split or accounting — that is the point of the
-`ReplaceableDAO` interface: proceeds arrive through a contract call rather than a bare
+so a replacement DAO can implement its own split or accounting. That is the point of the
+`ReplaceableDAO` interface, where proceeds arrive through a contract call rather than a bare
`Chain.spend`.
The stock `DAO.aes` accepts the AE and records nothing further; no event fires. For per-buy
@@ -235,7 +235,7 @@ require(get_community_management() == new_dao.get_community_management(),
Only then does it hand community management's ownership over. A replacement DAO that resolves
a different community management contract aborts the whole migration. This is an initial
-check only — once installed, a custom DAO can change it.
+check only. Once installed, a custom DAO can change it.
## `set_token_sale` is creator-only and one-shot
@@ -249,8 +249,8 @@ sale-needs-DAO / DAO-needs-sale cycle. It can never be called again.
## Related
-- [DAOVote](/contracts/dao-vote) — the proposal contract `add_vote` deploys
-- [CommunityManagement](/contracts/community-management) — the source of the token threshold `add_vote` checks
-- [Proposals](/dao/proposals) — the subjects explained for a non-developer audience
-- [Quorum and thresholds](/dao/quorum-and-thresholds) — the passing conditions
-- [Replaceable DAO](/dao/replaceable-dao) — the migration path `ChangeDAO` implements
+- [DAOVote](/contracts/dao-vote): the proposal contract `add_vote` deploys
+- [CommunityManagement](/contracts/community-management): the source of the token threshold `add_vote` checks
+- [Proposals](/dao/proposals): the subjects explained for a non-developer audience
+- [Quorum and thresholds](/dao/quorum-and-thresholds): the passing conditions
+- [Replaceable DAO](/dao/replaceable-dao): the migration path `ChangeDAO` implements
diff --git a/pages/contracts/events.mdx b/pages/contracts/events.mdx
index cee7682..d1b9bb0 100644
--- a/pages/contracts/events.mdx
+++ b/pages/contracts/events.mdx
@@ -15,14 +15,14 @@ A Sophia `Chain.event` produces a log entry with a `topics` array and a `data` f
| Slot | Contents |
| --- | --- |
-| `topics[0]` | The **Blake2b-256 hash of the event constructor name**, as a big integer. It is implicit — not one of the declared arguments. |
+| `topics[0]` | The **Blake2b-256 hash of the event constructor name**, as a big integer. It is implicit, not one of the declared arguments. |
| `topics[1..]` | The word-sized arguments in declaration order: `address`, `int`, `bool`, contract references. |
| `data` | A single `string` argument, if the event declares one. Empty otherwise. |
-`Mint(address, int)` produces three topics — the name hash, the account, and the value — and
+`Mint(address, int)` produces three topics (the name hash, the account, and the value) and
empty data. An indexer filters logs on `topics[0]` and reads the amount from `topics[2]`.
-`PostWithoutTipReceived(address, string)` produces two topics — the name hash and the author —
+`PostWithoutTipReceived(address, string)` produces two topics (the name hash and the author)
and puts the title in `data`.
The name hash is derivable offline:
@@ -168,7 +168,7 @@ datatype event =
| `ChangedMetaInfo` | `10335050073377245413811954146980376891356632402160017070530938091573150368814` |
`MuteUserId` and `UnmuteUserId` carry their `string` in `data`, not in a topic.
-`ChangedMetaInfo` has no arguments — one topic, empty data. On seeing it, re-read
+`ChangedMetaInfo` has no arguments, so it has one topic and empty data. On seeing it, re-read
`meta_info()` to find out what changed.
### AffiliationTreasury
@@ -199,7 +199,7 @@ Two orderings are easy to transpose: `InvitationRedeemed` leads with the **invit
`InvitationRedeemed` is the caller, which for a redemption is the invite address itself.
`UserInvited` fires only from `register_invitation`. An invite claimed through a code emits
-`InvitationRedeemed` instead, even though both write the same affiliation-tree entry — watch
+`InvitationRedeemed` instead, even though both write the same affiliation-tree entry. Watch
both to capture every invite relationship.
`RewardAdded` fires once per credited level, so one buy under a four-deep referral chain emits
@@ -271,9 +271,9 @@ datatype event = PostViaBurnReceived(tip_id, address, string, TokenContract)
| --- | --- |
| `PostViaBurnReceived` | `82774704438961085039490474074506978272280842136924042967135740228700002403902` |
-## Name collisions — filter by contract, always
+## Name collisions: filter by contract, always
-The topic hash is computed from the **name alone**. It carries no contract identity and no
+The topic hash is computed from the name alone. It carries no contract identity and no
argument types. Three names collide across the suite:
| Name | Emitted by | Arguments |
@@ -357,7 +357,7 @@ const payload = log.data;
`event_hash` is the same 32-byte Blake2b-256 digest as `topics[0]`, encoded as padded
base32hex (RFC 4648's extended-hex alphabet, not standard base32). Match on `event_hash` when
-you want a stable identifier, and on `event_name` only as a convenience — it is present only
+you want a stable identifier, and on `event_name` only as a convenience, since it is present only
when the middleware has the contract's ACI.
Two operational notes:
@@ -389,8 +389,8 @@ The subscribe message is a JSON object with up to four fields:
| --- | --- |
| `op` | `Subscribe` or `Unsubscribe` |
| `payload` | the channel: `Transactions`, `MicroBlocks`, `KeyBlocks`, or `Object` |
-| `target` | optional — the object to watch, for the `Object` channel |
-| `source` | optional — `mdw` or `node` |
+| `target` | optional; the object to watch, for the `Object` channel |
+| `source` | optional; `mdw` or `node` |
Unsubscribing sends the identical object with `op` flipped to `Unsubscribe`. Reconnect on a
timeout: a dropped socket is silent, and the gap is otherwise invisible.
@@ -401,8 +401,8 @@ and `token-history`. See [WebSocket API](/api-reference/websocket).
## Related
-- [Calling Contracts](/contracts/calling-contracts) — `decodedEvents` in context, plus reverts and gas
-- [AffiliationBondingCurveTokenSale](/contracts/token-sale) — where the four events of a buy come from
-- [Node and middleware API](/api-reference/node-and-middleware) — the middleware endpoints in full
-- [WebSocket API](/api-reference/websocket) — the Superhero API's own real-time channels
-- [æternity contract events specification](https://github.com/aeternity/protocol/blob/master/contracts/events.md) — the topic and data encoding rules
+- [Calling Contracts](/contracts/calling-contracts): `decodedEvents` in context, plus reverts and gas
+- [AffiliationBondingCurveTokenSale](/contracts/token-sale): where the four events of a buy come from
+- [Node and middleware API](/api-reference/node-and-middleware): the middleware endpoints in full
+- [WebSocket API](/api-reference/websocket): the Superhero API's own real-time channels
+- [æternity contract events specification](https://github.com/aeternity/protocol/blob/master/contracts/events.md): the topic and data encoding rules
diff --git a/pages/contracts/governance-contracts.mdx b/pages/contracts/governance-contracts.mdx
index a1b28e7..6a28e6e 100644
--- a/pages/contracts/governance-contracts.mdx
+++ b/pages/contracts/governance-contracts.mdx
@@ -15,7 +15,7 @@ Superhero surfaces them at `https://superhero.com/voting`.
| Contract | Mainnet | Testnet | ACI |
| --- | --- | --- | --- |
| Registry | `ct_ouZib4wT9cNwgRA1pxgA63XEUd8eQRrG8PcePDEYogBc1VYTq` | `ct_2nritSnqW6zooEL4g2SMW5pf12GUbrNyZ17osTLrap7wXiSSjf` | `RegistryWithEventsACI.json` |
-| Poll | one per poll, deployed on creation | — | `PollACI.json`, `PollBytecode.json` |
+| Poll | one per poll, deployed on creation | one per poll, deployed on creation | `PollACI.json`, `PollBytecode.json` |
`version()` returns `1` on the original build of each contract and `2` on the compiler-6
build; the logic is identical.
@@ -26,17 +26,17 @@ One deployed instance per network. It indexes polls and records delegations.
| Entrypoint | Signature | Flags |
| --- | --- | --- |
-| `init` | `() => Registry.state` | — |
+| `init` | `() => Registry.state` | |
| `add_poll` | `(poll: Poll, is_listed: bool) => int` | stateful |
| `delegate` | `(delegatee: address) => unit` | stateful |
| `revoke_delegation` | `() => unit` | stateful |
-| `polls` | `() => Registry.polls` | — |
-| `poll` | `(poll_id: int) => Registry.poll_data` | — |
-| `delegations` | `() => Registry.delegations` | — |
-| `delegatee` | `(account: address) => option(address)` | — |
-| `delegators` | `(account: address) => Registry.delegations` | — |
-| `created_height` | `() => int` | — |
-| `version` | `() => int` | — |
+| `polls` | `() => Registry.polls` | |
+| `poll` | `(poll_id: int) => Registry.poll_data` | |
+| `delegations` | `() => Registry.delegations` | |
+| `delegatee` | `(account: address) => option(address)` | |
+| `delegators` | `(account: address) => Registry.delegations` | |
+| `created_height` | `() => int` | |
+| `version` | `() => int` | |
### Registry types
@@ -62,7 +62,7 @@ every poll contract. `add_poll` returns the new `poll_id`, which is `seq_id` at
registration.
`is_listed` is a listing flag, not access control. An unlisted poll is still on chain, still
-readable, and still votable — it simply does not appear in the default listing.
+readable, and still votable. It just does not appear in the default listing.
### Registering a poll
@@ -108,19 +108,19 @@ poll's identity; the registry's integer id is a convenience.
| Entrypoint | Signature | Flags |
| --- | --- | --- |
-| `init` | `(metadata: Poll.metadata, vote_options: Poll.vote_option, close_height: option(int)) => Poll.state` | — |
+| `init` | `(metadata: Poll.metadata, vote_options: Poll.vote_option, close_height: option(int)) => Poll.state` | |
| `vote` | `(option: int) => unit` | stateful |
| `revoke_vote` | `() => unit` | stateful |
-| `title` | `() => string` | — |
-| `metadata` | `() => Poll.metadata` | — |
-| `close_height` | `() => option(int)` | — |
-| `votes` | `() => Poll.votes` | — |
-| `has_voted` | `(voter: address) => bool` | — |
-| `voted_option` | `(voter: address) => option(int)` | — |
-| `is_author` | `(author: address) => bool` | — |
-| `is_closed` | `() => bool` | — |
-| `version` | `() => int` | — |
-| `get_state` | `() => Poll.state` | — |
+| `title` | `() => string` | |
+| `metadata` | `() => Poll.metadata` | |
+| `close_height` | `() => option(int)` | |
+| `votes` | `() => Poll.votes` | |
+| `has_voted` | `(voter: address) => bool` | |
+| `voted_option` | `(voter: address) => option(int)` | |
+| `is_author` | `(author: address) => bool` | |
+| `is_closed` | `() => bool` | |
+| `version` | `() => int` | |
+| `get_state` | `() => Poll.state` | |
### Poll types
@@ -143,7 +143,7 @@ record state =
, author : address }
```
-**`vote_option` is the whole option set, not one option.** It is `map(int, string)` — the
+**`vote_option` is the whole option set, not one option.** It is `map(int, string)`, the
index-to-label table for the entire poll. The `vote(option: int)` entrypoint takes an index
into it. (In `DAOVote`, `vote_option` is a single `bool`.)
@@ -162,7 +162,7 @@ datatype event =
```
These collide by name with `DAOVote`'s `Vote` and `RevokeVote`, have different argument
-counts, and — being computed from the name — **the same middleware topic hash**. An indexer
+counts, and, because the hash is computed from the name, **the same middleware topic hash**. An indexer
covering both governance polls and community DAOs must filter by contract address before
decoding. See [Events](/contracts/events).
@@ -220,13 +220,13 @@ require(String.length(metadata.title) =< 50, "TITLE_STRING_TO_LONG")
require(String.length(metadata.description) =< 300, "DESCRIPTION_STRING_TO_LONG")
```
-(The abort strings read `TO_LONG`, not `TOO_LONG` — match on that spelling.) Nothing on chain
+(The abort strings read `TO_LONG`, not `TOO_LONG`; match on that spelling.) Nothing on chain
checks that `link` is a URL or that there are two or more options; a poll deployed with an
-empty `vote_options` map is legal and simply unvotable, because `vote` requires the index to
+empty `vote_options` map is legal but unvotable, because `vote` requires the index to
be a member of it.
A non-`None` close height must be in the future. Check it against the current top block
-height before deploying — a poll deployed already closed never accepts a vote.
+height before deploying, because a poll deployed already closed never accepts a vote.
## Voting
@@ -247,14 +247,14 @@ close height accepts votes indefinitely.
`revoke_vote()` deletes the caller's entry from `votes` and emits `RevokeVote`.
A closed poll's result is the state at its close height. The governance backend tallies at
-that height, from the event log and historical balances — see below.
+that height, from the event log and historical balances, as described below.
## Delegation and stake weighting
The registry records delegation as a plain `map(address, address)`. `delegate(delegatee)`
records you as delegating to that address; `revoke_delegation()` removes the entry.
`delegatee(account)` reads one direction, `delegators(account)` the other. The one on-chain
-constraint is `require(Call.caller != delegatee, "CALLER_IS_DELEGATEE_DISALLOWED")` — you may
+constraint is `require(Call.caller != delegatee, "CALLER_IS_DELEGATEE_DISALLOWED")`: you may
not delegate to yourself.
**The contracts do not compute weighted results.**
@@ -274,14 +274,14 @@ The weighted outcome is computed off chain by the governance backend:
| Poll | Snapshot height | Meaning |
| --- | --- | --- |
-| Closed — `close_height` set and already reached | that `close_height` | a fixed historical snapshot |
-| Open — `close_height` set but still in the future | none | live, recomputed at every read |
-| Open-ended — `close_height = None` | none | live, forever |
+| Closed: `close_height` set and already reached | that `close_height` | a fixed historical snapshot |
+| Open: `close_height` set but still in the future | none | live, recomputed at every read |
+| Open-ended: `close_height = None` | none | live, forever |
A **closed poll's tally is frozen at its close height**: every balance is read at that height,
and the delegation map is reconstructed at that same height. A poll that is still open, or
that can never close, is tallied against **current** balances and the **current** delegation
-map — the displayed result moves whenever anyone's balance does.
+map, so the displayed result moves whenever anyone's balance does.
Two edge cases:
@@ -293,11 +293,11 @@ Two edge cases:
For a closed poll, delegations are not read from `delegations()`. The backend pulls the
registry's `Delegation` and `RevokeDelegation` events, keeps those at or below the snapshot
-height, sorts by height then nonce, and replays them into a map — set on `Delegation`, delete
-on `RevokeDelegation`. That is what makes a historical snapshot possible, since the contract
+height, sorts by height then nonce, and replays them into a map (set on `Delegation`, delete
+on `RevokeDelegation`). That is what makes a historical snapshot possible, since the contract
only stores the current map.
-Weighting then walks the tree **upward** from each voter — who delegated *to* them — and sums
+Weighting then walks the tree **upward** from each voter (who delegated *to* them) and sums
those accounts' balances recursively, so a chain `A -> B -> C` gives C both A's and B's stake.
Three rules govern the walk:
@@ -316,19 +316,19 @@ the same height.
Three consequences for anyone integrating:
-1. **A tally you compute yourself from `Poll.votes()` is unweighted** — it counts addresses,
+1. **A tally you compute yourself from `Poll.votes()` is unweighted.** It counts addresses,
not stake, and it ignores delegation. It will not match what superhero.com shows.
2. **The governance backend is the source of the weighted result.** Everything above is
- reproducible from chain data; the contracts simply do not do it for you.
+ reproducible from chain data; the contracts do not do it for you.
3. **An open-ended poll has no final result.** With `close_height = None` there is no
snapshot, votes can still arrive, and existing votes can still be revoked. Treat such a
poll as a rolling signal, not a decision.
## Related
-- [Polls](/governance/polls) — the same system for a non-developer audience
-- [Create a poll](/governance/create-a-poll) — a step-by-step walkthrough
-- [Delegation](/governance/delegation) — what delegating does to your weight
-- [DAOVote](/contracts/dao-vote) — the community DAO voting contract, which works quite differently
-- [Events](/contracts/events) — why the `Vote` name collision matters for indexers
-- [aeternity/aepp-governance](https://github.com/aeternity/aepp-governance) — the contracts and the tally server
+- [Polls](/governance/polls): the same system for a non-developer audience
+- [Create a poll](/governance/create-a-poll): a step-by-step walkthrough
+- [Delegation](/governance/delegation): what delegating does to your weight
+- [DAOVote](/contracts/dao-vote): the community DAO voting contract, which works quite differently
+- [Events](/contracts/events): why the `Vote` name collision matters for indexers
+- [aeternity/aepp-governance](https://github.com/aeternity/aepp-governance): the contracts and the tally server
diff --git a/pages/contracts/index.mdx b/pages/contracts/index.mdx
index b20dc91..7b79531 100644
--- a/pages/contracts/index.mdx
+++ b/pages/contracts/index.mdx
@@ -74,7 +74,7 @@ call and reverts all changes. See [Sophia and FATE](/aeternity/sophia-and-fate).
## Related
-- [Calling Contracts](/contracts/calling-contracts) — start here if you want working code rather than a reference table
-- [Deployed Addresses](/contracts/addresses) — the addresses every example on these pages needs
-- [Bonding curve](/tokens/bonding-curve) — the conceptual explanation behind `BondingCurveExponential`
-- [æternity Sophia language documentation](https://docs.aeternity.com/aesophia/v7.0.1/sophia_features/) — the language reference
+- [Calling Contracts](/contracts/calling-contracts): start here if you want working code rather than a reference table
+- [Deployed Addresses](/contracts/addresses): the addresses every example on these pages needs
+- [Bonding curve](/tokens/bonding-curve): the conceptual explanation behind `BondingCurveExponential`
+- [æternity Sophia language documentation](https://docs.aeternity.com/aesophia/v7.0.1/sophia_features/): the language reference
diff --git a/pages/contracts/profile-registry.tsx b/pages/contracts/profile-registry.tsx
new file mode 100644
index 0000000..62f28ba
--- /dev/null
+++ b/pages/contracts/profile-registry.tsx
@@ -0,0 +1,9 @@
+import { useEffect } from 'react'
+import { useRouter } from 'next/router'
+
+// Moved page. Static hosting has no server redirects, so redirect on the client.
+export default function Moved() {
+ const router = useRouter()
+ useEffect(() => { router.replace('/contracts/address-link/') }, [router])
+ return
+}
diff --git a/pages/contracts/security.mdx b/pages/contracts/security.mdx
index 73ef408..f9ee9ec 100644
--- a/pages/contracts/security.mdx
+++ b/pages/contracts/security.mdx
@@ -22,7 +22,7 @@ updated state surviving a failed call, and reentrancy against a half-written sto
### Delegated posting
`post_without_tip_sig` verifies an Ed25519 signature over a Blake2b digest with
-`Crypto.verify_sig`. The message is framed with the æternity signed-message prefix — the
+`Crypto.verify_sig`. The message is framed with the æternity signed-message prefix, the
28-byte constant `#1a61657465726e697479205369676e6564204d6573736167653a0a20`, which decodes to
a length byte, `aeternity Signed Message:` with a newline, and a second length byte. That
framing prevents a signature produced in another æternity protocol context from being replayed
@@ -89,14 +89,14 @@ are verifiable directly against the naming system. See [AddressLink](/contracts/
only) are exact complements through `is_closed()`, so exactly one is callable at any height
and locked tokens are never stuck.
- **Results are frozen before they are actionable.** `final_vote_state()` returns
- `option(vote_state)` and yields `None` while a vote is open — a height gate,
- `Chain.block_height >= close_height`. `DAO.apply_vote_subject` aborts with
+ `option(vote_state)` and yields `None` while a vote is open (a height gate,
+ `Chain.block_height >= close_height`). `DAO.apply_vote_subject` aborts with
`VOTE_NOT_YET_FINAL` on `None`, so a proposal cannot be executed on a favourable mid-vote
tally.
- **Community DAO votes are immutable once closed.** `DAOVote.revoke_vote` requires
`!is_closed()`, so a closed tally cannot be altered afterwards.
- **Time-bounded execution.** A passed vote must be applied within `vote_timeout` key blocks
- of its close height — 960 blocks, roughly two days — or `apply_vote_subject` aborts with
+ of its close height (960 blocks, roughly two days), or `apply_vote_subject` aborts with
`VOTE_RESULT_TIMEOUTED`. Stale proposals cannot be resurrected when circumstances change,
and the short window limits how far `total_supply()` can move between close and execution.
- **Single execution.** The `votes` map stores an applied flag; a second call aborts with
@@ -113,10 +113,10 @@ are verifiable directly against the naming system. See [AddressLink](/contracts/
## Related
-- [Deployed Addresses](/contracts/addresses) — what is deployed, per network
-- [DAO](/contracts/dao) — the vote execution gates described above
-- [BondingCurveExponential](/contracts/bonding-curve) — the solvency property in detail
-- [Token risks](/tokens/risks) — the same picture for someone deciding how much to put in
-- [Wallet security](/wallets/security) — key handling, the risk most users actually face
-- [Registry and Poll](/contracts/governance-contracts) — the æternity governance contracts and the off-chain tally
-- [AffiliationTreasury](/contracts/affiliation-treasury) — the reward threshold and the payout window
+- [Deployed Addresses](/contracts/addresses): what is deployed, per network
+- [DAO](/contracts/dao): the vote execution gates described above
+- [BondingCurveExponential](/contracts/bonding-curve): the solvency property in detail
+- [Token risks](/tokens/risks): the same picture for someone deciding how much to put in
+- [Wallet security](/wallets/security): key handling, the risk most users actually face
+- [Registry and Poll](/contracts/governance-contracts): the æternity governance contracts and the off-chain tally
+- [AffiliationTreasury](/contracts/affiliation-treasury): the reward threshold and the payout window
diff --git a/pages/contracts/tipping.mdx b/pages/contracts/tipping.mdx
index cc77772..ddafdf0 100644
--- a/pages/contracts/tipping.mdx
+++ b/pages/contracts/tipping.mdx
@@ -7,11 +7,11 @@ description: "The post registry contract: data model, direct posting, and delega
`Tipping.aes` is the content layer. Every post published through Superhero is a row in this
contract's state, keyed by an increasing integer and attributed to an æternity address. Once
-mined, a post cannot be edited or deleted — moderation happens at the application layer, not
+mined, a post cannot be edited or deleted. Moderation happens at the application layer, not
here.
Despite the name, **v3 has no tipping entrypoints.** It declares four entrypoints, none of them
-payable. Tips on Superhero are spend transactions — see
+payable. Tips on Superhero are spend transactions. See
[Tips are spend transactions](#tips-are-spend-transactions).
| Network | Address |
@@ -25,16 +25,16 @@ The ACI is `Tipping_v3.aci.json`.
| Entrypoint | Signature | Flags |
| --- | --- | --- |
-| `init` | `() => Tipping.state` | — |
+| `init` | `() => Tipping.state` | |
| `post_without_tip` | `(title: string, media: list(string)) => int` | stateful |
| `post_without_tip_sig` | `(title: string, media: list(string), author: address, sig: signature) => int` | stateful |
-| `get_state` | `() => Tipping.state` | — |
+| `get_state` | `() => Tipping.state` | |
Both posting entrypoints return the new `tip_id`. Neither is payable, so a post costs only the
transaction fee and gas.
`tip_id` is assigned as `Map.size(state.tips)`, so ids are dense and sequential from 0. There
-is no delete, so ids are never reused. The Superhero API serves them suffixed — post `0`
+is no delete, so ids are never reused. The Superhero API serves them suffixed: post `0`
becomes `0_v3`.
The contract does not constrain the length of `title`, the number of `media` entries, or their
@@ -51,10 +51,10 @@ Earlier versions of the contract family did tip on chain:
| Version | Tip surface |
| --- | --- |
-| `Tipping_v1` | `tip(url, title)`, `retip(tip_id)`, `pre_claim`, `claim` — oracle-backed URL tipping |
+| `Tipping_v1` | `tip(url, title)`, `retip(tip_id)`, `pre_claim`, `claim`: oracle-backed URL tipping |
| `Tipping_v2` | adds `tip_token`, `tip_direct`, `tip_token_direct`, `retip_token` |
-| `Tipping_v3` | **none** — posting only |
-| `Tipping_v4` | `post_via_burn(title, media, token, token_amount)` — posting paid by burning an AEX-9 |
+| `Tipping_v3` | none (posting only) |
+| `Tipping_v4` | `post_via_burn(title, media, token, token_amount)`: posting paid by burning an AEX-9 |
v3 is what Superhero's social layer runs against.
@@ -137,7 +137,7 @@ console.log('tip_id:', result.decodedResult.toString());
console.log('tx:', result.hash);
```
-`media` is a plain array of strings. The contract does not validate or interpret them — they
+`media` is a plain array of strings. The contract does not validate or interpret them. They
are opaque references that the frontend renders as links or embeds.
## Delegated posting
@@ -175,8 +175,8 @@ the title, in list order. The signed message is exactly:
title ++ media[0] ++ media[1] ++ ... ++ media[n-1]
```
-In JavaScript, `title + media.join('')`. Inserting any delimiter — a newline, a comma, a null
-byte — produces a digest the contract rejects with `SIGNATURE_HAS_TO_MATCH_AUTHOR`.
+In JavaScript, `title + media.join('')`. Inserting any delimiter (a newline, a comma, a null
+byte) produces a digest the contract rejects with `SIGNATURE_HAS_TO_MATCH_AUTHOR`.
### The 28-byte prefix
@@ -185,12 +185,12 @@ framing:
| Bytes | Meaning |
| --- | --- |
-| `1a` | 26 — the length of the prefix string that follows |
+| `1a` | 26, the length of the prefix string that follows |
| `61 65 74 65 72 6e 69 74 79 20 53 69 67 6e 65 64 20 4d 65 73 73 61 67 65 3a 0a` | `aeternity Signed Message:` followed by a newline, 26 ASCII bytes |
-| `20` | 32 — the length of the body that follows |
+| `20` | 32, the length of the body that follows |
1 + 26 + 1 = 28 bytes of header, and the body is always the 32-byte inner Blake2b digest, so
-`Bytes.concat` produces exactly 60 bytes — hence `bytes(60)`.
+`Bytes.concat` produces exactly 60 bytes, hence `bytes(60)`.
### The full construction
@@ -226,9 +226,9 @@ takes an explicit `nonce` on every signed write.
## Related
-- [Posting](/social/posting) — what posting looks like from the app, and what the API adds on top
-- [Delegated posting](/social/delegated-posting) — the relayer flow end to end
-- [Tipping](/social/tipping) — the spend-with-payload mechanism
-- [Events](/contracts/events) — the topic hash for `PostWithoutTipReceived` and how to subscribe
-- [Calling Contracts](/contracts/calling-contracts) — SDK setup, gas, and reading revert reasons
-- [aeternity/tipping-contract](https://github.com/aeternity/tipping-contract) — the contract family's source
+- [Posting](/social/posting): what posting looks like from the app, and what the API adds on top
+- [Delegated posting](/social/delegated-posting): the relayer flow end to end
+- [Tipping](/social/tipping): the spend-with-payload mechanism
+- [Events](/contracts/events): the topic hash for `PostWithoutTipReceived` and how to subscribe
+- [Calling Contracts](/contracts/calling-contracts): SDK setup, gas, and reading revert reasons
+- [aeternity/tipping-contract](https://github.com/aeternity/tipping-contract): the contract family's source
diff --git a/pages/contracts/token-sale.mdx b/pages/contracts/token-sale.mdx
index 037f29e..3ed7a80 100644
--- a/pages/contracts/token-sale.mdx
+++ b/pages/contracts/token-sale.mdx
@@ -10,7 +10,7 @@ One instance exists per community, deployed by the factory. It holds the AE rese
tokens on buy, burns them on sell, splits the 1% spread between the community DAO and the
affiliation treasury, and triggers the ProtocolDAO token mint.
-There is no fixed address — resolve it per token with
+There is no fixed address. Resolve it per token with
`factory.get_token_sale(collection_name, name)`, or from `GET /api/tokens/`. The ACI is
`AffiliationBondingCurveTokenSale.aci.json`.
@@ -25,20 +25,20 @@ Two fixed values you do not need to call for: `sale_type()` returns
| `buy` | `(count: int) => unit` | stateful, payable |
| `buy_with_affiliation` | `(count: int, affiliation_rewardee: address) => unit` | stateful, payable |
| `sell` | `(count: int, minimal_return_required: int) => int` | stateful |
-| `price` | `(count: int) => int` | — |
-| `sell_return` | `(count: int) => int` | — |
-| `token_contract` | `() => FungibleTokenFull` | — |
-| `bonding_curve` | `() => BondingCurve` | — |
-| `beneficiary` | `() => address` | — |
+| `price` | `(count: int) => int` | |
+| `sell_return` | `(count: int) => int` | |
+| `token_contract` | `() => FungibleTokenFull` | |
+| `bonding_curve` | `() => BondingCurve` | |
+| `beneficiary` | `() => address` | |
| `set_beneficiary` | `(beneficiary: address) => unit` | stateful |
-| `owner` | `() => address` | — |
+| `owner` | `() => address` | |
| `set_owner` | `(owner: address) => unit` | stateful |
-| `sale_type` | `() => string` | — |
-| `version` | `() => int` | — |
-| `get_state` | `() => state` | — |
+| `sale_type` | `() => string` | |
+| `version` | `() => int` | |
+| `get_state` | `() => state` | |
The quote entrypoints are `price` and `sell_return`. There is **no** `buy_price` entrypoint on
-the sale contract — `buy_price` exists on the bonding curve, and takes a supply rather than a
+the sale contract. `buy_price` exists on the bonding curve, and it takes a supply rather than a
count.
### `price` includes the affiliation fee; `sell_return` does not
@@ -56,7 +56,7 @@ entrypoint sell_return(count : int) : int =
state.token_contract.total_supply(), count) // no fee added or removed
```
-`price(count)` is the **full amount to send** — curve price plus the 0.5% affiliation fee,
+`price(count)` is the **full amount to send**: curve price plus the 0.5% affiliation fee,
computed as `bonding_curve_price * fee_percentage / fee_precision` read live from the
treasury. It is exactly the number `buy` compares `Call.value` against. Add nothing to it
except a slippage buffer.
@@ -80,7 +80,7 @@ record state =
, dao_contract : ReplaceableDAO }
```
-`get_state()` is the way to get the DAO address from the sale — the factory has no getter for
+`get_state()` is the way to get the DAO address from the sale, because the factory has no getter for
it.
## Events
@@ -99,8 +99,8 @@ contract.
**The `total_supply` in `Buy` and `Sell` is the supply before the trade, not after.** Both
entrypoints capture it before the mint or burn and emit that value at the end.
-`PriceChange` carries unit prices — `calculate_unit_price()` is `price(10 ^ 18)`, the cost of
-one whole token *including* the affiliation fee — sampled before and after the trade.
+`PriceChange` carries unit prices sampled before and after the trade. `calculate_unit_price()` is
+`price(10 ^ 18)`, the cost of one whole token *including* the affiliation fee.
A single `buy` emits four events across three contracts:
@@ -124,7 +124,7 @@ const meta = await token.meta_info().then((r) => r.decodedResult); // { name,
const count = new BigNumber(5).shiftedBy(Number(meta.decimals)).toFixed(0); // 5 whole tokens
```
-The bonding curve enforces a `minimum_count` of `10 ** 12` base units — one one-millionth of
+The bonding curve enforces a `minimum_count` of `10 ** 12` base units, one one-millionth of
a token. Quotes and trades below that are not meaningful.
Prices and returns are in **aettos**: 1 AE = `10 ** 18` aettos.
@@ -158,8 +158,8 @@ if (overpaid_refund > 0) Chain.spend(Call.caller, overpaid_refund) else ()
```
Everything downstream then works from `Call.value - overpaid_refund`, which is exactly
-`total_price`. Your slippage buffer costs you nothing beyond gas if the price did not move —
-including the ProtocolDAO mint, which is computed on the net amount.
+`total_price`. Your slippage buffer costs you nothing beyond gas if the price did not move,
+and that includes the ProtocolDAO mint, which is computed on the net amount.
### Where the AE goes
@@ -177,7 +177,7 @@ that same `count` were sold straight back, and only the remainder reaches the DA
computed against the supply **after** the mint.
Both outbound contract calls are made with `protected = true`, so a DAO or treasury that
-aborts cannot block a buy — the AE stays in the sale contract.
+aborts cannot block a buy. The AE stays in the sale contract.
## `buy` versus `buy_with_affiliation`
@@ -192,7 +192,7 @@ payable stateful entrypoint buy_with_affiliation(count : int, affiliation_reward
| | `buy(count)` | `buy_with_affiliation(count, rewardee)` |
| --- | --- | --- |
-| Who may call | anyone | only the `CommunityFactory` — `ONLY_FACTORY_CAN_CALL` |
+| Who may call | anyone | only the `CommunityFactory` (`ONLY_FACTORY_CAN_CALL`) |
| Affiliation rewardee | `Call.caller`, always | the address the factory passes |
| When it is used | every ordinary buy | the creator's initial buy inside `create_community` |
@@ -285,8 +285,8 @@ probes its `record_sale_transaction` with `value = 0` to check that the entrypoi
## Related
-- [BondingCurveExponential](/contracts/bonding-curve) — where `price` and `sell_return` come from
-- [AffiliationTreasury](/contracts/affiliation-treasury) — where the 0.5% affiliation half goes
-- [FungibleTokenFull (AEX-9)](/contracts/aex9) — the allowance model selling depends on
-- [Buying and selling](/tokens/buying-and-selling) — the same flow from the app's point of view
-- [Fees and slippage](/tokens/fees-and-slippage) — how to choose a slippage tolerance
+- [BondingCurveExponential](/contracts/bonding-curve): where `price` and `sell_return` come from
+- [AffiliationTreasury](/contracts/affiliation-treasury): where the 0.5% affiliation half goes
+- [FungibleTokenFull (AEX-9)](/contracts/aex9): the allowance model selling depends on
+- [Buying and selling](/tokens/buying-and-selling): the same flow from the app's point of view
+- [Fees and slippage](/tokens/fees-and-slippage): how to choose a slippage tolerance
diff --git a/pages/dao/index.mdx b/pages/dao/index.mdx
index 3d521e6..5c40625 100644
--- a/pages/dao/index.mdx
+++ b/pages/dao/index.mdx
@@ -19,7 +19,7 @@ The two systems use separate contracts, separate voting power and separate parts
| Contracts | `DAO.aes`, `DAOVote.aes` | `Registry.aes`, `Poll.aes` |
| Scope | One community token's treasury | The æternity ecosystem as a whole |
| Voting power | That community's AEX-9 token balance | AE balance, plus delegated AE |
-| Tokens locked while voting | Yes — an AEX-9 allowance locks your stake | No |
+| Tokens locked while voting | Yes. An AEX-9 allowance locks your stake | No |
| Ballot shape | Binary: in favour or against | Any list of at least two options |
| Outcome | Executes an on-chain action | Signalling; no automatic execution |
| Where in the app | `/trends/daos` and `/trends/dao/:saleAddress` | `/voting` |
@@ -44,7 +44,7 @@ A community's contracts are deployed together, in one transaction, by
## The lifecycle
-1. Trading fees accumulate in the DAO treasury — 0.5% of every buy.
+1. Trading fees accumulate in the DAO treasury: 0.5% of every buy.
2. A holder at or above the community threshold opens a vote, paying **555 AE** to the DAO.
3. The vote stays open for **two weeks**, measured in key-blocks.
4. Holders vote for or against by locking tokens in the vote contract.
@@ -56,19 +56,19 @@ A community's contracts are deployed together, in one transaction, by
## In this section
-- [How DAOs Work](/dao/overview) — the full lifecycle, the contracts involved, and what happens at each step.
-- [The Treasury](/dao/treasury) — where the money comes from, how to read the balance, and what the 555 AE payment does.
-- [Proposals and Vote Subjects](/dao/proposals) — the closed set of things a DAO can decide, with the exact parameter shapes.
-- [Voting](/dao/voting) — casting a vote, the AEX-9 allowance step, and what locking your tokens means.
-- [Quorum and Thresholds](/dao/quorum-and-thresholds) — every number in one reference table.
-- [Moderators and Write Thresholds](/dao/moderators) — how governance controls who can post in a community.
-- [Replaceable DAOs](/dao/replaceable-dao) — the interface a custom DAO must satisfy, and the migration path.
-- [The ProtocolDAO Token](/dao/protocol-dao) — the platform-wide token minted on every buy.
+- [How DAOs Work](/dao/overview): the full lifecycle, the contracts involved, and what happens at each step.
+- [The Treasury](/dao/treasury): where the money comes from, how to read the balance, and what the 555 AE payment does.
+- [Proposals and Vote Subjects](/dao/proposals): the closed set of things a DAO can decide, with the exact parameter shapes.
+- [Voting](/dao/voting): casting a vote, the AEX-9 allowance step, and what locking your tokens means.
+- [Quorum and Thresholds](/dao/quorum-and-thresholds): every number in one reference table.
+- [Moderators and Write Thresholds](/dao/moderators): how governance controls who can post in a community.
+- [Replaceable DAOs](/dao/replaceable-dao): the interface a custom DAO must satisfy, and the migration path.
+- [The ProtocolDAO Token](/dao/protocol-dao): the platform-wide token minted on every buy.
## Related
-- [Governance and Voting](/governance) — æternity-wide stake-weighted polls at `/voting`.
-- [DAO contract reference](/contracts/dao) — every `DAO.aes` entrypoint and signature.
-- [DAO Vote contract reference](/contracts/dao-vote) — every `DAOVote.aes` entrypoint and signature.
-- [Bonding curve](/tokens/bonding-curve) — how the buy and sell prices that generate treasury fees are computed.
-- [Browse every DAO](https://superhero.com/trends/daos) — the live list of community treasuries.
+- [Governance and Voting](/governance): æternity-wide stake-weighted polls at `/voting`.
+- [DAO contract reference](/contracts/dao): every `DAO.aes` entrypoint and signature.
+- [DAO Vote contract reference](/contracts/dao-vote): every `DAOVote.aes` entrypoint and signature.
+- [Bonding curve](/tokens/bonding-curve): how the buy and sell prices that generate treasury fees are computed.
+- [Browse every DAO](https://superhero.com/trends/daos): the live list of community treasuries.
diff --git a/pages/dao/moderators.mdx b/pages/dao/moderators.mdx
index 267fe2e..76669de 100644
--- a/pages/dao/moderators.mdx
+++ b/pages/dao/moderators.mdx
@@ -31,8 +31,8 @@ Chain.create(Call.caller, 10 ^ decimals(), is_private, meta_info) : CommunityMan
| Argument | Value at creation |
| --- | --- |
-| `initial_moderator` | `Call.caller` — whoever created the community |
-| `minimum_token_threshold` | `10 ^ 18` — exactly one whole token (`decimals()` is `18`) |
+| `initial_moderator` | `Call.caller`, whoever created the community |
+| `minimum_token_threshold` | `10 ^ 18`, exactly one whole token (`decimals()` is `18`) |
| `is_private` | Passed through from `create_community`; the web app sends `false` |
| `meta_info` | Passed through from `create_community` |
@@ -47,19 +47,19 @@ Reach the contract from the DAO with `get_community_management()`, which returns
| Change | Entrypoint | Authorised by |
| --- | --- | --- |
-| Appoint a moderator | `add_moderator(moderator)` | DAO vote — `AddModerator` |
-| Remove a moderator | `delete_moderator(moderator)` | DAO vote — `DeleteModerator` |
-| Change the write threshold | `change_minimum_token_threshold(n)` | DAO vote — `ChangeMinimumTokenThreshold` |
-| Replace the metadata map | `change_meta_info(meta_info)` | DAO vote — `ChangeMetaInfo` |
+| Appoint a moderator | `add_moderator(moderator)` | DAO vote (`AddModerator`) |
+| Remove a moderator | `delete_moderator(moderator)` | DAO vote (`DeleteModerator`) |
+| Change the write threshold | `change_minimum_token_threshold(n)` | DAO vote (`ChangeMinimumTokenThreshold`) |
+| Replace the metadata map | `change_meta_info(meta_info)` | DAO vote (`ChangeMetaInfo`) |
| Mute an account | `mute_user_id(user_id)` | A moderator |
| Unmute an account | `unmute_user_id(user_id)` | A moderator |
-| Transfer ownership | `set_owner(owner)` | The owner — in practice only a `ChangeDAO` vote |
+| Transfer ownership | `set_owner(owner)` | The owner; in practice only a `ChangeDAO` vote |
-Moderators mute and unmute. Everything structural — who the moderators are, what the
-threshold is, what the community says about itself — is a token-holder decision that goes
+Moderators mute and unmute. Everything structural (who the moderators are, what the
+threshold is, what the community says about itself) is a token-holder decision that goes
through a proposal and a two-week vote. A moderator cannot appoint another moderator, cannot
-change the threshold, and cannot remove themselves from the set. Day-to-day moderation is
-fast and delegated; the moderator roster is slow and collective.
+change the threshold, and cannot remove themselves from the set. Muting is
+quick and needs no vote, while changing the moderator roster needs a full proposal.
The `owner` of `CommunityManagement` is the DAO, which is how a passed vote reaches these
entrypoints. `set_owner` is not one of the seven vote subjects; the only path that calls it
@@ -79,12 +79,12 @@ Read it directly:
CommunityManagement.minimum_token_threshold() : int
```
-The value is in the token's smallest unit. Divide by `10^decimals` — read `decimals` from the
-token's `meta_info()` — before comparing it to a balance shown in a wallet. Every community
+The value is in the token's smallest unit. Divide by `10^decimals` (read `decimals` from the
+token's `meta_info()`) before comparing it to a balance shown in a wallet. Every community
starts at `10^18`, one whole token, until a `ChangeMinimumTokenThreshold` vote moves it.
The contract stores the threshold and hands it out. The app and the backend enforce it for
-posting — see [Moderation](/social/moderation) — and `DAO.add_vote` enforces it for
+posting (see [Moderation](/social/moderation)), and `DAO.add_vote` enforces it for
proposals, requiring the proposer's balance to clear it.
### Choosing one
@@ -126,7 +126,7 @@ contract. Moderation here is membership control, not content control. See
[Moderation](/social/moderation).
Muting is not governance. A moderator does not need a vote to mute, and a mute is not
-reversed by vote — only a moderator's `unmute_user_id` changes it.
+reversed by vote. Only a moderator's `unmute_user_id` changes it.
## The `is_private` flag
@@ -165,7 +165,7 @@ CommunityManagement.meta_info = map(string, string)
```
A free-form string map holding the community's descriptive metadata. `change_meta_info`
-replaces it wholesale, through a `ChangeMetaInfo` vote — a proposal that means to change one
+replaces it wholesale, through a `ChangeMetaInfo` vote, so a proposal that means to change one
key must carry every other key unchanged. There is no per-key update entrypoint.
## Events
@@ -188,9 +188,9 @@ later undone. See [Contract events](/contracts/events).
## Related
-- [Proposals and Vote Subjects](/dao/proposals) — the four subjects that reach this contract, with their parameter shapes.
-- [How DAOs Work](/dao/overview) — how a moderator appointment travels from proposal to execution.
-- [Quorum and Thresholds](/dao/quorum-and-thresholds) — the vote a moderator change has to clear.
-- [Moderation](/social/moderation) — how muting and the threshold are applied in the app.
-- [Community Management contract reference](/contracts/community-management) — the full entrypoint table.
-- [Replaceable DAOs](/dao/replaceable-dao) — a `ChangeDAO` migration transfers this contract's ownership too.
+- [Proposals and Vote Subjects](/dao/proposals): the four subjects that reach this contract, with their parameter shapes.
+- [How DAOs Work](/dao/overview): how a moderator appointment travels from proposal to execution.
+- [Quorum and Thresholds](/dao/quorum-and-thresholds): the vote a moderator change has to clear.
+- [Moderation](/social/moderation): how muting and the threshold are applied in the app.
+- [Community Management contract reference](/contracts/community-management): the full entrypoint table.
+- [Replaceable DAOs](/dao/replaceable-dao): a `ChangeDAO` migration transfers this contract's ownership too.
diff --git a/pages/dao/overview.mdx b/pages/dao/overview.mdx
index cff4956..5b99145 100644
--- a/pages/dao/overview.mdx
+++ b/pages/dao/overview.mdx
@@ -11,7 +11,7 @@ follow a real proposal on-chain.
## The lifecycle
-1. Trading fees accumulate in the DAO treasury — **0.5% of every buy** on the community's
+1. Trading fees accumulate in the DAO treasury: **0.5% of every buy** on the community's
bonding curve.
2. Any holder at or above the community threshold opens a vote through
`DAO.add_vote(metadata)`, paying **555 AE** to the DAO.
@@ -23,7 +23,7 @@ follow a real proposal on-chain.
`DAO.apply_vote_subject(vote_seq_id)`. Any account can trigger it.
7. Voters call `withdraw()` to reclaim their locked tokens.
-## Step 1 — deployment
+## Step 1: deployment
The community's contracts are deployed together by the factory:
@@ -51,9 +51,9 @@ zero. The boolean is the **applied** flag: `apply_vote_subject` requires it to b
(`VOTE_ALREADY_APPLIED` otherwise) and sets it to `true` once the subject executes. Read the map
with `votes()`, or the whole record with `get_state()`.
-`vote_timeout` is set once at deployment to `(60 / 3) * 24 * 2` — 960 key-blocks.
+`vote_timeout` is set once at deployment to `(60 / 3) * 24 * 2`, which is 960 key-blocks.
-## Step 2 — funding
+## Step 2: funding
The token sale forwards the DAO's share of each buy by calling:
@@ -69,7 +69,7 @@ and [Replaceable DAOs](/dao/replaceable-dao).
The other source of treasury funds is the 555 AE paid by whoever opens a vote. It is a
donation to the DAO, not a refundable deposit.
-## Step 3 — opening a proposal
+## Step 3: opening a proposal
```text
stateful payable entrypoint add_vote(metadata: DAOVote.metadata) : (int, DAOVote)
@@ -101,7 +101,7 @@ payable stateful entrypoint add_vote(metadata : DAOVote.metadata) =
"ADD_VOTE_TOKEN_HOLDER_MISSMATCH")
```
-- **Exactly 555 AE.** `Call.value` must equal `555 * 10^18` aettos — attaching more fails
+- **Exactly 555 AE.** `Call.value` must equal `555 * 10^18` aettos. Attaching more fails
the same way as attaching less.
- **The caller's balance is read at call time**, live from the AEX-9 contract. There is no
snapshot height and no holding period.
@@ -121,10 +121,10 @@ CommunityManagement.minimum_token_threshold() : int
Reach that contract from the DAO with `DAO.get_community_management()`, which returns an
`option(CommunityManagement)`. The value is in the token's smallest unit, so divide by
-`10^decimals` — read `decimals` from the token's `meta_info()` — before comparing it to a
+`10^decimals` (read `decimals` from the token's `meta_info()`) before comparing it to a
displayed balance. A `ChangeMinimumTokenThreshold` vote changes it.
-## Step 4 — voting
+## Step 4: voting
Each `DAOVote` contract holds its own ballot:
@@ -144,7 +144,7 @@ and whether they have withdrawn.
Voting requires an AEX-9 allowance and locks your tokens. See [Voting](/dao/voting).
-## Step 5 — the outcome
+## Step 5: the outcome
When `Chain.block_height` reaches `close_height`, `is_closed()` returns true and
`final_vote_state()` stops returning `None`. `apply_vote_subject` then checks:
@@ -163,7 +163,7 @@ Both thresholds are needed. A proposal with 100% approval and 4% turnout does no
closing and execution mints new supply and can push a passed vote below the 10% quorum.
This is why the execution window is short.
-## Step 6 — execution
+## Step 6: execution
```text
stateful entrypoint apply_vote_subject(vote_seq_id: int) : unit
@@ -174,15 +174,15 @@ or script can call `apply_vote_subject` with the vote's sequential id. The DAO c
result itself before acting.
The window is `vote.close_height() + state.vote_timeout >= Chain.block_height`, otherwise
-`VOTE_RESULT_TIMEOUTED`. `vote_timeout` is 960 key-blocks — about two days — and is readable
+`VOTE_RESULT_TIMEOUTED`. `vote_timeout` is 960 key-blocks (about two days) and is readable
with `vote_timeout()`.
**A passed vote that is not applied in time does nothing.** The treasury is not paid out, the
moderator is not appointed, and the 555 AE is not returned. Plan for somebody to call
-`apply_vote_subject` promptly — the vote's page in the app shows an Apply action once the
+`apply_vote_subject` promptly. The vote's page in the app shows an Apply action once the
vote is applicable.
-## Step 7 — withdrawal
+## Step 7: withdrawal
After the closing height, every voter calls `withdraw()` on the vote contract to unlock their
tokens. Withdrawing does not change the recorded outcome. Tokens stay locked until their owner
@@ -202,9 +202,9 @@ is read.
## Related
-- [Proposals and Vote Subjects](/dao/proposals) — what you can put in a proposal.
-- [Voting](/dao/voting) — the allowance step and the locking behaviour.
-- [Quorum and Thresholds](/dao/quorum-and-thresholds) — every constant, with the key-block arithmetic.
-- [The Treasury](/dao/treasury) — reading a DAO's balance on-chain and through the API.
-- [DAO contract reference](/contracts/dao) — the full entrypoint table.
-- [Open a community's DAO](https://superhero.com/trends/daos) — the live list.
+- [Proposals and Vote Subjects](/dao/proposals): what you can put in a proposal.
+- [Voting](/dao/voting): the allowance step and the locking behaviour.
+- [Quorum and Thresholds](/dao/quorum-and-thresholds): every constant, with the key-block arithmetic.
+- [The Treasury](/dao/treasury): reading a DAO's balance on-chain and through the API.
+- [DAO contract reference](/contracts/dao): the full entrypoint table.
+- [Open a community's DAO](https://superhero.com/trends/daos): the live list.
diff --git a/pages/dao/proposals.mdx b/pages/dao/proposals.mdx
index 7c09d10..b329f65 100644
--- a/pages/dao/proposals.mdx
+++ b/pages/dao/proposals.mdx
@@ -37,7 +37,7 @@ summary decodes the subject in this order before asking you to sign.
| `ChangeDAO` | A **contract** (`ct_`) implementing the `ReplaceableDAO` interface |
| `AddModerator` / `DeleteModerator` | An account (`ak_`) to appoint or remove as moderator |
-`VotePayoutAmount`'s `int` is in aettos — `10^18` aettos to one AE.
+`VotePayoutAmount`'s `int` is in aettos, with `10^18` aettos to one AE.
`ChangeMinimumTokenThreshold`'s `int` is in the community token's smallest unit, so divide by
`10^decimals` to compare it against a displayed balance.
@@ -46,14 +46,14 @@ summary decodes the subject in this order before asking you to sign.
`add_vote` validates only that `Call.value` is 555 AE and that the caller holds the minimum
token threshold; it does not compare a payout amount to the DAO's balance. `apply_vote_subject`
executes the subject with `Chain.spend(receiver, amount)`, which aborts if the balance is
-insufficient — leaving the vote unapplied. If no application succeeds inside the execution
+insufficient and leaves the vote unapplied. If no application succeeds inside the execution
window, the proposal expires.
- **Check the treasury before you propose an amount, and leave headroom.** The balance can fall
between proposal and execution: another payout vote may apply first, and treasury income only
arrives on buys.
-- **`VotePayout` spends `Contract.balance`** — whatever is there at execution, including zero
- — so it cannot fail this way.
+- **`VotePayout` spends `Contract.balance`**: whatever is there at execution, including zero,
+ so it cannot fail this way.
Any number of proposals can be open at once, including conflicting ones. If two payout votes
both pass, both can be applied, in whatever order people call `apply_vote_subject`, until the
@@ -82,7 +82,7 @@ VoteSubjects.ChangeDAO(new_dao_address) =>
Five effects in one transaction: the treasury moves, the sale's beneficiary changes, the sale's
owner changes, the target is checked to point at the same `CommunityManagement`, and that
contract's ownership is transferred. **Moderator appointments and threshold changes keep
-working after a migration** — the new DAO becomes the owner that `CommunityManagement` checks.
+working after a migration**, because the new DAO becomes the owner that `CommunityManagement` checks.
Two guards protect the migration:
@@ -110,7 +110,7 @@ DAOVote.metadata = { subject : VoteSubjects.subject
| --- | --- |
| `subject` | The machine-readable action. This is what executes. |
| `description` | Free text explaining the proposal to voters. At most 300 characters. |
-| `link` | A reference URL — a forum thread, a spec, a budget. |
+| `link` | A reference URL, such as a forum thread, a spec or a budget. |
Only `subject` and the description length are enforced by the contract: `DAOVote.init`
requires `String.length(metadata.description) =< 300`. There is no title field. The link is
@@ -123,7 +123,7 @@ The same rule covers all seven subjects: a holder who owns at least the communit
`minimum_token_threshold` at the moment of the call can open a vote by calling
`DAO.add_vote(metadata)` with exactly 555 AE attached. The balance is read live from the AEX-9
contract for `Call.caller`; there is no snapshot and no holding period. There is no
-moderator-only subject and no proposal whitelist — moderators are appointed by vote but hold
+moderator-only subject and no proposal whitelist. Moderators are appointed by vote but hold
no proposal rights of their own.
## Open a proposal
@@ -148,7 +148,7 @@ description = "Pay 100 AE to the contributor who built the community bot, \
link = "https://forum.aeternity.com/t/..."
```
-`100000000000000000000` is 100 AE in aettos — `100 * 10^18`. A vote is not editable after it
+`100000000000000000000` is 100 AE in aettos (`100 * 10^18`). A vote is not editable after it
is opened, so check the digit count before you sign; the Superhero wallet's transaction summary
shows the decoded subject and its payload.
@@ -161,9 +161,9 @@ displays the subject that was signed.
## Related
-- [Voting](/dao/voting) — how holders vote on a proposal once it is open.
-- [Quorum and Thresholds](/dao/quorum-and-thresholds) — the numbers a proposal must clear.
-- [Replaceable DAOs](/dao/replaceable-dao) — what a `ChangeDAO` target has to implement.
-- [Moderators and Write Thresholds](/dao/moderators) — what the moderator and threshold subjects change.
-- [DAO contract reference](/contracts/dao) — `add_vote` and `apply_vote_subject` in the full entrypoint table.
-- [Open a DAO and its proposals](https://superhero.com/trends/daos) — the live list of communities.
+- [Voting](/dao/voting): how holders vote on a proposal once it is open.
+- [Quorum and Thresholds](/dao/quorum-and-thresholds): the numbers a proposal must clear.
+- [Replaceable DAOs](/dao/replaceable-dao): what a `ChangeDAO` target has to implement.
+- [Moderators and Write Thresholds](/dao/moderators): what the moderator and threshold subjects change.
+- [DAO contract reference](/contracts/dao): `add_vote` and `apply_vote_subject` in the full entrypoint table.
+- [Open a DAO and its proposals](https://superhero.com/trends/daos): the live list of communities.
diff --git a/pages/dao/protocol-dao.mdx b/pages/dao/protocol-dao.mdx
index d43a804..6a7588b 100644
--- a/pages/dao/protocol-dao.mdx
+++ b/pages/dao/protocol-dao.mdx
@@ -7,7 +7,7 @@ description: "The platform-wide AEX-9 token minted to every buyer of a community
The ProtocolDAO token is issued automatically to anyone who buys a community token, in
proportion to the AE they spend. It is one platform-wide token, intended for protocol-level
-governance. Issuance is live; the governance it is named after is not yet built — there is no
+governance. Issuance is live; the governance it is named after is not yet built. There is no
ProtocolDAO contract, no proposal mechanism and no staking.
It is not a community token. A community token governs one community's treasury through that
@@ -49,7 +49,7 @@ mint and no other issuance path, so ProtocolDAO supply is exactly 1,000 times th
spent buying community tokens through the factory.
The token contract is an ordinary `FungibleTokenFull` with 18 decimals, so the whole AEX-9
-surface applies — `balance`, `total_supply`, `transfer`, `create_allowance` and the rest. Its
+surface applies: `balance`, `total_supply`, `transfer`, `create_allowance` and the rest. Its
name and symbol are the same string, set once at factory deployment by
`CommunityFactory.init(protocol_token_name)`.
@@ -100,8 +100,8 @@ bonding-curve token and has no protocol-native market.
## Related
-- [Community DAOs](/dao) — the per-community governance that exists today.
-- [Governance and Voting](/governance) — æternity-wide polls, weighted by AE.
-- [Value flow](/concepts/value-flow) — where ProtocolDAO issuance sits in what a buyer pays and receives.
-- [Community Factory contract reference](/contracts/community-factory) — the factory entrypoints that mint it.
-- [AEX standards](/aeternity/aex-standards) — the AEX-9 interface this token implements.
+- [Community DAOs](/dao): the per-community governance that exists today.
+- [Governance and Voting](/governance): æternity-wide polls, weighted by AE.
+- [Value flow](/concepts/value-flow): where ProtocolDAO issuance sits in what a buyer pays and receives.
+- [Community Factory contract reference](/contracts/community-factory): the factory entrypoints that mint it.
+- [AEX standards](/aeternity/aex-standards): the AEX-9 interface this token implements.
diff --git a/pages/dao/quorum-and-thresholds.mdx b/pages/dao/quorum-and-thresholds.mdx
index f5a3c57..e13c5a4 100644
--- a/pages/dao/quorum-and-thresholds.mdx
+++ b/pages/dao/quorum-and-thresholds.mdx
@@ -20,7 +20,7 @@ converts the time periods into key-blocks.
| Participation (quorum) | At least 10% of total supply **at execution time** | `(total_vote_stake * 100) / token_total_supply >= 10` |
| Execution window | 960 key-blocks after the close, about 2 days | `vote.close_height() + state.vote_timeout >= Chain.block_height` |
| Who can execute | Any account, via `DAO.apply_vote_subject(vote_seq_id)` | No caller check |
-| Ballot | Binary — in favour or against | `vote_option = bool` |
+| Ballot | Binary: in favour or against | `vote_option = bool` |
| Voting power | Linear in tokens staked; tokens are locked while the vote stands | `vote_state[option] + amount` |
| Description length | At most 300 characters | `String.length(metadata.description) =< 300` |
| One vote per address | A second `vote` is rejected, not merged | `VOTER_ALREADY_VOTED` |
@@ -33,8 +33,8 @@ when applied.
æternity separates leader election from transaction production. **Key-blocks** are the
proof-of-work blocks, targeted at one every **three minutes**; micro-blocks carry the
-transactions and appear about every three seconds between them. Contract heights — including
-`DAOVote.close_height` and `DAO.vote_timeout` — are key-block heights, so compute with the
+transactions and appear about every three seconds between them. Contract heights, including
+`DAOVote.close_height` and `DAO.vote_timeout`, are key-block heights, so compute with the
three-minute figure.
```text
@@ -81,7 +81,7 @@ approval = stake_in_favour / (stake_in_favour + stake_against) >= 0.55
participation = (stake_in_favour + stake_against) / total_supply >= 0.10
```
-Both are integer comparisons — `(x * 100) / y >= 55` and `(x * 100) / y >= 10` — so the
+Both are integer comparisons (`(x * 100) / y >= 55` and `(x * 100) / y >= 10`), so the
percentages are floored before comparison. Exactly 55.0% and exactly 10.0% both pass; anything
a fraction below either bar fails. Multiply before you divide if you check the outcome
yourself.
@@ -98,7 +98,7 @@ A worked case, for a token with 1,000,000 tokens in supply:
| Passes | 80,000 | 40,000 | 66.7% | 12.0% | Both cleared |
| Fails on approval | 60,000 | 60,000 | 50.0% | 12.0% | Below 55% |
| Fails on quorum | 40,000 | 0 | 100% | 4.0% | Below 10% |
-| Fails on both | 20,000 | 20,000 | 50.0% | 4.0% | — |
+| Fails on both | 20,000 | 20,000 | 50.0% | 4.0% | Below both |
Unanimous support from a small turnout is still a failed proposal, and the 555 AE is still
spent.
@@ -120,9 +120,9 @@ closing height.
## Related
-- [Voting](/dao/voting) — how stake is committed, and the allowance and locking mechanics.
-- [How DAOs Work](/dao/overview) — the lifecycle these thresholds gate.
-- [Proposals and Vote Subjects](/dao/proposals) — the closed set of subjects.
-- [The Treasury](/dao/treasury) — where the 555 AE ends up.
-- [Contract security](/contracts/security) — the governance-security reasoning behind the thresholds.
-- [Bitcoin-NG consensus](https://docs.aeternity.com/aeternity-core-concepts/protocol/consensus-mechanisms/next-generation-nakamoto-consensus-bitcoin-ng) — the three-minute key-block and three-second micro-block targets.
+- [Voting](/dao/voting): how stake is committed, and the allowance and locking mechanics.
+- [How DAOs Work](/dao/overview): the lifecycle these thresholds gate.
+- [Proposals and Vote Subjects](/dao/proposals): the closed set of subjects.
+- [The Treasury](/dao/treasury): where the 555 AE ends up.
+- [Contract security](/contracts/security): the governance-security reasoning behind the thresholds.
+- [Bitcoin-NG consensus](https://docs.aeternity.com/aeternity-core-concepts/protocol/consensus-mechanisms/next-generation-nakamoto-consensus-bitcoin-ng): the three-minute key-block and three-second micro-block targets.
diff --git a/pages/dao/replaceable-dao.mdx b/pages/dao/replaceable-dao.mdx
index 652319f..1d79cb0 100644
--- a/pages/dao/replaceable-dao.mdx
+++ b/pages/dao/replaceable-dao.mdx
@@ -23,7 +23,7 @@ A contract that implements all three entrypoints can be the target of a `ChangeD
| --- | --- | --- |
| `is_dao` | `() : bool` | Must return `true`. Blocks transfers to non-DAO addresses. |
| `get_community_management` | `() : option(CommunityManagement)` | The linked community management contract, or `None`. |
-| `record_sale_transaction` | `(address, int) : unit` — stateful, payable | Receive sale proceeds with the buyer and buy price as arguments. |
+| `record_sale_transaction` | `(address, int) : unit`, stateful, payable | Receive sale proceeds with the buyer and buy price as arguments. |
The stock `DAO.aes` implements all three, so a community's DAO can be replaced by another
instance of the same implementation as well as by a custom one.
@@ -35,7 +35,7 @@ stateful payable entrypoint record_sale_transaction(buyer: address, buy_price: i
```
The AE arrives with the call; the **buyer** and the **buy price** arrive as arguments. A
-replacement DAO can therefore act on income the moment it lands — split it between a treasury
+replacement DAO can therefore act on income the moment it lands: split it between a treasury
and a rewards pool, credit it per buyer, forward a share to a partner contract. The token sale
calls it with `protected = true`, so an aborting DAO does not block a trade, and calls it with
zero value as a probe on `set_beneficiary`, so the entrypoint must accept zero-value calls.
@@ -45,7 +45,7 @@ zero value as a probe on `set_beneficiary`, so the entrypoint must accept zero-v
`ChangeDAO` transfers ownership of the token sale, the beneficiary rights to all future
proceeds, and the accumulated treasury, in one call. `is_dao()` returning `true` is a type
check that the target is at least a DAO-shaped contract: an account address, the token
-address or an unrelated contract does not answer the call. It is not a trust check — any
+address or an unrelated contract does not answer the call. It is not a trust check, since any
contract can implement `is_dao() = true`.
## Build a replacement DAO
@@ -57,7 +57,7 @@ contract can implement `is_dao() = true`.
of the existing `AffiliationBondingCurveTokenSale`, and the owner of the existing
`CommunityManagement`. If it does not expose equivalents of `add_vote` and
`apply_vote_subject`, the community loses the ability to appoint moderators or change its
- write threshold — those actions can only be reached by the sale's owner.
+ write threshold, because those actions can only be reached by the sale's owner.
3. **Point it at the existing `CommunityManagement`.** `apply_vote_subject` asserts
`get_community_management() == new_dao.get_community_management()` and aborts the whole
migration with `NEW_DAO_HAS_TO_REFERENCE_SAME_COMMUNITY_MANAGEMENT` if they differ. The
@@ -81,7 +81,7 @@ A `ChangeDAO` proposal is an ordinary DAO vote:
participating.
4. Within roughly two days of closing, somebody calls `DAO.apply_vote_subject(vote_seq_id)`.
5. The old DAO verifies `is_dao()` on the target, then transfers the treasury, the sale's
- beneficiary and owner, and ownership of `CommunityManagement` — checking on the way that the
+ beneficiary and owner, and ownership of `CommunityManagement`. On the way it checks that the
target references the same community management contract.
If nobody applies it inside the window, the vote expires and nothing moves. The 555 AE is
@@ -102,7 +102,7 @@ spent and the proposal has to be reopened.
Because `CommunityManagement.set_owner` is called in the same transaction, the
`AddModerator`, `DeleteModerator`, `ChangeMinimumTokenThreshold` and `ChangeMetaInfo`
-subjects keep working after a migration — provided the replacement DAO implements equivalents
+subjects keep working after a migration, provided the replacement DAO implements equivalents
of `add_vote` and `apply_vote_subject` to reach them.
A community's governance history after a migration is split across two contracts, and the
@@ -115,7 +115,7 @@ new DAO's vote ids restart at zero.
- **`is_dao()` proves nothing about intent.** Any contract can pass the check.
- **The vote approves an address.** Unless the source is published and the deployed bytecode
matches it, holders are approving the proposer's word.
-- **Governance is whatever the replacement implements** — possibly a single owner key.
+- **Governance is whatever the replacement implements**, and that could be a single owner key.
- **The treasury moves in the same transaction.** There is no staged handover, trial period or
clawback.
@@ -124,10 +124,10 @@ matches it, that the replacement implements proposals and voting, and who contro
## Related
-- [Proposals and Vote Subjects](/dao/proposals) — `ChangeDAO` alongside the other six subjects.
-- [The Treasury](/dao/treasury) — what `record_sale_transaction` does in the stock DAO.
-- [How DAOs Work](/dao/overview) — the vote and execution steps a migration passes through.
-- [Quorum and Thresholds](/dao/quorum-and-thresholds) — why a replacement DAO can use different constants.
-- [DAO contract reference](/contracts/dao) — the stock implementation a replacement stands in for.
-- [Moderators and Write Thresholds](/dao/moderators) — the `CommunityManagement` contract whose ownership the migration moves.
-- [Sophia and FATE](/aeternity/sophia-and-fate) — the language and VM a replacement DAO is written for.
+- [Proposals and Vote Subjects](/dao/proposals): `ChangeDAO` alongside the other six subjects.
+- [The Treasury](/dao/treasury): what `record_sale_transaction` does in the stock DAO.
+- [How DAOs Work](/dao/overview): the vote and execution steps a migration passes through.
+- [Quorum and Thresholds](/dao/quorum-and-thresholds): why a replacement DAO can use different constants.
+- [DAO contract reference](/contracts/dao): the stock implementation a replacement stands in for.
+- [Moderators and Write Thresholds](/dao/moderators): the `CommunityManagement` contract whose ownership the migration moves.
+- [Sophia and FATE](/aeternity/sophia-and-fate): the language and VM a replacement DAO is written for.
diff --git a/pages/dao/treasury.mdx b/pages/dao/treasury.mdx
index 51442c2..37dd714 100644
--- a/pages/dao/treasury.mdx
+++ b/pages/dao/treasury.mdx
@@ -6,7 +6,7 @@ description: "Where a community DAO's AE comes from, how to read the balance on-
# The DAO Treasury
A community DAO holds plain AE. There is no separate vault contract, no wrapped balance and
-no staking position — the treasury is the AE balance of the `DAO` contract, and the only way
+no staking position. The treasury is the AE balance of the `DAO` contract, and the only way
it leaves is a payout vote that passes and is applied in time.
## Where the money comes from
@@ -33,7 +33,7 @@ state.dao_contract.record_sale_transaction(
the curve price and the DAO receives the residual `0.5%`. Setting the payout obligation aside
before the treasury is paid is what keeps the reserve solvent.
-The call is `protected = true`, so a DAO call that aborts does not block the trade — the AE
+The call is `protected = true`, so a DAO call that aborts does not block the trade; the AE
stays in the sale contract. See [Value flow](/concepts/value-flow) and
[Fees & Slippage](/tokens/fees-and-slippage).
@@ -44,7 +44,7 @@ stateful payable entrypoint record_sale_transaction(buyer: address, buy_price: i
```
The AE rides along with the call; the buyer's address and the buy price arrive as arguments.
-The stock DAO keeps the AE and does not store the arguments — reconstruct which buys funded a
+The stock DAO keeps the AE and does not store the arguments. Reconstruct which buys funded a
treasury from the `Buy` events on the sale contract. The entrypoint is part of the
`ReplaceableDAO` interface, so a replacement DAO can split income, forward part of it, or
account for it per buyer. See [Replaceable DAOs](/dao/replaceable-dao).
@@ -56,7 +56,7 @@ DAO must accept zero-value calls to be a beneficiary.
## The 555 AE is not refundable
The 555 AE paid on `add_vote` is a donation to the DAO. It lands in the treasury and no
-entrypoint returns it — not on rejection, not on expiry, and not on success. There is no
+entrypoint returns it: not on rejection, not on expiry, and not on success. There is no
`refund`, no `cancel_vote` and no author-only withdrawal.
- A failed proposal costs its author 555 AE, which stays with the community.
@@ -96,12 +96,12 @@ Everything else about the DAO is read through its entrypoints:
| `total_supply` | Needed to evaluate the 10% participation quorum |
| `holders_count` | How many addresses hold the token |
-`dao_balance` is in aettos — divide by `10^18` to get AE. See
+`dao_balance` is in aettos; divide by `10^18` to get AE. See
[Tokens API](/api-reference/tokens) for the rest of the DTO.
`dao_balance` is refreshed together with the token's live price, so it is as fresh as the last
-price refresh. For a balance consistent with a specific block — for example when checking
-whether a `VotePayoutAmount` proposal is affordable — read the contract's account balance at
+price refresh. For a balance consistent with a specific block (for example, when checking
+whether a `VotePayoutAmount` proposal is affordable), read the contract's account balance at
that height yourself.
## The treasury in the app
@@ -112,26 +112,26 @@ that height yourself.
| One DAO | `/trends/dao/:saleAddress` | That community's treasury, its proposal list, and the create-vote form. |
| One proposal | `/trends/dao/:saleAddress/vote/:voteId/:voteAddress` | The ballot, the voters table, and the vote, revoke, withdraw and apply actions. |
-The DAO list is keyed by `sale_address`, not by the DAO address — the sale contract is the
+The DAO list is keyed by `sale_address`, not by the DAO address, because the sale contract is the
stable public identifier for a community across the app.
## What the treasury can be spent on
Only two of the seven vote subjects move money:
-- `VotePayout(recipient)` — send the **entire** DAO balance to one account.
-- `VotePayoutAmount(recipient, amount)` — send a **specified** amount to one account.
+- `VotePayout(recipient)` sends the **entire** DAO balance to one account.
+- `VotePayoutAmount(recipient, amount)` sends a **specified** amount to one account.
There is no multi-recipient payout, no streaming, no vesting and no budget primitive. A
community that wants to split a grant between three contributors runs three proposals, or
pays one address that then distributes off-protocol. A `ChangeDAO` vote also moves the whole
-balance, as part of a migration — see [Replaceable DAOs](/dao/replaceable-dao).
+balance, as part of a migration; see [Replaceable DAOs](/dao/replaceable-dao).
## Related
-- [Proposals and Vote Subjects](/dao/proposals) — the two payout subjects and their exact parameters.
-- [How DAOs Work](/dao/overview) — the funding step in the context of the whole lifecycle.
-- [Replaceable DAOs](/dao/replaceable-dao) — the interface `record_sale_transaction` belongs to.
-- [Value flow](/concepts/value-flow) — where the other 99.5% of a buy goes.
-- [Tokens API](/api-reference/tokens) — the full token DTO including `dao_address` and `dao_balance`.
-- [Browse every DAO treasury](https://superhero.com/trends/daos) — the live list.
+- [Proposals and Vote Subjects](/dao/proposals): the two payout subjects and their exact parameters.
+- [How DAOs Work](/dao/overview): the funding step in the context of the whole lifecycle.
+- [Replaceable DAOs](/dao/replaceable-dao): the interface `record_sale_transaction` belongs to.
+- [Value flow](/concepts/value-flow): where the other 99.5% of a buy goes.
+- [Tokens API](/api-reference/tokens): the full token DTO including `dao_address` and `dao_balance`.
+- [Browse every DAO treasury](https://superhero.com/trends/daos): the live list.
diff --git a/pages/dao/voting.mdx b/pages/dao/voting.mdx
index 1619468..cabbabb 100644
--- a/pages/dao/voting.mdx
+++ b/pages/dao/voting.mdx
@@ -33,7 +33,7 @@ DAOVote.vote_state = map(DAOVote.vote_option, DAOVote.amount)
```
Your `amount` is added to the total under `true` or `false`. Ten times the tokens is ten
-times the weight — no quadratic discount, no cap, no time-weighting, no minimum.
+times the weight. There is no quadratic discount, cap, time-weighting or minimum.
The per-voter record is:
@@ -41,7 +41,7 @@ The per-voter record is:
DAOVote.vote_accounts = map(address, (DAOVote.amount, DAOVote.vote_option, bool))
```
-— the amount you staked, which way you voted, and whether you have withdrawn.
+Each entry holds the amount you staked, which way you voted, and whether you have withdrawn.
### One vote per address
@@ -63,7 +63,7 @@ transactions, and your weight is out of the tally in between.
This is the opposite of an [æternity governance poll](/governance/voting), where calling
`vote` again overwrites your choice.
-`amount` is not checked against your balance directly — the `transfer_allowance` call fails if
+`amount` is not checked against your balance directly; the `transfer_allowance` call fails if
you stake more than you hold or more than you have approved.
## The allowance step
@@ -94,7 +94,7 @@ The relevant AEX-9 entrypoints:
| `reset_allowance(for_account)` | Remove the allowance entirely |
| `allowance_for_caller(from_account)` | Read the allowance granted to you by another account |
-`allowance` takes a record — `allowance_accounts` is `from_account` plus `for_account` — and
+`allowance` takes a record (`allowance_accounts` is `from_account` plus `for_account`) and
returns `None` when no allowance exists. Calling `create_allowance` when one already exists
fails; calling `change_allowance` when none exists fails too, so handle the two cases
separately.
@@ -133,7 +133,7 @@ await vote.vote(true, amount);
```
Both transactions have to confirm. If the allowance transaction succeeds and the vote
-transaction fails, the allowance is left standing — harmless, but reset it with
+transaction fails, the allowance is left standing. That is harmless, but reset it with
`reset_allowance` if you would rather not leave a live approval in place.
### From the app
@@ -160,23 +160,23 @@ of its own; it ends when you end it.
| --- | --- | --- |
| When | While the vote is still open | After the closing height |
| Enforced by | `require(!is_closed(), "VOTE_ALREADY_CLOSED")` | `require(is_closed(), "VOTE_NOT_CLOSED")` |
-| Effect on the tally | Removes your stake from the total | None — the result is already fixed |
+| Effect on the tally | Removes your stake from the total | None; the result is already fixed |
| Effect on your record | Your entry is deleted; you count as not having voted | Your vote stands, marked as withdrawn |
| Can you vote again | Yes, while the vote is open | No, the vote is closed |
| Tokens | Returned | Returned |
-| Repeatable | Yes — revoke, vote, revoke again | No: `AMOUNT_ALREADY_WITHDRAWN` on the second call |
+| Repeatable | Yes: revoke, vote, revoke again | No: `AMOUNT_ALREADY_WITHDRAWN` on the second call |
| Event emitted | `RevokeVote(address, option, amount)` | `Withdraw(address, amount)` |
Both windows are enforced on chain. `is_closed()` is `Chain.block_height >= state.close_height`,
and the two entrypoints assert opposite sides of it, so exactly one of them works at any
height. A revoke transaction signed just before `close_height` and mined just after it
-reverts, and you must call `withdraw()` instead — do not leave a revoke to the last few blocks.
+reverts, and you must call `withdraw()` instead. Do not leave a revoke to the last few blocks.
**Revoking is a governance action**: it pulls your weight out of the tally, so a proposal that
was passing can stop passing. **Withdrawing is housekeeping**: the outcome is settled and
`final_vote_state()` returns it, and taking your tokens back cannot change it. Withdrawal does
not depend on how the vote went or whether the subject was ever applied, and nothing does it
-for you — tokens left in a closed vote contract stay locked until their owner calls
+for you. Tokens left in a closed vote contract stay locked until their owner calls
`withdraw`.
## Reading a vote
@@ -221,9 +221,9 @@ contract state. See [Contract events](/contracts/events).
## Related
-- [Quorum and Thresholds](/dao/quorum-and-thresholds) — what your stake has to add up to for a proposal to pass.
-- [Proposals and Vote Subjects](/dao/proposals) — what you are voting on, and how to read a subject.
-- [How DAOs Work](/dao/overview) — where voting sits in the lifecycle.
-- [Voting on governance polls](/governance/voting) — the other system, where nothing is locked.
-- [AEX standards](/aeternity/aex-standards) — the AEX-9 allowance mechanism this depends on.
-- [AEX-9 specification](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md) — the fungible-token standard, including the allowance entrypoints.
+- [Quorum and Thresholds](/dao/quorum-and-thresholds): what your stake has to add up to for a proposal to pass.
+- [Proposals and Vote Subjects](/dao/proposals): what you are voting on, and how to read a subject.
+- [How DAOs Work](/dao/overview): where voting sits in the lifecycle.
+- [Voting on governance polls](/governance/voting): the other system, where nothing is locked.
+- [AEX standards](/aeternity/aex-standards): the AEX-9 allowance mechanism this depends on.
+- [AEX-9 specification](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md): the fungible-token standard, including the allowance entrypoints.
diff --git a/pages/defi/bridge.mdx b/pages/defi/bridge.mdx
index b172174..8c17f54 100644
--- a/pages/defi/bridge.mdx
+++ b/pages/defi/bridge.mdx
@@ -31,7 +31,7 @@ To get AE from ETH without bridging at all, use one of the swap aggregators list
## Related
-- [Buying AE](/defi/buy-ae) — exchanges and ETH-to-AE swap aggregators.
-- [Swapping](/defi/swap) — trade aeETH you already hold.
-- [Wrapped AE](/defi/wrapped-ae) — the DEX's wrapper for native AE.
-- [DeFi & DEX overview](/defi) — the full route map and contract addresses.
+- [Buying AE](/defi/buy-ae): exchanges and ETH-to-AE swap aggregators.
+- [Swapping](/defi/swap): trade aeETH you already hold.
+- [Wrapped AE](/defi/wrapped-ae): the DEX's wrapper for native AE.
+- [DeFi & DEX overview](/defi): the full route map and contract addresses.
diff --git a/pages/defi/buy-ae.mdx b/pages/defi/buy-ae.mdx
index bc912c4..2661072 100644
--- a/pages/defi/buy-ae.mdx
+++ b/pages/defi/buy-ae.mdx
@@ -16,7 +16,7 @@ redirects there.
| Route | Where |
| --- | --- |
-| Refer & Earn | [`/trends/invite`](https://superhero.com/trends/invite) — see [Invite Links](/rewards/invite-links) |
+| Refer & Earn | [`/trends/invite`](https://superhero.com/trends/invite); see [Invite Links](/rewards/invite-links) |
| Earn by posting on X | The [Superhero Rewards Program](/rewards/rewards-program), from the Refer & Earn page |
Refer & Earn needs some AE to start with: each invite link is funded with the gift amount plus a
@@ -42,7 +42,7 @@ information.
## Before you buy
-- **Set up a wallet first** so you have an `ak_` address to receive at — see
+- **Set up a wallet first** so you have an `ak_` address to receive at. See
[Fund your wallet](/getting-started/fund-wallet).
- **Confirm the token, the network, the deposit address, the withdrawal fee and the minimum
withdrawal.** AE also exists as an ERC-20 token on Ethereum; only native AE on æternity works
@@ -64,7 +64,7 @@ information.
## Related
-- [Fund your wallet](/getting-started/fund-wallet) — set up somewhere to receive AE.
-- [AE & Gas](/aeternity/ae-and-gas) — what AE is spent on, and how much to keep back for fees.
-- [Invite Links](/rewards/invite-links) — the earn-AE route.
-- [Testnet](/getting-started/testnet) — free test AE for development.
+- [Fund your wallet](/getting-started/fund-wallet): set up somewhere to receive AE.
+- [AE & Gas](/aeternity/ae-and-gas): what AE is spent on, and how much to keep back for fees.
+- [Invite Links](/rewards/invite-links): the earn-AE route.
+- [Testnet](/getting-started/testnet): free test AE for development.
diff --git a/pages/defi/explore.mdx b/pages/defi/explore.mdx
index e567ad4..ea58394 100644
--- a/pages/defi/explore.mdx
+++ b/pages/defi/explore.mdx
@@ -66,7 +66,7 @@ Lists every pair, searchable by token name or symbol, with two sort keys:
| `transactions_count` | Busiest pools first |
| `created_at` | Newest pools first |
-A `?tokenAddress=` query parameter filters to pools containing that token — this is how a token
+A `?tokenAddress=` query parameter filters to pools containing that token. This is how a token
detail page links through to its pools.
```text
@@ -92,9 +92,9 @@ and appending `/providers` returns the pairs that could serve those two tokens.
A filterable feed of DEX transactions. Three filters combine:
-- **Transaction type** — one of the router functions below, or All.
-- **Pair address** — a `ct_` pair contract.
-- **Account address** — one wallet's activity.
+- **Transaction type**: one of the router functions below, or All.
+- **Pair address**: a `ct_` pair contract.
+- **Account address**: one wallet's activity.
| Group | Types |
| --- | --- |
@@ -121,8 +121,8 @@ nothing to index; the feed is a record of trades that happened.
## How the figures are computed
-**Windows.** Volume and price change come in three rolling windows — `24h`, `7d` and `30d`,
-measured back from the moment the summary was last recomputed — plus an all-time total.
+**Windows.** Volume and price change come in three rolling windows (`24h`, `7d` and `30d`,
+measured back from the moment the summary was last recomputed) plus an all-time total.
**Everything is aggregated in AE, then converted.** Per-pair volumes are summed, converted to an
AE amount using the pair's own reserve ratio and token decimals, and only then multiplied by the
@@ -170,7 +170,7 @@ See [the full comparison](/defi) on the DeFi overview.
## Related
-- [Swapping](/defi/swap) — pick a pair here, then trade it.
-- [Liquidity Pools](/defi/pools) — check a pool's depth and volume before providing.
-- [DEX API](/api-reference/dex) — the full REST reference for these endpoints.
-- [Bonding curves](/tokens/bonding-curve) — the other market, and why its prices differ.
+- [Swapping](/defi/swap): pick a pair here, then trade it.
+- [Liquidity Pools](/defi/pools): check a pool's depth and volume before providing.
+- [DEX API](/api-reference/dex): the full REST reference for these endpoints.
+- [Bonding curves](/tokens/bonding-curve): the other market, and why its prices differ.
diff --git a/pages/defi/index.mdx b/pages/defi/index.mdx
index d3502a3..1bb3dd6 100644
--- a/pages/defi/index.mdx
+++ b/pages/defi/index.mdx
@@ -23,7 +23,7 @@ prices for the same token are independent, and nothing arbitrages them automatic
| Counterparty | The curve contract's reserve | Other liquidity providers |
| Contracts | `AffiliationBondingCurveTokenSale`, `BondingCurveExponential` | `AedexV2Router`, `AedexV2Factory`, `AedexV2Pair` |
| Fee | 1% spread, split 0.5% DAO and 0.5% affiliation | 0.3% per swap, to liquidity providers |
-| Can it run out of liquidity | No — the reserve always covers the full supply | Yes — a thin pool gives poor prices or no route |
+| Can it run out of liquidity | No: the reserve always covers the full supply | Yes: a thin pool gives poor prices or no route |
| Main risk | Price falls back down the curve | Price impact, no route, and impermanent loss if you provide liquidity |
The curve can always buy back its entire supply. A liquidity pool makes no such promise: if the
@@ -43,8 +43,8 @@ liquidity providers leave, there is no price to sell at.
| `/defi/explore/pools` | Every pair |
| `/defi/explore/pools/` | One pool's detail page |
| `/defi/explore/transactions` | Filterable feed of every DEX transaction |
-| `/defi/bridge` | Disabled — redirects to `/defi/swap` |
-| `/defi/buy-ae-with-eth` | Disabled — redirects to `/defi/swap` |
+| `/defi/bridge` | Disabled: redirects to `/defi/swap` |
+| `/defi/buy-ae-with-eth` | Disabled: redirects to `/defi/swap` |
`/swap`, `/pool`, `/explore` and `/pool/add-tokens` still resolve as legacy paths.
@@ -69,22 +69,22 @@ The app also reads a DEX indexer alongside the chain:
## In this section
-- [Swapping](/defi/swap) — the swap form, how a route is chosen, the router entrypoints behind
+- [Swapping](/defi/swap): the swap form, how a route is chosen, the router entrypoints behind
each swap shape, and what slippage and deadline do.
-- [Liquidity Pools](/defi/pools) — adding and removing liquidity, LP tokens, the protocol-fee
+- [Liquidity Pools](/defi/pools): adding and removing liquidity, LP tokens, the protocol-fee
switch, and impermanent loss with a worked example.
-- [Wrapped AE](/defi/wrapped-ae) — why native AE cannot be a pool reserve, and the wrap and
+- [Wrapped AE](/defi/wrapped-ae): why native AE cannot be a pool reserve, and the wrap and
unwrap calls.
-- [Bridging from Ethereum](/defi/bridge) — the in-app bridge is currently disabled.
-- [Exploring the DEX](/defi/explore) — the three explore views and the `/api/dex/*` endpoints
+- [Bridging from Ethereum](/defi/bridge): the in-app bridge is currently disabled.
+- [Exploring the DEX](/defi/explore): the three explore views and the `/api/dex/*` endpoints
behind them.
-- [Buying AE](/defi/buy-ae) — where to earn or buy AE.
+- [Buying AE](/defi/buy-ae): where to earn or buy AE.
## Related
-- [Bonding curves](/tokens/bonding-curve) — the other market, and the one most Superhero tokens trade on.
-- [Buying and selling tokens](/tokens/buying-and-selling) — the curve-side trade flow.
-- [AEX-9 tokens](/wallets/aex9-tokens) — the token standard every DEX asset conforms to.
-- [DEX API](/api-reference/dex) — the REST surface for tokens, pairs and transactions.
-- [Superhero DEX on the æternity docs hub](https://docs.aeternity.com/aeternity-user-tools-and-services/superhero-dex) — æternity's description of the exchange.
-- [dex-contracts-v2](https://github.com/aeternity/dex-contracts-v2) — the AMM contracts and their ACIs.
+- [Bonding curves](/tokens/bonding-curve): the other market, and the one most Superhero tokens trade on.
+- [Buying and selling tokens](/tokens/buying-and-selling): the curve-side trade flow.
+- [AEX-9 tokens](/wallets/aex9-tokens): the token standard every DEX asset conforms to.
+- [DEX API](/api-reference/dex): the REST surface for tokens, pairs and transactions.
+- [Superhero DEX on the æternity docs hub](https://docs.aeternity.com/aeternity-user-tools-and-services/superhero-dex): æternity's description of the exchange.
+- [dex-contracts-v2](https://github.com/aeternity/dex-contracts-v2): the AMM contracts and their ACIs.
diff --git a/pages/defi/pools.mdx b/pages/defi/pools.mdx
index 25ac426..36b9058 100644
--- a/pages/defi/pools.mdx
+++ b/pages/defi/pools.mdx
@@ -7,7 +7,7 @@ description: "Provide liquidity, earn the 0.3% swap fee, value your position, an
Providing liquidity means depositing both sides of a pair into a pool and receiving LP tokens
that represent your share of it. In exchange you earn the 0.3% fee on every swap that routes
-through your pool — all of it unless the factory's protocol-fee switch is on. You also take on
+through your pool, all of it unless the factory's protocol-fee switch is on. You also take on
impermanent loss, worked through below with real numbers.
Manage positions at `https://superhero.com/defi/pool`: the add or remove form is on the left and
@@ -35,7 +35,7 @@ yourShare = lpMinted / totalSupply × 100
The `min` is why an off-ratio deposit wastes the larger side: the smaller ratio sets the mint.
Minimum amounts are your desired amounts minus your slippage tolerance, clamped to at least one
-aetto. The deadline is `Date.now()` plus your configured minutes, in milliseconds — every router
+aetto. The deadline is `Date.now()` plus your configured minutes, in milliseconds. Every router
entrypoint checks `require(deadline >= Chain.timestamp, "AedexV2Router: EXPIRED")`, and Sophia's
`Chain.timestamp` is unix time in milliseconds.
@@ -113,7 +113,7 @@ The contracts carry a protocol-fee switch of the kind Uniswap V2 has. It is off
`set_fee_to` or hand the role on with `set_fee_to_setter`; anyone else gets
`AedexV2Factory: FORBIDDEN`.
- **Each pair asks the factory on liquidity events only.** `mint_fee` runs at the top of `mint`
- and `burn` — never during a swap — and reads `factory.fee_to()`.
+ and `burn` (never during a swap) and reads `factory.fee_to()`.
When that returns `Some(fee_to)`, the pair mints new LP tokens to it:
@@ -141,8 +141,8 @@ providers keep the whole 0.3%.
`k_last` holds `reserve0 * reserve1` as of immediately after the most recent liquidity event, is
written only while the fee is on, and is zeroed the first time `mint_fee` runs with the fee off.
-While the switch is off, `k_last()` reads `0` on every pair that has seen a liquidity event —
-a cheap way to check the regime from outside. For the current value of `k`, multiply the two
+While the switch is off, `k_last()` reads `0` on every pair that has seen a liquidity event,
+which is a cheap way to check the regime from outside. For the current value of `k`, multiply the two
reserves.
## The pair contract
@@ -154,13 +154,13 @@ is a plain entrypoint:
| --- | --- |
| `get_reserves()` | A record of `reserve0`, `reserve1` and `block_timestamp_last` |
| `total_supply()` | LP tokens outstanding, including the locked `min_liquidity` |
-| `minimum_liquidity()` | The pair's locked floor — 1000 unless overridden at creation |
+| `minimum_liquidity()` | The pair's locked floor: 1000 unless overridden at creation |
| `k_last()` | The fee bookmark above; `0` while the protocol fee is off |
| `price0_cumulative_last()`, `price1_cumulative_last()` | TWAP accumulators |
| `token0()`, `token1()` | The two token contracts, sorted by contract address |
| `factory()` | The factory that created this pair |
| `meta_info()` | The LP token's own `name`, `symbol` and `decimals` |
-| `aex9_extensions()` | `["allowances"]` — LP tokens are not mintable or burnable from outside |
+| `aex9_extensions()` | `["allowances"]`: LP tokens are not mintable or burnable from outside |
The LP token's metadata is composed from the two underlying tokens: `name` is
`" vs "`, `symbol` is `"/"`, and `decimals` is always **18**
@@ -169,7 +169,7 @@ regardless of what the two sides use.
**Reserves are a cache.** `reserve0` and `reserve1` are a snapshot the pair rewrites at the end of
every `mint`, `burn`, `swap` and `sync`. The authoritative numbers are the pair's actual AEX-9
balances, and the two diverge whenever tokens arrive at the pair address without an entrypoint
-call — `swap` relies on exactly that gap to work out what you paid in. Two entrypoints reconcile
+call. `swap` relies on exactly that gap to work out what you paid in. Two entrypoints reconcile
them, and anyone may call either:
- `sync()` raises reserves to match balances, so a stray transfer becomes everyone's.
@@ -177,8 +177,8 @@ them, and anyone may call either:
Tokens sent directly to a pair address are therefore not a donation to the pool: until somebody
calls `sync`, anyone can take them with `skim`. Always add liquidity through the router.
-`burn` divides by balances rather than reserves — `amount0 = liquidity * balance0 / total_supply`
-— and under normal conditions the two are equal.
+`burn` divides by balances rather than reserves (`amount0 = liquidity * balance0 / total_supply`),
+and under normal conditions the two are equal.
**The price accumulators are oracle inputs.** On the first state change in each new block
timestamp, the pair adds the reserve ratio in UQ112x112 fixed point, multiplied by the elapsed
@@ -195,7 +195,7 @@ and its power is limited to `set_fee_to` and `set_fee_to_setter`.
1. Press **Remove** on a position card.
2. Choose how much to withdraw. A full removal uses your raw on-chain LP balance, so no dust is
left behind by rounding.
-3. Approve the **LP token** for the router — removal needs an allowance on the pair contract
+3. Approve the **LP token** for the router. Removal needs an allowance on the pair contract
itself, not on the two underlying tokens.
4. Confirm.
@@ -205,7 +205,7 @@ and its power is limited to `set_fee_to` and `set_fee_to_setter`.
| Token + native AE | `remove_liquidity_ae(token, liquidity, amount_token_min, amount_ae_min, to, deadline)` |
The allowance goes on the pair contract because the router calls
-`pair.transfer_allowance(Call.caller, pair.address, liquidity)` — it moves your LP tokens to the
+`pair.transfer_allowance(Call.caller, pair.address, liquidity)`. It moves your LP tokens to the
pair itself, and the pair burns whatever it finds in its own balance.
`remove_liquidity_ae` is `remove_liquidity` with the router as the recipient, followed by
@@ -220,7 +220,7 @@ Slippage above 100% or below 0 is rejected client-side on both add and remove.
Impermanent loss is the gap between what your deposit is worth inside a pool and what the same
tokens would be worth if you had held them. It appears whenever the *relative* price of the two
-assets moves, and it is a loss against holding, not an absolute loss — the pool can be up in
+assets moves, and it is a loss against holding, not an absolute loss: the pool can be up in
dollar terms while underperforming a wallet.
### Why it happens
@@ -252,7 +252,7 @@ Position value in the pool
plus + 141.42 USDC
= 282.84 USDC
-Had you simply held
+Had you just held
1,000 WAE × 0.20 = 200.00 USDC
plus 100 USDC + 100.00 USDC
= 300.00 USDC
@@ -261,7 +261,7 @@ Impermanent loss = 282.84 − 300.00 = −17.16 USDC
= −5.72% against holding
```
-You went in with 1,000 WAE and came out with 707 — the pool sold your appreciating asset all the
+You went in with 1,000 WAE and came out with 707. The pool sold your appreciating asset all the
way up. You ended up with more USDC, but not enough to compensate.
### The general formula
@@ -286,7 +286,7 @@ d = 5.00 → −25.46%
### Fees are the other side of the trade
-Impermanent loss is the cost of providing liquidity; the swap fee is the revenue — the full 0.3%
+Impermanent loss is the cost of providing liquidity; the swap fee is the revenue: the full 0.3%
while the protocol-fee switch is off, 0.25% if it is turned on. A pool with heavy volume and a
stable price ratio is profitable; a pool with thin volume and a volatile ratio is not. Before
committing, compare the pair's volume against its price movement on
@@ -307,8 +307,8 @@ committing, compare the pair's volume against its price movement on
## Related
-- [Swapping](/defi/swap) — the trades your pool earns fees from, and where price impact comes from.
-- [Wrapped AE](/defi/wrapped-ae) — why an "AE pool" is really a WAE pool.
-- [Exploring the DEX](/defi/explore) — check a pair's depth and volume before providing.
-- [Token risks](/tokens/risks) — the risks of the underlying assets you would be pooling.
-- [What is impermanent loss? (Uniswap Labs)](https://support.uniswap.org/hc/en-us/articles/20904453751693-What-is-Impermanent-Loss) — the same mechanism on a constant-product AMM.
+- [Swapping](/defi/swap): the trades your pool earns fees from, and where price impact comes from.
+- [Wrapped AE](/defi/wrapped-ae): why an "AE pool" is really a WAE pool.
+- [Exploring the DEX](/defi/explore): check a pair's depth and volume before providing.
+- [Token risks](/tokens/risks): the risks of the underlying assets you would be pooling.
+- [What is impermanent loss? (Uniswap Labs)](https://support.uniswap.org/hc/en-us/articles/20904453751693-What-is-Impermanent-Loss): the same mechanism on a constant-product AMM.
diff --git a/pages/defi/swap.mdx b/pages/defi/swap.mdx
index 66123d2..33d9486 100644
--- a/pages/defi/swap.mdx
+++ b/pages/defi/swap.mdx
@@ -11,7 +11,7 @@ router, and submits one of six swap entrypoints depending on whether native AE i
This is not the bonding curve. Buying a community token on its own page mints new supply against
a fixed formula; swapping here moves tokens between pool reserves. The two prices for the same
-token are unrelated — see [the comparison table](/defi).
+token are unrelated; see [the comparison table](/defi).
## The form
@@ -66,7 +66,7 @@ is the difference between a bad fill and a rejected transaction.
5. **No path, no quote.** If all of that fails, the quote errors with "No route found".
Routes are at most two pairs long: direct, or through a single intermediate token. The on-chain
-fallback has the same ceiling — direct, or one hop through WAE. If two tokens are only reachable
+fallback has the same ceiling: direct, or one hop through WAE. If two tokens are only reachable
through three pools, the swap form reports no route; make the intermediate swap yourself.
## How the quote is produced
@@ -145,7 +145,7 @@ switches it on. That switch is off by default and is described under
rather than deducted from your trade.
Because the fee is inside the invariant, it is already reflected in the router's
-`get_amounts_out` answer — it is not a separate line item. On top of it you pay the ordinary
+`get_amounts_out` answer and is not a separate line item. On top of it you pay the ordinary
æternity transaction fee, plus a second transaction fee if an allowance approval is needed.
## Approvals
@@ -183,7 +183,7 @@ address. An AE-to-AE route is rejected as invalid.
`callback_opt` is `option(IAedexV2Callback)`: an optional contract the pair calls back into, via
`aedex_v2_call(sender, amount0_out, amount1_out)`, after it has optimistically transferred the
-output but before it checks the invariant. That is the flash-swap hook — a contract can receive
+output but before it checks the invariant. That is the flash-swap hook: a contract can receive
the output first and supply the input during the callback. Superhero always passes `None`.
The AE-side entrypoints do the wrapping for you. `swap_exact_ae_for_tokens` and
@@ -201,7 +201,7 @@ Router and factory addresses for both networks are in the [deployment table](/de
| --- | --- |
| "No route found" | No pool connects the two tokens, directly or through WAE |
| Quote shows but the swap reverts | The pool moved past your slippage bound, or the deadline passed |
-| A large price impact warning | The pool is thin relative to your trade size — split it or pick another route |
+| A large price impact warning | The pool is thin relative to your trade size; split it or pick another route |
| "Exceeds available liquidity" | Your input is larger than the first hop's input reserve |
| Two wallet prompts for one swap | The first is the AEX-9 allowance approval |
| Insufficient balance error | Checked client-side before submission, against the input token's balance |
@@ -214,16 +214,16 @@ When the revert comes from the chain, the abort string names the check that fail
| `AedexV2Router: INSUFFICIENT_OUTPUT_AMOUNT` | An exact-in swap would have returned less than `amount_out_min` |
| `AedexV2Router: EXCESSIVE_INPUT_AMOUNT` | An exact-out swap would have cost more than `amount_in_max` |
| `AedexV2Library: NO_PAIR_FOUND` | A hop in the path has no pair contract |
-| `AedexV2Library: INSUFFICIENT_LIQUIDITY` | A hop's reserves are zero — the pool is empty or one-sided |
+| `AedexV2Library: INSUFFICIENT_LIQUIDITY` | A hop's reserves are zero: the pool is empty or one-sided |
| `AedexV2Router: INVALID_PATH_FIRST` / `INVALID_PATH_LAST` | An AE entrypoint was called with a path that does not start or end at WAE |
-| `AedexV2Pair: INSUFFICIENT_BALANCE` | The pair's own invariant check failed — the input never arrived, or the fee was short |
+| `AedexV2Pair: INSUFFICIENT_BALANCE` | The pair's own invariant check failed: the input never arrived, or the fee was short |
The first three are the ordinary ones and mean the market moved. The last is a contract-level
safety net you should not normally reach through the app.
## Swap from a script
-The agent skill's `superhero-token-swap.mjs` trades on the bonding curve, not the DEX — its `buy`,
+The agent skill's `superhero-token-swap.mjs` trades on the bonding curve, not the DEX. Its `buy`,
`sell` and `price` commands call the token sale contract. To swap on the AMM programmatically,
initialise the router with the `AedexV2Router` ACI from `dex-contracts-v2` and call the
entrypoints in the table above. The router also exposes the pricing library as read-only
@@ -235,16 +235,16 @@ entrypoints, so you can quote without holding anything:
| `get_amounts_in(amount_out, path)` | Exact-out quote across the whole route |
| `get_amount_out(amount_in, reserve_in, reserve_out)` | One hop, from reserves you already have |
| `get_amount_in(amount_out, reserve_in, reserve_out)` | One hop, inverted |
-| `quote(amount_a, reserve_a, reserve_b)` | The fee-free ratio — for liquidity math, not for swaps |
+| `quote(amount_a, reserve_a, reserve_b)` | The fee-free ratio: for liquidity math, not for swaps |
`quote` is `amount_a * reserve_b / reserve_a` with no fee applied, because it prices the second
side of a liquidity deposit. Do not use it to predict a swap.
## Related
-- [Liquidity Pools](/defi/pools) — the other side of every swap, and where the 0.3% goes.
-- [Wrapped AE](/defi/wrapped-ae) — the 1:1 shortcut the swap form takes for AE and WAE.
-- [Exploring the DEX](/defi/explore) — finding a pair and checking its depth before you trade.
-- [Bonding curve fees and slippage](/tokens/fees-and-slippage) — the equivalent mechanics on the curve side.
-- [DEX API](/api-reference/dex) — the `/api/dex/*` endpoints, including swap routes.
-- [dex-contracts-v2](https://github.com/aeternity/dex-contracts-v2) — the router, factory and pair contracts, with their ACIs.
+- [Liquidity Pools](/defi/pools): the other side of every swap, and where the 0.3% goes.
+- [Wrapped AE](/defi/wrapped-ae): the 1:1 shortcut the swap form takes for AE and WAE.
+- [Exploring the DEX](/defi/explore): finding a pair and checking its depth before you trade.
+- [Bonding curve fees and slippage](/tokens/fees-and-slippage): the equivalent mechanics on the curve side.
+- [DEX API](/api-reference/dex): the `/api/dex/*` endpoints, including swap routes.
+- [dex-contracts-v2](https://github.com/aeternity/dex-contracts-v2): the router, factory and pair contracts, with their ACIs.
diff --git a/pages/defi/wrapped-ae.mdx b/pages/defi/wrapped-ae.mdx
index 0074933..3990f49 100644
--- a/pages/defi/wrapped-ae.mdx
+++ b/pages/defi/wrapped-ae.mdx
@@ -7,7 +7,7 @@ description: "Why native AE cannot be pooled directly, and how to wrap and unwra
WAE is an AEX-9 token contract that holds AE and issues an equal balance of WAE against it. It
exists because the DEX cannot work with native AE directly. Wrapping and unwrapping is always
-1:1 with no price impact and no swap fee — you pay only the æternity transaction fee.
+1:1 with no price impact and no swap fee. You pay only the æternity transaction fee.
Wrap and unwrap at `https://superhero.com/defi/wrap`.
@@ -27,7 +27,7 @@ each.
- A pair contract cannot hold a reserve of native AE the way it holds a token balance.
- Native AE has no allowance mechanism, and the router moves your tokens by spending an
allowance you granted it.
-- The AMM's arithmetic — reserves, total supply, LP mint — is written against token balances and
+- The AMM's arithmetic (reserves, total supply, LP mint) is written against token balances and
expects both sides to behave identically.
Wrapping solves all three. Deposit AE into the WAE contract and you hold an AEX-9 balance that is
@@ -62,10 +62,10 @@ nothing to pay the transaction fee with. Wrap slightly less than the maximum.
| `deposit()` | Payable. Credits `Call.value` to `Call.caller` and emits `Deposit` |
| `deposit_to(to)` | Payable. Credits `Call.value` to `to`, emitting `Deposit` and `Transfer` |
| `withdraw(amount)` | Debits `Call.caller`, then `Chain.spend(Call.caller, amount)` and emits `Withdrawal` |
-| `total_supply()` | Returns `Contract.balance` — the contract's own AE balance, not a stored counter |
+| `total_supply()` | Returns `Contract.balance`: the contract's own AE balance, not a stored counter |
- **`withdraw` always pays the caller.** There is no recipient argument, which is why the router
- unwraps into itself and then does a separate `Chain.spend(to, amount)` — see the AE-side swap
+ unwraps into itself and then does a separate `Chain.spend(to, amount)`. See the AE-side swap
entrypoints on [Swapping](/defi/swap).
- **The peg cannot drift.** `total_supply()` is the contract's AE balance, so total WAE issued and
AE held are the same number by construction. There is no oracle and no redemption queue.
@@ -75,23 +75,23 @@ nothing to pay the transaction fee with. Wrap slightly less than the maximum.
entrypoint.
Its metadata is fixed: `name` "Wrapped Aeternity", `symbol` "WAE", `decimals` 18. It declares
-`aex9_extensions() = ["allowances"]` — no minting or burning, because `deposit` and `withdraw` are
+`aex9_extensions() = ["allowances"]`: no minting or burning, because `deposit` and `withdraw` are
the only ways supply changes.
## When the app wraps for you
You rarely need to wrap manually:
-- **Swapping with native AE on either side.** The router's AE-specific entrypoints —
- `swap_exact_ae_for_tokens`, `swap_ae_for_exact_tokens`, `swap_exact_tokens_for_ae`,
- `swap_tokens_for_exact_ae` — wrap or unwrap internally. Route-finding substitutes the WAE
+- **Swapping with native AE on either side.** The router's AE-specific entrypoints
+ (`swap_exact_ae_for_tokens`, `swap_ae_for_exact_tokens`, `swap_exact_tokens_for_ae`,
+ `swap_tokens_for_exact_ae`) wrap or unwrap internally. Route-finding substitutes the WAE
address for AE before looking anything up, so a route quoted as "AE to X" is "WAE to X".
- **Adding or removing liquidity on an AE pair.** `add_liquidity_ae` and `remove_liquidity_ae`
take native AE as call value and handle the wrapping.
- **Selecting AE and WAE as the two sides of a swap.** The swap form turns this into a wrap or
unwrap at 1:1 with zero price impact rather than routing it.
-Wrap manually when you want to hold WAE as a token — to grant a router allowance up front, or to
+Wrap manually when you want to hold WAE as a token: to grant a router allowance up front, or to
interact with a pair contract directly. WAE shows up in your wallet as an ordinary AEX-9 token
and may need to be added manually in some wallets.
@@ -100,8 +100,8 @@ WAE wraps the chain's own coin; aeETH represents Ethereum-side value moved acros
## Related
-- [Swapping](/defi/swap) — where the automatic wrapping happens, and the AE-specific router entrypoints.
-- [Liquidity Pools](/defi/pools) — every AE pool is a WAE pool.
-- [DeFi & DEX overview](/defi) — contract addresses for both networks in one table.
-- [AEX-9 tokens](/wallets/aex9-tokens) — the standard WAE implements.
-- [dex-contracts-v2](https://github.com/aeternity/dex-contracts-v2) — the WAE contract and its ACI.
+- [Swapping](/defi/swap): where the automatic wrapping happens, and the AE-specific router entrypoints.
+- [Liquidity Pools](/defi/pools): every AE pool is a WAE pool.
+- [DeFi & DEX overview](/defi): contract addresses for both networks in one table.
+- [AEX-9 tokens](/wallets/aex9-tokens): the standard WAE implements.
+- [dex-contracts-v2](https://github.com/aeternity/dex-contracts-v2): the WAE contract and its ACI.
diff --git a/pages/getting-started/claim-name.mdx b/pages/getting-started/claim-name.mdx
index 13446d0..19ac466 100644
--- a/pages/getting-started/claim-name.mdx
+++ b/pages/getting-started/claim-name.mdx
@@ -12,8 +12,8 @@ the name's length decides whether yours is free.
## The two rules
- **The name must be longer than 12 characters**, excluding the `.chain` suffix. Names of 12
- characters or fewer go to auction instead of registering instantly — an AENS protocol rule.
-- **One sponsored claim per address.** Further names are claimed directly in Superhero Wallet — the
+ characters or fewer go to auction instead of registering instantly. This is an AENS protocol rule.
+- **One sponsored claim per address.** Further names are claimed directly in Superhero Wallet: the
browser extension, the mobile app, or the web wallet at `wallet.superhero.com`.
The claim field shows a live counter against 13 characters as you type.
@@ -29,8 +29,8 @@ most 63 characters. The app validates this before you can submit.
2. Type the name you want. The field checks availability as you type and shows whether the name is
sponsored (**Free**) or has a price.
3. A name of 13 or more characters shows **Free**. A shorter one shows an approximate AE price with
- the note *"Paid from your wallet"* — the self-funded path, not the sponsored one.
-4. Press **Claim**. Your wallet asks you to sign a message — this proves you control the address
+ the note *"Paid from your wallet"*, which marks the self-funded path, not the sponsored one.
+4. Press **Claim**. Your wallet asks you to sign a message. This proves you control the address
without spending anything.
5. The app reports *"Claim submitted. Waiting for sponsorship and transfer…"* and tracks the
claim's progress.
@@ -43,7 +43,7 @@ Superhero's backend executes the sponsored claim on your behalf and reports each
| --- | --- |
| `wallet` | You sign the challenge message in your wallet |
| `queued` | The signed claim is accepted and queued |
-| `preclaim` | The commitment transaction is submitted — AENS requires this to prevent front-running |
+| `preclaim` | The commitment transaction is submitted; AENS requires this to prevent front-running |
| `claim` | The name is claimed in a later block |
| `update` | The name's pointer is set |
| `transfer` | The name is transferred to **your** address |
@@ -55,7 +55,7 @@ not Superhero's.
For a name short enough to pay for, the figure shown is the **preclaim transaction fee plus the
claim's execution cost**, which includes the protocol's minimum name fee for a name of that length.
-Short names are expensive by design — that is how AENS allocates scarce names, and why the free tier
+Short names are expensive by design. That is how AENS allocates scarce names, and why the free tier
starts at 13 characters.
### Errors you may see
@@ -103,7 +103,7 @@ The rest of the command surface:
Names are lowercased and get `.chain` appended automatically if you leave it off. Registration
costs gas plus the name fee, so run `available` first.
-The script targets **mainnet** — see [Using Testnet](/getting-started/testnet).
+The script targets **mainnet**. See [Using Testnet](/getting-started/testnet).
## Short names
@@ -112,13 +112,13 @@ rejects it, the sponsored-claim backend requires at least 13 characters (and res
`[a-z0-9-]`), and the agent CLI aborts with `name_too_short_auction_required`.
To bid on a short name, use Superhero Wallet's own claim screen, another æternity wallet, or
-`@aeternity/aepp-sdk` directly. [AENS on æternity](/aeternity/aens) covers the auction — including
-the Ceres rule that every bid extends the auction by up to 120 key blocks — and
+`@aeternity/aepp-sdk` directly. [AENS on æternity](/aeternity/aens) covers the auction (including
+the Ceres rule that every bid extends the auction by up to 120 key blocks) and
`getMinimumNameFee(name)` as the way to compute a starting bid.
## Superhero Wallet's name manager
-The standalone wallet — extension, mobile app, or `wallet.superhero.com` — has a full AENS section
+The standalone wallet (extension, mobile app, or `wallet.superhero.com`) has a full AENS section
under **Account details → Names**, with three tabs:
| Tab | What it does |
@@ -137,7 +137,7 @@ your names and sends a `NameUpdateTx` for any that is auto-extending, unexpired,
**17,000 blocks** of its expiry height. The same window drives an **Expiring** badge in the names
list.
-The wallet has to be running for the check to happen — it is a client-side timer, not a service —
+The wallet has to be running for the check to happen, because it is a client-side timer rather than a service,
and each extension costs a transaction fee. superhero.com itself does not renew names or warn you
about expiry.
@@ -151,14 +151,14 @@ control.
appears instead of your address across the app.
**Keep it alive.** AENS names have a time to live measured in blocks and expire if not extended. Use
-`extend` before the expiry height, which `available` reports as `expires_at_height` — or hold the
+`extend` before the expiry height, which `available` reports as `expires_at_height`, or hold the
name in Superhero Wallet with auto-extend on.
## Related
-- [Chain Names](/identity/chain-names) — how names integrate with Superhero identity and profiles.
-- [Superhero ID](/identity/superhero-id) — the wider identity model a name plugs into.
-- [AENS on æternity](/aeternity/aens) — the naming system at the protocol level, including auctions.
-- [Profiles](/identity/profiles) — linking the name as your preferred name.
-- [Web Wallet](/wallets/web-wallet) — the no-install surface where the name manager is available.
-- [æternity Naming System documentation](https://docs.aeternity.com/aeternity-developer-tools/protocol/utility-features/aeternity-naming-system-aens) — the upstream specification.
+- [Chain Names](/identity/chain-names): how names integrate with Superhero identity and profiles.
+- [Superhero ID](/identity/superhero-id): the wider identity model a name plugs into.
+- [AENS on æternity](/aeternity/aens): the naming system at the protocol level, including auctions.
+- [Profiles](/identity/profiles): linking the name as your preferred name.
+- [Web Wallet](/wallets/web-wallet): the no-install surface where the name manager is available.
+- [æternity Naming System documentation](https://docs.aeternity.com/aeternity-developer-tools/protocol/utility-features/aeternity-naming-system-aens): the upstream specification.
diff --git a/pages/getting-started/create-account.mdx b/pages/getting-started/create-account.mdx
index f41f058..5c8aafa 100644
--- a/pages/getting-started/create-account.mdx
+++ b/pages/getting-started/create-account.mdx
@@ -16,7 +16,7 @@ still have it.
| --- | --- |
| Email address on the account | Your address is your identity; a `.chain` name makes it readable |
| Password to reset | You keep a recovery phrase, or a passkey, or both |
-| Anyone who can restore access for you | Your backup is the only restore path — see [Backup & Recovery](/wallets/backup-and-recovery) |
+| Anyone who can restore access for you | Your backup is the only restore path; see [Backup & Recovery](/wallets/backup-and-recovery) |
| Account deletion | Posts and transactions are permanent on chain |
| Server that stores your key | Nothing leaves your device |
@@ -52,7 +52,7 @@ This is a real backup **only if your passkey syncs** (iCloud Keychain, Google Pa
device-bound credential such as Windows Hello dies with its device, and the app has no phrase
reveal or export screen.
-If the option is greyed out, this device or browser cannot create a platform passkey — use a
+If the option is greyed out, this device or browser cannot create a platform passkey; use a
recovery phrase instead. If tapping it does nothing at all, see
[Troubleshooting](/wallets/troubleshooting).
@@ -64,13 +64,13 @@ device, with or without biometrics.
1. **The phrase is shown.** Write it down by hand. Do not screenshot it.
2. **The phrase is verified.** You re-enter the words. Nothing is stored until this passes.
3. **You set a passphrase.** It encrypts the wallet on this device. The app scores it locally and
- requires a genuinely unguessable one — a numeric PIN is rejected. Take the **generated
+ requires a genuinely unguessable one, so a numeric PIN is rejected. Take the **generated
five-word passphrase** unless you have a reason not to. The passphrase cannot be changed later;
changing it means recreating the wallet from the phrase.
4. **The wallet is created** and your first address is derived.
-5. **A device passkey is offered.** Optional — with it you stop typing the passphrase for every
+5. **A device passkey is offered.** Optional. With it you stop typing the passphrase for every
signature.
-6. **A recovery code is shown once.** Mandatory. It is a 128-bit code that unlocks this device's
+6. **A recovery code is shown once.** Mandatory. It is a 128-bit code that opens this device's
wallet if your passphrase is forgotten or your passkey stops working. Save it somewhere other
than where you put the phrase.
@@ -87,13 +87,13 @@ so a mistyped word is rejected rather than silently creating a different, empty
Choose **Restore a wallet you created with a passkey**. The ceremony derives the wallet your passkey
implies and **shows you the address before saving anything**, together with a check of whether that
-address has on-chain history. If it reports no activity, stop — you probably picked the wrong
+address has on-chain history. If it reports no activity, stop: you probably picked the wrong
passkey. Details in [Backup & Recovery](/wallets/backup-and-recovery).
### Coming back later
If this device already has a wallet, Connect shows either *"Your wallet is ready"* or *"Finish
-setting up your wallet"*. The second appears when the recovery code was never enrolled — for
+setting up your wallet"*. The second appears when the recovery code was never enrolled, for
example after a reload mid-flow. Finish it: on a passkey wallet that code is the only factor that
survives a passkey rekey.
@@ -150,7 +150,7 @@ roughly seven days without interaction. Once it is gone:
- your **recovery code** opens nothing,
- a passkey belonging to a *phrase-created* wallet opens nothing.
-What survives is the written recovery phrase, or — on a passkey-created wallet — a passkey that
+What survives is the written recovery phrase or, on a passkey-created wallet, a passkey that
syncs. The full matrix is in
[The Built-In Wallet](/wallets/built-in-wallet#what-clearing-site-data-destroys).
@@ -164,8 +164,8 @@ Accounts held in Superhero Wallet or in an agent's environment variable are unaf
## Related
-- [The Built-In Wallet](/wallets/built-in-wallet) — what the in-app flow created, and where it lives.
-- [Backup & Recovery](/wallets/backup-and-recovery) — do this before funding the account.
-- [Choosing a Wallet](/wallets/choosing-a-wallet) — if you are still deciding between the paths above.
-- [Accounts and Keys](/aeternity/accounts-and-keys) — what an `ak_` address is at the protocol level.
-- [Superhero Wallet](https://wallet.superhero.com/) — create one in the hosted wallet with no install.
+- [The Built-In Wallet](/wallets/built-in-wallet): what the in-app flow created, and where it lives.
+- [Backup & Recovery](/wallets/backup-and-recovery): do this before funding the account.
+- [Choosing a Wallet](/wallets/choosing-a-wallet): if you are still deciding between the paths above.
+- [Accounts and Keys](/aeternity/accounts-and-keys): what an `ak_` address is at the protocol level.
+- [Superhero Wallet](https://wallet.superhero.com/): create one in the hosted wallet with no install.
diff --git a/pages/getting-started/first-post.mdx b/pages/getting-started/first-post.mdx
index 3f141e9..65061dd 100644
--- a/pages/getting-started/first-post.mdx
+++ b/pages/getting-started/first-post.mdx
@@ -15,11 +15,11 @@ post costs gas and nothing else.
2. Press **Connect** and connect your wallet.
3. Click into the composer at the top of the feed and type. The limit is **280 characters**.
4. Add anything optional:
- - **Hashtags** — type `#` and a topic. Hashtags become the post's *topics*, which is how it gets
+ - **Hashtags**: type `#` and a topic. Hashtags become the post's *topics*, which is how it gets
found from a token page or a topic feed.
- - **Mentions** — type `@` for an account or `#` for a token to get an autocomplete list. The box
+ - **Mentions**: type `@` for an account or `#` for a token to get an autocomplete list. The box
shows a short display form; the full serialized reference is what gets stored.
- - **Media** — pick an image or a GIF, or paste a link and let the app render a preview card.
+ - **Media**: pick an image or a GIF, or paste a link and let the app render a preview card.
5. Press post. Your wallet opens a confirmation.
6. Approve it.
@@ -27,7 +27,7 @@ post costs gas and nothing else.
[Openverse](https://api.openverse.org/v1/images/) (commercially licensed, modifiable, non-mature
JPG and PNG) and the GIF button searches Giphy through the backend at `GET /api/giphy/search`.
What gets stored on chain is a URL. A post can never be edited, so an attachment that disappears
-from its host leaves a permanently broken link — put anything that matters in the text.
+from its host leaves a permanently broken link. Put anything that matters in the text.
The post appears in the feed **immediately**, before the indexer has caught up: the app shows an
optimistic post built from what it just submitted and keeps it until the indexed version arrives. A
@@ -50,9 +50,9 @@ post_without_tip(, )
- Each successful post emits a `PostWithoutTipReceived(author, title)` event, which is how indexers
and the feed learn about new content without polling.
-Superhero's built-in wallet names this in plain language rather than showing raw calldata —
-*"Publish a post — records this text on the Superhero content contract, publicly and permanently"*
-— with your exact text and media list as rows. The summary is generated by decoding the transaction
+Superhero's built-in wallet names this in plain language rather than showing raw calldata
+(*"Publish a post — records this text on the Superhero content contract, publicly and permanently"*),
+with your exact text and media list as rows. The summary is generated by decoding the transaction
you are about to sign.
### Cost
@@ -66,7 +66,7 @@ A comment is the same contract call. The app encodes the parent by prefixing the
`comment:`, so a reply is structurally a post that points at another one. The same
280-character limit applies.
-That is also why the legacy URL `/post/:slug/comment/:id` redirects to `/post/:id` — the comment
+That is also why the legacy URL `/post/:slug/comment/:id` redirects to `/post/:id`: the comment
has its own post page, with its ancestor chain rendered above it.
## Where the post ends up
@@ -76,10 +76,10 @@ has its own post page, with its ancestor chain rendered above it.
| The Superhero feed | Your post, with comments, tips and reactions |
| `/post/:slug` | Its own page, with the full thread |
| Your profile at `/users/:address` | Listed among your posts |
-| [aescan.io](https://aescan.io) | The underlying transaction — sender, contract, gas, block |
+| [aescan.io](https://aescan.io) | The underlying transaction: sender, contract, gas, block |
| The contract's own state | Reconstructable in full from `get_state()`, which returns every post |
-A post's id in Superhero's API carries a `_v3` suffix — the contract call result plus the contract
+A post's id in Superhero's API carries a `_v3` suffix: the contract call result plus the contract
version. That is the id the posts API and the comment encoding both use.
### Verify it independently
@@ -119,14 +119,14 @@ Then confirm it landed:
node scripts/superhero-read.mjs my-posts 5
```
-The script signs with `AE_PRIVATE_KEY` from the environment and targets mainnet — see
+The script signs with `AE_PRIVATE_KEY` from the environment and targets mainnet. See
[Using Testnet](/getting-started/testnet).
## Related
-- [Posting](/social/posting) — topics, mentions, media and moderation.
-- [Comments](/social/comments) — threading, and why a comment is a post.
-- [Delegated Posting](/social/delegated-posting) — the signature scheme in detail.
-- [The Tipping Contract](/contracts/tipping) — the contract reference for both entrypoints.
-- [Posting from an agent](/agents/posting) — the unattended version.
-- [aescan.io](https://aescan.io) — verify your post's transaction.
+- [Posting](/social/posting): topics, mentions, media and moderation.
+- [Comments](/social/comments): threading, and why a comment is a post.
+- [Delegated Posting](/social/delegated-posting): the signature scheme in detail.
+- [The Tipping Contract](/contracts/tipping): the contract reference for both entrypoints.
+- [Posting from an agent](/agents/posting): the unattended version.
+- [aescan.io](https://aescan.io): verify your post's transaction.
diff --git a/pages/getting-started/first-trade.mdx b/pages/getting-started/first-trade.mdx
index 8efc99b..a4490e3 100644
--- a/pages/getting-started/first-trade.mdx
+++ b/pages/getting-started/first-trade.mdx
@@ -18,19 +18,19 @@ market cap by default, so established communities surface first.
2. Choose the **Trade** tab. The token page's tabs are Feed, Trade, Info, Transactions and Holders;
the last three appear once the token exists on chain.
3. Press **Connect** if you have not already. Trading needs a connected account.
-4. Make sure **Buy** is selected, and enter an amount. The two fields are linked — type AE and it
+4. Make sure **Buy** is selected, and enter an amount. The two fields are linked: type AE and it
shows the tokens you would receive, or type tokens and it shows the AE required.
5. Read the quote. Check the slippage setting before you commit.
6. Press buy and **approve in your wallet**.
-7. The confirmation shows what you received, and — on a buy — any protocol DAO tokens minted to you
+7. The confirmation shows what you received, and, on a buy, any protocol DAO tokens minted to you
alongside.
### Selling is two transactions
Selling an AEX-9 token requires granting the sale contract an allowance first, so the app runs:
-1. **Approve allowance** — step 1 of 2.
-2. **Sell with the existing allowance** — step 2 of 2.
+1. **Approve allowance**: step 1 of 2.
+2. **Sell with the existing allowance**: step 2 of 2.
Buying is a single transaction: the AE rides along with the call, so there is nothing to
pre-approve.
@@ -44,9 +44,9 @@ your transaction landing in a block, other people's buys and sells move that sta
curve, the tokens you receive for a given amount of AE can be slightly fewer than quoted.
**The quote does not tick.** It is recomputed only when you change the amount or flip between Buy
-and Sell — not on an interval, and not when the token's supply changes underneath you. Retype the
-amount before you press Buy if the card has been open for a while, and treat the slippage setting —
-not the displayed number — as your actual protection.
+and Sell, not on an interval, and not when the token's supply changes underneath you. Retype the
+amount before you press Buy if the card has been open for a while, and treat the slippage setting,
+not the displayed number, as your actual protection.
### Slippage
@@ -94,15 +94,15 @@ the same amount loses about 1% before any price movement.
Buying also mints protocol-level DAO tokens to you, proportional to purchase activity. The
confirmation screen shows the amount and symbol. These are separate from the community token you
-bought — see [Protocol DAO](/dao/protocol-dao).
+bought; see [Protocol DAO](/dao/protocol-dao).
## What you are signing
Superhero's built-in wallet names the call rather than showing raw bytes:
-- **Buy tokens** — *"Spends the AE attached to this call to buy tokens from this sale contract."*
-- **Sell tokens** — *"Sells your tokens back to this sale contract for AE."*
-- **Lets another account spend your tokens up to this amount** — the allowance step of a sell.
+- **Buy tokens**: *"Spends the AE attached to this call to buy tokens from this sale contract."*
+- **Sell tokens**: *"Sells your tokens back to this sale contract for AE."*
+- **Lets another account spend your tokens up to this amount**: the allowance step of a sell.
Check two things on that screen every time: the **contract address** matches the token you meant,
and the **AE amount** is what you typed. Token amounts are shown in raw base units, not scaled by
@@ -112,13 +112,13 @@ the token's decimals, so count digits rather than eyeballing magnitude.
| Where | What it tells you |
| --- | --- |
-| **Transactions** tab on the token page | Recent buys and sells with timestamps and transaction hashes — yours should be at the top |
+| **Transactions** tab on the token page | Recent buys and sells with timestamps and transaction hashes; yours should be at the top |
| **Holders** tab | Top addresses and balances; your address should now appear |
| [aescan.io](https://aescan.io) | The raw transaction: sender, contract called, gas consumed, block |
| Your wallet | The token balance, discovered from the middleware's AEX-9 balance index |
If the token has not appeared in your wallet's list yet, that is an indexing delay rather than a
-failed trade — the transaction on aescan is authoritative. See
+failed trade. The transaction on aescan is authoritative. See
[Managing AEX-9 Tokens](/wallets/aex9-tokens) for how balance discovery works.
## Every token uses the same curve
@@ -132,13 +132,13 @@ minimum_count = 10^12 sell_return_percentage = 9950 sell_return_precision
```
Two tokens at the same supply cost exactly the same; a token's price says how much has been bought,
-nothing about how it was configured. `minimum_count = 10^12` aettos — 10^-6 of a token — is the
+nothing about how it was configured. `minimum_count = 10^12` aettos (10^-6 of a token) is the
smallest tradable amount; below it the call aborts with `MINIMUM_TOKENS_REQUIRED`. See
[Curve Parameters](/tokens/curve-parameters).
## Before you buy anything meaningful
-- Price is a function of supply, not of demand from a counterparty — an early buyer's gain comes
+- Price is a function of supply, not of demand from a counterparty. An early buyer's gain comes
from later buyers pushing along the curve.
- The 1% spread is a floor on round-trip cost.
- A community token is not equity and carries no claim on anything. Read
@@ -147,9 +147,9 @@ smallest tradable amount; below it the call aborts with `MINIMUM_TOKENS_REQUIRED
## Related
-- [Buying and Selling](/tokens/buying-and-selling) — the trade mechanics in full.
-- [Fees and Slippage](/tokens/fees-and-slippage) — the spread, the split and the tolerance parameter.
-- [The Bonding Curve](/tokens/bonding-curve) — why the price moves the way it does.
-- [The Token Page](/tokens/token-page) — every tab and chart on `/trends/tokens/:tokenName`.
-- [Token Risks](/tokens/risks) — read before the trade, not after.
-- [superhero.com/trends/tokens](https://superhero.com/trends/tokens) — the trending list.
+- [Buying and Selling](/tokens/buying-and-selling): the trade mechanics in full.
+- [Fees and Slippage](/tokens/fees-and-slippage): the spread, the split and the tolerance parameter.
+- [The Bonding Curve](/tokens/bonding-curve): why the price moves the way it does.
+- [The Token Page](/tokens/token-page): every tab and chart on `/trends/tokens/:tokenName`.
+- [Token Risks](/tokens/risks): read before the trade, not after.
+- [superhero.com/trends/tokens](https://superhero.com/trends/tokens): the trending list.
diff --git a/pages/getting-started/fund-wallet.mdx b/pages/getting-started/fund-wallet.mdx
index d42ada3..7470e3d 100644
--- a/pages/getting-started/fund-wallet.mdx
+++ b/pages/getting-started/fund-wallet.mdx
@@ -17,7 +17,7 @@ redirects to `/get-ae`.
| --- | --- |
| Publishing a post | Gas only. |
| Buying or selling a community token | The trade amount, plus fee and gas, plus a **1% curve spread** (0.5% to the community DAO, 0.5% to affiliation). |
-| Claiming a `.chain` name | Gas plus a **name price**, which for short names dwarfs the fee. Superhero sponsors one free claim per address — see [Claim Your .chain Name](/getting-started/claim-name). |
+| Claiming a `.chain` name | Gas plus a **name price**, which for short names dwarfs the fee. Superhero sponsors one free claim per address; see [Claim Your .chain Name](/getting-started/claim-name). |
| Voting in a DAO | Gas, plus an allowance transaction the first time. |
Two things worth knowing:
@@ -42,13 +42,13 @@ covers a first session without further thought.
## Earn it
-**Refer & Earn** — create invite links at [`/trends/invite`](https://superhero.com/trends/invite),
+**Refer & Earn.** Create invite links at [`/trends/invite`](https://superhero.com/trends/invite),
funded with AE, and share them. Someone who claims a link receives the funded reward. Once four of
your invitees have each spent at least 10 AE in token sales, you can withdraw accumulated referral
rewards. The affiliation system pays across four levels of the referral chain.
-**The Superhero Rewards Program** — milestones for verifying your X account, linking it to your
-Superhero ID on chain, and posting about Superhero with your referral link, unlocking up to 200 AE.
+**The Superhero Rewards Program.** Milestones for verifying your X account, linking it to your
+Superhero ID on chain, and posting about Superhero with your referral link, worth up to 200 AE in total.
Eligibility depends on on-chain activity and the program can be paused.
**Earn by posting on X** is live. Link your X account and make one qualifying post about Superhero
@@ -91,7 +91,7 @@ AE on the Superhero DEX.
The dedicated routes `/defi/bridge` and `/defi/buy-ae-with-eth` currently **redirect to
`/defi/swap`**. If you already hold æETH on æternity, the swap half works on
-[the DEX](https://superhero.com/defi/swap) — æETH has a deployed contract on both networks, listed
+[the DEX](https://superhero.com/defi/swap). æETH has a deployed contract on both networks, listed
in [Using Testnet](/getting-started/testnet).
## Check that it arrived
@@ -113,10 +113,10 @@ status before assuming anything is wrong on chain.
## Related
-- [Your First Trade](/getting-started/first-trade) — the first thing most people spend AE on.
-- [Your First Post](/getting-started/first-post) — the cheapest thing to spend it on.
-- [Invite Links](/rewards/invite-links) — the earn route in detail.
-- [Rewards Program](/rewards/rewards-program) — the milestones and what they pay.
-- [AE and Gas](/aeternity/ae-and-gas) — what you are paying for.
-- [Wrapped AE](/defi/wrapped-ae) — what æETH and WAE are.
-- [superhero.com/buy-ae](https://superhero.com/buy-ae) — the live page with the current provider list.
+- [Your First Trade](/getting-started/first-trade): the first thing most people spend AE on.
+- [Your First Post](/getting-started/first-post): the cheapest thing to spend it on.
+- [Invite Links](/rewards/invite-links): the earn route in detail.
+- [Rewards Program](/rewards/rewards-program): the milestones and what they pay.
+- [AE and Gas](/aeternity/ae-and-gas): what you are paying for.
+- [Wrapped AE](/defi/wrapped-ae): what æETH and WAE are.
+- [superhero.com/buy-ae](https://superhero.com/buy-ae): the live page with the current provider list.
diff --git a/pages/getting-started/index.mdx b/pages/getting-started/index.mdx
index a1be858..a610db4 100644
--- a/pages/getting-started/index.mdx
+++ b/pages/getting-started/index.mdx
@@ -6,29 +6,29 @@ description: "Go from zero to your first post, your first trade and your own .ch
# Getting Started
A Superhero account is a keypair you control. There is no signup form, no email and no password
-reset. The path below — get an account, fund it, post, trade — takes about twenty minutes and costs
+reset. The path below (get an account, fund it, post, trade) takes about twenty minutes and costs
a fraction of an AE in fees.
## The path
| Step | Page | Time |
| --- | --- | --- |
-| 0 | [Quickstart](/getting-started/quickstart) — the whole path on one page | 5 min |
-| 1 | [Create an Account](/getting-started/create-account) — passkey, seed phrase, or an existing wallet | 3 min |
-| 2 | [Fund Your Wallet](/getting-started/fund-wallet) — buy or earn AE, and how much you need | 10 min |
-| 3 | [Your First Post](/getting-started/first-post) — publish to the chain and verify it in an explorer | 2 min |
-| 4 | [Your First Trade](/getting-started/first-trade) — read the quote, set slippage, buy, confirm | 5 min |
-| 5 | [Claim Your .chain Name](/getting-started/claim-name) — free for names over 12 characters | 3 min |
+| 0 | [Quickstart](/getting-started/quickstart): the whole path on one page | 5 min |
+| 1 | [Create an Account](/getting-started/create-account): passkey, seed phrase, or an existing wallet | 3 min |
+| 2 | [Fund Your Wallet](/getting-started/fund-wallet): buy or earn AE, and how much you need | 10 min |
+| 3 | [Your First Post](/getting-started/first-post): publish to the chain and verify it in an explorer | 2 min |
+| 4 | [Your First Trade](/getting-started/first-trade): read the quote, set slippage, buy, confirm | 5 min |
+| 5 | [Claim Your .chain Name](/getting-started/claim-name): free for names over 12 characters | 3 min |
## Reference
-- [Navigating the App](/getting-started/navigating-the-app) — every route on superhero.com and which ones need a connected wallet.
-- [Using Testnet](/getting-started/testnet) — endpoints, contract addresses and the faucet for `ae_uat`.
+- [Navigating the App](/getting-started/navigating-the-app): every route on superhero.com and which ones need a connected wallet.
+- [Using Testnet](/getting-started/testnet): endpoints, contract addresses and the faucet for `ae_uat`.
## Before you start
**Do the backup step.** It is the only irreversible part of the path. Your backup is the only way
-back into an account — [Backup & Recovery](/wallets/backup-and-recovery) lists exactly what to keep.
+back into an account. [Backup & Recovery](/wallets/backup-and-recovery) lists exactly what to keep.
**Start small.** Every transaction is final. Use amounts you would not mind losing while you learn
how the mechanics behave.
@@ -42,8 +42,8 @@ anything unattended.
## Related
-- [What is Superhero](/concepts/what-is-superhero) — the background behind the steps above.
-- [Choosing a Wallet](/wallets/choosing-a-wallet) — the decision that shapes step 1.
-- [Tokens Overview](/tokens/overview) — what you are buying in step 4.
-- [Concepts FAQ](/concepts/faq) — short answers to common questions.
-- [superhero.com](https://superhero.com) — the app.
+- [What is Superhero](/concepts/what-is-superhero): the background behind the steps above.
+- [Choosing a Wallet](/wallets/choosing-a-wallet): the decision that shapes step 1.
+- [Tokens Overview](/tokens/overview): what you are buying in step 4.
+- [Concepts FAQ](/concepts/faq): short answers to common questions.
+- [superhero.com](https://superhero.com): the app.
diff --git a/pages/getting-started/navigating-the-app.mdx b/pages/getting-started/navigating-the-app.mdx
index efd128a..06f27d7 100644
--- a/pages/getting-started/navigating-the-app.mdx
+++ b/pages/getting-started/navigating-the-app.mdx
@@ -35,7 +35,7 @@ in place of that action. The **Wallet** column below says which actions those ar
| `/trends/leaderboard` | Leaderboards | No |
| `/trends/invite` | Invite links and the affiliate program | **Yes** |
| `/trends/visx` | The trend cloud visualisation | No |
-| `/trends` | Redirects to `/trends/tokens` | — |
+| `/trends` | Redirects to `/trends/tokens` | n/a |
The **list** is `/trends/daos`; a **single DAO** is `/trends/dao/:saleAddress`. The parameter is a
**sale address**, not the AEX-9 token address.
@@ -44,7 +44,7 @@ The **list** is `/trends/daos`; a **single DAO** is `/trends/dao/:saleAddress`.
| Path | What it is | Wallet |
| --- | --- | --- |
-| `/chat` | Chat inbox — all, communities and DMs | **Yes** |
+| `/chat` | Chat inbox: all, communities and DMs | **Yes** |
| `/chat/:saleAddress` | A token-gated community room | **Yes** |
| `/chat/:saleAddress/info` | Room info and members | **Yes** |
| `/chat/dm/:address` | A direct-message thread | **Yes** |
@@ -76,15 +76,15 @@ All four render the same Governance view; the path selects the tab.
| `/defi/explore/pools` | All pools | No |
| `/defi/explore/pools/:poolAddress` | One pool's detail | No |
| `/defi/explore/transactions` | Recent DEX transactions | No |
-| `/defi` | Redirects to `/defi/swap` | — |
-| `/defi/bridge` | Currently redirects to `/defi/swap` | — |
-| `/defi/buy-ae-with-eth` | Currently redirects to `/defi/swap` | — |
+| `/defi` | Redirects to `/defi/swap` | n/a |
+| `/defi/bridge` | Currently redirects to `/defi/swap` | n/a |
+| `/defi/buy-ae-with-eth` | Currently redirects to `/defi/swap` | n/a |
## Wallet, utility and reference
| Path | What it is | Wallet |
| --- | --- | --- |
-| `/wallet` | The Superhero Wallet product page — features, downloads and a wallet FAQ | No |
+| `/wallet` | The Superhero Wallet product page: features, downloads and a wallet FAQ | No |
| `/tx-queue/:id` | Callback landing page for deep-link signing results | Part of a signing flow |
| `/get-ae` | Ways to get AE: earn, exchanges and swap providers | No |
| `/meet/:room?` | Video conference room | No |
@@ -109,7 +109,7 @@ Old links keep working:
| `/trending/dao/:saleAddress` and its vote path | the matching `/trends/dao/*` path |
| `/trending/accounts/:address` | `/trends/accounts/:address` |
| `/user/:address` | `/users/:address` |
-| `/post/:slug/comment/:id` | `/post/:id` — a comment is itself a post |
+| `/post/:slug/comment/:id` | `/post/:id`; a comment is itself a post |
| `/buy-ae` | `/get-ae` |
| `/swap` | `/defi/swap` |
@@ -120,8 +120,8 @@ Anything else renders the not-found page.
## Related
-- [Quickstart](/getting-started/quickstart) — the five-minute path through the routes above.
-- [Connecting a Wallet](/wallets/connecting) — what happens when you press Connect, and what `/tx-queue/:id` is for.
-- [Your First Trade](/getting-started/first-trade) — the token page's tabs, in detail.
-- [The Token Page](/tokens/token-page) — everything on `/trends/tokens/:tokenName`.
-- [superhero.com](https://superhero.com) — the app itself.
+- [Quickstart](/getting-started/quickstart): the five-minute path through the routes above.
+- [Connecting a Wallet](/wallets/connecting): what happens when you press Connect, and what `/tx-queue/:id` is for.
+- [Your First Trade](/getting-started/first-trade): the token page's tabs, in detail.
+- [The Token Page](/tokens/token-page): everything on `/trends/tokens/:tokenName`.
+- [superhero.com](https://superhero.com): the app itself.
diff --git a/pages/getting-started/quickstart.mdx b/pages/getting-started/quickstart.mdx
index 66dd146..9ea51cf 100644
--- a/pages/getting-started/quickstart.mdx
+++ b/pages/getting-started/quickstart.mdx
@@ -15,8 +15,8 @@ Open **[superhero.com](https://superhero.com)** and press **Connect**. You are o
in: a passkey, Superhero Wallet, or an AI agent setup.
- **Fastest:** choose **Use a passkey**. Face ID, Touch ID, a fingerprint or your device PIN, and an
- æternity account exists. Make sure the passkey syncs to iCloud Keychain or Google Password Manager
- — on this path the passkey *is* your backup.
+ æternity account exists. Make sure the passkey syncs to iCloud Keychain or Google Password Manager,
+ because on this path the passkey *is* your backup.
- **On a desktop, if you prefer a standard wallet:** install the
[Superhero Wallet extension](/wallets/superhero-wallet-extension), create a wallet there, write
down the seed phrase, then come back and press Connect.
@@ -43,8 +43,8 @@ the Max button withholds about 2% plus 0.001 AE as a reserve. Fund with headroom
## 3. Post something
-Type into the composer at the top of the feed — up to 280 characters, with hashtags, mentions and
-media if you want them — and approve the transaction in your wallet.
+Type into the composer at the top of the feed (up to 280 characters, with hashtags, mentions and
+media if you want them) and approve the transaction in your wallet.
The post is a contract call to Superhero's content contract. Your address is recorded as the
author, and the post is permanent. It appears in the feed immediately, before the indexer catches
@@ -61,7 +61,7 @@ up.
5. Verify it on the token's **Transactions** and **Holders** tabs.
Two things to know first: the curve carries a **1% spread** between buy and sell price, so a round
-trip costs about 1% before any price move; and **selling is two transactions** — an allowance, then
+trip costs about 1% before any price move; and **selling is two transactions**: an allowance, then
the sell.
→ [Your First Trade](/getting-started/first-trade)
@@ -69,7 +69,7 @@ the sell.
| Next | Where |
| --- | --- |
-| Get a readable username | [Claim Your .chain Name](/getting-started/claim-name) — free over 12 characters |
+| Get a readable username | [Claim Your .chain Name](/getting-started/claim-name): free over 12 characters |
| Join a community's DAO and vote | [Community DAOs](/dao/overview) |
| Find your way around | [Navigating the App](/getting-started/navigating-the-app) |
| Understand what you just did | [What is Superhero](/concepts/what-is-superhero) |
@@ -98,8 +98,8 @@ mainnet and spend real AE.
## Related
-- [Getting Started overview](/getting-started) — the same path, one page per step.
-- [Choosing a Wallet](/wallets/choosing-a-wallet) — if step 1 left you undecided.
-- [Navigating the App](/getting-started/navigating-the-app) — the full route map.
-- [What is Superhero](/concepts/what-is-superhero) — the background.
-- [Superhero FAQ](https://superhero.com/faq) — the in-app answers.
+- [Getting Started overview](/getting-started): the same path, one page per step.
+- [Choosing a Wallet](/wallets/choosing-a-wallet): if step 1 left you undecided.
+- [Navigating the App](/getting-started/navigating-the-app): the full route map.
+- [What is Superhero](/concepts/what-is-superhero): the background.
+- [Superhero FAQ](https://superhero.com/faq): the in-app answers.
diff --git a/pages/getting-started/testnet.mdx b/pages/getting-started/testnet.mdx
index a51527b..f9dac79 100644
--- a/pages/getting-started/testnet.mdx
+++ b/pages/getting-started/testnet.mdx
@@ -6,7 +6,7 @@ description: "Endpoints, contract addresses and a faucet for running Superhero a
# Using Testnet
æternity's public testnet (`ae_uat`) is where you experiment without spending real AE. Superhero has
-a complete second deployment there — its own backend, its own contracts, its own explorer.
+a complete second deployment there, with its own backend, its own contracts, its own explorer.
## Network selection is a build-time decision
@@ -81,7 +81,7 @@ deployment.
| Wrapped AE (WAE) | `ct_J3zBY8xxjsRr3QojETNw48Eb38fjvEuJKkQ6KzECvubvEcvCa` |
| æETH | `ct_ryTY1mxqjCjq1yBn9i6HDaCSdA6thXUFZTA84EMzbWd1SLKdh` |
-Community token sale contracts are **not** in this table — the factory deploys them per community,
+Community token sale contracts are **not** in this table. The factory deploys them per community,
so you discover them from the backend or from the factory's own events. The active factory address
comes from the backend's factory endpoint.
@@ -96,7 +96,7 @@ curl -X POST https://faucet.aepps.com/account/ak_YOUR_ADDRESS
**There is a per-address cooldown.** Request again too soon and the faucet answers **HTTP 425** with
a message of the form "The address is graylisted for another …". Handle 425 explicitly in any
-script that tops an account up — it is a wait, not a failure. Read the grant amount from the
+script that tops an account up; it is a wait, not a failure. Read the grant amount from the
faucet's response rather than hard-coding it.
Test AE has no value and is not convertible to mainnet AE. If you need more than one grant, wait
@@ -106,7 +106,7 @@ configuration value.
## Point a wallet at testnet
-Superhero Wallet — extension, mobile app, or `wallet.superhero.com` — ships both networks in every
+Superhero Wallet (extension, mobile app, or `wallet.superhero.com`) ships both networks in every
build. Switch under **Settings → Network**; custom networks can be added there too, with
per-protocol URLs.
@@ -121,8 +121,8 @@ Its æternity testnet defaults:
| Tipping backend | `https://superhero-backend-testnet.prd.service.aepps.com` |
| Multisig backend | `https://ga-multisig-backend-testnet.prd.service.aepps.com` |
-Once the wallet is on testnet it shows a **Faucet** entry — on the More screen and on the AE asset
-screen — linking to `https://faucet.aepps.com?address=` with your address
+Once the wallet is on testnet it shows a **Faucet** entry (on the More screen and on the AE asset
+screen) linking to `https://faucet.aepps.com?address=` with your address
prefilled. It is hidden on mainnet.
Because superhero.com is build-pinned, the two must agree: a mainnet build plus a testnet wallet is
@@ -161,10 +161,10 @@ real AE**.
## Related
-- [Agent Quickstart](/agents/quickstart) — the setup the scripts assume.
-- [Contract Addresses](/contracts/addresses) — the full address reference across both networks.
-- [Networks](/aeternity/networks) — what `ae_uat` is at the protocol level.
-- [Troubleshooting](/wallets/troubleshooting) — the network-mismatch and passkey-RP-ID symptoms.
-- [Web Wallet](/wallets/web-wallet) — the hosted wallet whose network switcher reaches `ae_uat`.
-- [testnet.aescan.io](https://testnet.aescan.io) — the testnet explorer.
-- [Testnets and Faucet](https://docs.aeternity.com/aeternity-developer-tools/development-infrastructure/testing-and-deployment/testnets-and-faucet) — the upstream guide.
+- [Agent Quickstart](/agents/quickstart): the setup the scripts assume.
+- [Contract Addresses](/contracts/addresses): the full address reference across both networks.
+- [Networks](/aeternity/networks): what `ae_uat` is at the protocol level.
+- [Troubleshooting](/wallets/troubleshooting): the network-mismatch and passkey-RP-ID symptoms.
+- [Web Wallet](/wallets/web-wallet): the hosted wallet whose network switcher reaches `ae_uat`.
+- [testnet.aescan.io](https://testnet.aescan.io): the testnet explorer.
+- [Testnets and Faucet](https://docs.aeternity.com/aeternity-developer-tools/development-infrastructure/testing-and-deployment/testnets-and-faucet): the upstream guide.
diff --git a/pages/governance/create-a-poll.mdx b/pages/governance/create-a-poll.mdx
index f806751..c279689 100644
--- a/pages/governance/create-a-poll.mdx
+++ b/pages/governance/create-a-poll.mdx
@@ -5,8 +5,8 @@ description: "Deploy a poll contract and register it in the Registry, from the w
# Creating a Poll
-Creating a poll takes **two on-chain transactions** — deploy the poll contract, then register
-it in the `Registry` — and costs roughly 0.02 AE. Allow 2–5 minutes for both to mine.
+Creating a poll takes **two on-chain transactions** (deploy the poll contract, then register
+it in the `Registry`) and costs roughly 0.02 AE. Allow 2–5 minutes for both to mine.
**A poll cannot be edited after it is deployed.** There is no entrypoint to change the title,
fix a typo in the description, add an option, or move the close height. The only correction is
@@ -74,7 +74,7 @@ The web form defaults to 30 days, computed as `current_height + 14400`.
Micro-blocks arrive about every three seconds, but `close_height` is a key-block height, so
always convert at three minutes per block.
-Setting `0` — or omitting it in the CLI — creates a poll that **never closes**. Stake weighting
+Setting `0`, or omitting it in the CLI, creates a poll that **never closes**. Stake weighting
is computed against the state at the close height, so an open-ended poll has no snapshot and
produces a continuously moving figure rather than a settled outcome. Use it for standing
sentiment, not for a decision.
@@ -87,14 +87,14 @@ Go to [superhero.com/voting/create](https://superhero.com/voting/create), or ope
1. Connect a wallet with at least 0.02 AE.
2. Enter the **title** (50 characters) and the **description** (300 characters).
3. Enter the **link**. If it does not point at `forum.aeternity.com`, the form suggests opening
- a forum thread and linking that instead — a hint, not a requirement.
+ a forum thread and linking that instead. This is a hint, not a requirement.
4. Choose **Publicly Listed** or **Not Listed**.
5. Add your **options**. The form starts with two empty rows and adds another each time you
fill the last one.
6. Set the **close height**. The form pre-fills 30 days ahead and shows an estimated close date
and time; editing either the date or the time recomputes the height at three minutes per
block, and editing the height recomputes the date.
-7. Submit, and approve **two** transactions in your wallet — the poll deployment, then the
+7. Submit, and approve **two** transactions in your wallet: the poll deployment, then the
registry entry.
On success the app takes you to `/voting/p/:pollAddress`, the poll's own page.
@@ -156,7 +156,7 @@ against the node's current height so it cannot be set in the past. On success it
}
```
-Keep `poll_address` — it is what every other command takes. `poll_id` is the registry's
+Keep `poll_address`; it is what every other command takes. `poll_id` is the registry's
sequential id, usable with `info-by-id`.
## Deploy without the script
@@ -173,18 +173,18 @@ If you are building your own client, the two calls are:
returns the poll's sequential registry id
```
-Both Superhero paths leave `spec_ref` unset. The registry to call is the one for your network
-— see [The Governance Registry](/governance/registry).
+Both Superhero paths leave `spec_ref` unset. The registry to call is the one for your network;
+see [The Governance Registry](/governance/registry).
Deploy the poll from the **account that should be its author**: `Poll.state.author` is set at
deployment and `is_author` checks against it. The author has no special power over the poll
-afterwards — they cannot close it, edit it or delete it — but the attribution is permanent.
+afterwards (they cannot close it, edit it or delete it), but the attribution is permanent.
`Registry.add_poll` can be called by any account for any deployed poll, and the caller sets
`is_listed`. The registry has no `remove_poll`, no `set_listed` and no update entrypoint, so
a registration is permanent: the id, the cached title and the `is_listed` flag are fixed. If
-you register with the wrong `is_listed` value, register the poll again with the other value —
-both entries remain — or deploy a fresh poll.
+you register with the wrong `is_listed` value, register the poll again with the other value
+(both entries remain), or deploy a fresh poll.
Deploy the standard poll bytecode as shipped with the app or the agent skill. The governance
backend computes `stake_weighted_results` only for polls built from the unmodified
@@ -203,8 +203,8 @@ Each transaction pays gas at the network's current gas price.
## Related
-- [Polls](/governance/polls) — the data model you are populating, and which result figure counts.
-- [Voting on Polls](/governance/voting) — what happens once people start voting.
-- [The Governance Registry](/governance/registry) — `add_poll`, the registry addresses, and the governance API.
-- [Governance with an agent](/agents/governance) — the guarded workflow for creating polls from an agent.
-- [Create a poll](https://superhero.com/voting/create) — the live form.
+- [Polls](/governance/polls): the data model you are populating, and which result figure counts.
+- [Voting on Polls](/governance/voting): what happens once people start voting.
+- [The Governance Registry](/governance/registry): `add_poll`, the registry addresses, and the governance API.
+- [Governance with an agent](/agents/governance): the guarded workflow for creating polls from an agent.
+- [Create a poll](https://superhero.com/voting/create): the live form.
diff --git a/pages/governance/delegation.mdx b/pages/governance/delegation.mdx
index 1a75c7f..fcea9b9 100644
--- a/pages/governance/delegation.mdx
+++ b/pages/governance/delegation.mdx
@@ -20,13 +20,13 @@ AE stays in your wallet, spendable, the entire time.
| Override | Voting on a poll yourself overrides your delegation **for that poll only**. |
| Transitivity | Chains resolve, to any depth. A delegatee who has themselves delegated passes the weight along. |
| Custody | None. No coins move, nothing is locked, no allowance is needed. |
-| Counting | Delegations and balances are read at the poll's close height — or live, if the poll has not closed. |
+| Counting | Delegations and balances are read at the poll's close height (or live, if the poll has not closed). |
| Self-delegation | Rejected on chain: `CALLER_IS_DELEGATEE_DISALLOWED`. |
| Cycles | Not prevented on chain. Broken off-chain at tally time, so each balance counts at most once. |
## The entrypoints
-Delegation lives on the `Registry`, not on individual polls — which is why it is global.
+Delegation lives on the `Registry`, not on individual polls, which is why it is global.
| Entrypoint | Purpose |
| --- | --- |
@@ -36,7 +36,7 @@ Delegation lives on the `Registry`, not on individual polls — which is why it
| `delegators(account)` | The accounts delegating **directly** to this one |
| `delegations()` | The full delegation map, `map(address, address)` |
-`delegate` on an account that already has a delegation replaces it — there is no need to
+`delegate` on an account that already has a delegation replaces it. There is no need to
revoke first, and no way to have two. The registry stores `delegations` as a plain
address-to-address map, which is why one account can have only one outgoing delegation.
@@ -57,7 +57,7 @@ node scripts/superhero-governance.mjs delegate ak_xyz456...
The script validates that the target is a well-formed `ak_` account address and refuses to
delegate to your own address. Both commands are a single transaction.
-Inspect the current state — both default to your own wallet when you pass no address:
+Inspect the current state. Both default to your own wallet when you pass no address:
```bash
node scripts/superhero-governance.mjs delegatee # who do I delegate to?
@@ -76,7 +76,7 @@ poll page, under **Your Governance Power**.
A delegatee who has themselves delegated passes the weight along the chain. If A delegates
to B and B delegates to C, then C votes with A's weight on any poll where neither A nor B has
-voted. The governance API models this as a tree — `GET delegatedPower/:address` returns
+voted. The governance API models this as a tree: `GET delegatedPower/:address` returns
`delegatedPower`, a `delegationTree` and a `flattenedDelegationTree`.
**Check who your delegatee delegates to before you delegate**, with repeated `delegatee`
@@ -86,7 +86,7 @@ calls:
node scripts/superhero-governance.mjs delegatee ak_your_delegatee...
```
-`delegators(account)` returns only **direct** delegators — the accounts pointing straight at
+`delegators(account)` returns only **direct** delegators, meaning the accounts pointing straight at
that address. It does not include accounts further up a chain whose weight also reaches them.
The app's account screen counts delegators from the flattened delegation tree returned by the
governance API, which is why that number can exceed the direct count from the contract.
@@ -115,11 +115,11 @@ and refuses to follow an edge into any of three sets:
| Any account that voted on the poll itself | An account that voted speaks for itself |
**Each balance is counted at most once per poll.** The cycle is cut at the edge that would
-revisit a node; no balance is double-counted and no balance is dropped for being in a ring —
+revisit a node; no balance is double-counted and no balance is dropped for being in a ring;
it counts for whoever it reaches first along the walk. The third rule is the mechanism behind
"voting yourself overrides your delegation".
-There is no depth cap — a chain of any length resolves — and no cap on how much delegated
+There is no depth cap (a chain of any length resolves) and no cap on how much delegated
weight one account can accumulate. If you and someone else delegate to each other, the walk
cuts one of the two edges and the outcome depends on which of you votes.
@@ -149,16 +149,16 @@ The Superhero backend indexes delegation transactions, including revoked ones:
| `GET /api/governance/delegations` | Paginated delegations; `includeRevoked=true` to include revoked ones |
| `GET /api/governance/delegations/:accountAddress` | One account's delegation and revocation history, in chronological order |
-Each record carries the delegator, the delegatee, the transaction hash and block height, and —
-if it was later revoked — `revoked`, `revoked_hash`, `revoked_block_height` and `revoked_at`.
+Each record carries the delegator, the delegatee, the transaction hash and block height and,
+if it was later revoked, `revoked`, `revoked_hash`, `revoked_block_height` and `revoked_at`.
Use this when you need the delegation graph at a past height; the contract only holds the
present state.
## Related
-- [Polls](/governance/polls) — how delegated weight is folded into the stake-weighted result.
-- [Voting on Polls](/governance/voting) — the per-poll override, and what happens when you revoke a vote.
-- [The Governance Registry](/governance/registry) — the contract that stores the delegation map, and its addresses.
-- [Governance and Voting](/governance) — why community DAOs have no equivalent of this.
-- [Manage your delegation](https://superhero.com/voting/account) — the live My Account tab.
-- [æternity governance](https://docs.aeternity.com/aeternity-core-concepts/aeternity-governance) — the protocol's account of delegative, coin-weighted governance.
+- [Polls](/governance/polls): how delegated weight is folded into the stake-weighted result.
+- [Voting on Polls](/governance/voting): the per-poll override, and what happens when you revoke a vote.
+- [The Governance Registry](/governance/registry): the contract that stores the delegation map, and its addresses.
+- [Governance and Voting](/governance): why community DAOs have no equivalent of this.
+- [Manage your delegation](https://superhero.com/voting/account): the live My Account tab.
+- [æternity governance](https://docs.aeternity.com/aeternity-core-concepts/aeternity-governance): the protocol's account of delegative, coin-weighted governance.
diff --git a/pages/governance/index.mdx b/pages/governance/index.mdx
index c7e87f3..e1e319e 100644
--- a/pages/governance/index.mdx
+++ b/pages/governance/index.mdx
@@ -18,7 +18,7 @@ Two different systems, two different contract sets, two different sources of vot
| Contracts | `Registry.aes`, `Poll.aes` | `DAO.aes`, `DAOVote.aes` |
| Scope | The æternity ecosystem as a whole | One community token's treasury |
| Voting power | AE balance at the poll's close height, plus delegated AE | That community's AEX-9 token balance |
-| Tokens locked while voting | **No** | **Yes** — an AEX-9 allowance locks your stake |
+| Tokens locked while voting | **No** | **Yes**: an AEX-9 allowance locks your stake |
| Delegation | Yes, global and transitive | No |
| Ballot | Any list of at least two options | Binary: in favour or against |
| Outcome | Signalling. Nothing executes automatically. | Executes an on-chain action via `apply_vote_subject` |
@@ -34,7 +34,7 @@ community treasuries and payout proposals, see [Community DAOs](/dao).
## How a poll works
1. Somebody deploys a `Poll` contract with a title, a description, a reference link and a list
- of options, then registers it in the `Registry` — two transactions.
+ of options, then registers it in the `Registry`. That is two transactions.
2. Any account votes by calling `vote(option)` on the poll contract. One vote per address; you
can change it or revoke it at any time before the poll closes.
3. Accounts that have not voted have their AE counted for whoever they delegated to.
@@ -43,15 +43,15 @@ community treasuries and payout proposals, see [Community DAOs](/dao).
5. The governance backend computes and publishes the stake-weighted result.
**The official result is `stake_weighted_results`.** Raw vote counts are address counts and
-are not the outcome — see [Polls](/governance/polls).
+are not the outcome; see [Polls](/governance/polls).
## In this section
-- [Polls](/governance/polls) — the data model, how stake weighting works, and which result figure is authoritative.
-- [Creating a Poll](/governance/create-a-poll) — the two-transaction creation flow, from the UI and from the CLI, with every field limit.
-- [Voting on Polls](/governance/voting) — casting and revoking a vote.
-- [Delegation](/governance/delegation) — delegating your AE weight, revoking it, and how chains of delegation resolve.
-- [The Governance Registry](/governance/registry) — the contract that indexes every poll and every delegation, with deployed addresses.
+- [Polls](/governance/polls): the data model, how stake weighting works, and which result figure is authoritative.
+- [Creating a Poll](/governance/create-a-poll): the two-transaction creation flow, from the UI and from the CLI, with every field limit.
+- [Voting on Polls](/governance/voting): casting and revoking a vote.
+- [Delegation](/governance/delegation): delegating your AE weight, revoking it, and how chains of delegation resolve.
+- [The Governance Registry](/governance/registry): the contract that indexes every poll and every delegation, with deployed addresses.
## The Voting page
@@ -66,9 +66,9 @@ Superhero's `/voting` route is one page with four tabs, driven by the URL:
## Related
-- [Community DAOs](/dao) — per-community treasury governance.
-- [Polls](/governance/polls) — how a poll is counted.
-- [The Governance Registry](/governance/registry) — contract addresses and the governance API.
-- [Governance with an agent](/agents/governance) — driving all of this from the CLI or an AI agent.
-- [superhero.com/voting](https://superhero.com/voting) — the live governance interface.
-- [æternity governance](https://docs.aeternity.com/aeternity-core-concepts/aeternity-governance) — the protocol's description of delegated coin-weighted governance.
+- [Community DAOs](/dao): per-community treasury governance.
+- [Polls](/governance/polls): how a poll is counted.
+- [The Governance Registry](/governance/registry): contract addresses and the governance API.
+- [Governance with an agent](/agents/governance): driving all of this from the CLI or an AI agent.
+- [superhero.com/voting](https://superhero.com/voting): the live governance interface.
+- [æternity governance](https://docs.aeternity.com/aeternity-core-concepts/aeternity-governance): the protocol's description of delegated coin-weighted governance.
diff --git a/pages/governance/polls.mdx b/pages/governance/polls.mdx
index aaae482..ea2fc0c 100644
--- a/pages/governance/polls.mdx
+++ b/pages/governance/polls.mdx
@@ -15,7 +15,7 @@ at the poll's close height.
**`stake_weighted_results` is the official outcome. `raw_vote_counts` are address counts
only.**
-The `Poll` contract stores `votes : map(address, int)` — one option per address, with no
+The `Poll` contract stores `votes : map(address, int)`: one option per address, with no
weight attached. Counting those entries tells you how many addresses picked each option,
which can point the opposite way from the stake-weighted result: a hundred addresses holding
dust outvote two whales on raw counts and lose decisively on stake.
@@ -55,7 +55,7 @@ and no way to extend or shorten `close_height`. The only remedy for a mistake is
The contract validates the metadata lengths in `init`: the title must be at most 50
characters (`TITLE_STRING_TO_LONG`) and the description at most 300
(`DESCRIPTION_STRING_TO_LONG`). The link, `spec_ref`, the option labels, the number of options
-and the close height are not validated on-chain — a poll deployed with a close height already
+and the close height are not validated on-chain. A poll deployed with a close height already
in the past is born closed.
### On the registry
@@ -83,8 +83,8 @@ Registry.poll_data = { poll : Poll
- Anyone can vote on it.
- It still appears in `Registry.polls()`, which returns everything.
-Use it for polls that should not clutter the public list — a test, a narrow question for a
-specific group — not for anything that needs to stay secret.
+Use it for polls that should not clutter the public list (a test, a narrow question for a
+specific group), not for anything that needs to stay secret.
The CLI defaults to listed-only and takes `--all` to include unlisted polls:
@@ -137,7 +137,7 @@ poll is closed, and your own current vote.
}
```
-`total_stake` and `option_stake` are in aettos — divide by `10^18` for AE.
+`total_stake` and `option_stake` are in aettos; divide by `10^18` for AE.
`percent_of_total_supply` is how much of all AE in existence took part, which is the closest
thing this system has to a turnout figure. There is **no quorum**: a poll with 0.1%
participation still produces a result.
@@ -150,16 +150,16 @@ participation still produces a result.
| `title()`, `metadata()` | Poll identity |
| `close_height()` | The closing height, as `option(int)` |
| `votes()` | Every address and the option it chose |
-| `vote(option)` | Cast or change your vote — stateful |
-| `revoke_vote()` | Retract your vote — stateful |
+| `vote(option)` | Cast or change your vote (stateful) |
+| `revoke_vote()` | Retract your vote (stateful) |
| `has_voted(voter)` | Whether that address has a vote standing |
| `voted_option(voter)` | Which option, as `option(int)` |
| `is_closed()` | Whether the closing height has passed |
| `is_author(author)` | Whether that address deployed the poll |
| `version()` | Contract version |
-The contract emits `Vote` — the poll address, the voter and the option index — and
-`RevokeVote` — the poll address and the voter. The events are on each poll, not on the
+The contract emits `Vote` (the poll address, the voter and the option index) and
+`RevokeVote` (the poll address and the voter). The events are on each poll, not on the
registry, so an indexer subscribes per poll.
## How stake weighting works
@@ -172,10 +172,10 @@ and account stakes at that height.**
your weight; spending it reduces it.
- Accounts that have **not** voted on the poll have their AE counted for whoever they
delegated to. Voting yourself overrides your delegation for that poll only.
-- Delegation chains resolve transitively — a delegatee who has themselves delegated passes the
+- Delegation chains resolve transitively: a delegatee who has themselves delegated passes the
weight along. See [Delegation](/governance/delegation).
-An open-ended poll — `close_height` set to `None` — has no snapshot. It never closes, so its
+An open-ended poll (`close_height` set to `None`) has no snapshot. It never closes, so its
result is a running figure computed against the current state. Treat it as continuous
sentiment, not a decision.
@@ -194,7 +194,7 @@ The governance backend indexes the contracts and computes the stake-weighted res
| Endpoint | Returns |
| --- | --- |
| `GET pollOverview/:pollAddress` | Poll state, per-account stakes at height, per-option stakes, total stake, vote count |
-| `GET votesState/:address` | The same overview shape — the source of `stake_weighted_results` |
+| `GET votesState/:address` | The same overview shape. This is the source of `stake_weighted_results` |
| `GET pollOrdering?closed=true,false` | The backend's ordering of polls, with per-poll totals and a score |
| `GET delegatedPower/:address?poll=:pollAddress` | Delegated power for an account, with its delegation tree |
| `GET accountPollVoterAuthor/:address` | Polls an account voted in, authored, or was voted in by its delegatee |
@@ -205,7 +205,7 @@ The app calls `contractEvent` immediately after every vote, revoke and delegatio
backend re-indexes promptly. If your own client skips it, expect a lag before your vote shows
up in the stake-weighted figures.
-`pollOverview` carries a `stakesAtHeight` array with one entry per voting account —
+`pollOverview` carries a `stakesAtHeight` array with one entry per voting account:
`account`, `option`, `stake`, `balance`, `delegated`, `delegators` and a `delegationTree`.
Look there when a result does not match your expectation: it separates an account's own
balance from the weight it received by delegation.
@@ -226,15 +226,15 @@ history:
| `GET /api/governance/delegations` | Paginated delegations; `includeRevoked` to see revoked ones |
| `GET /api/governance/delegations/:accountAddress` | Delegation and revocation history for one account, in order |
-These are indexed transaction records — counts of votes and revocations, not stake weights.
+These are indexed transaction records: counts of votes and revocations, not stake weights.
Use them for provenance and history, and the governance API for results.
## Related
-- [Voting on Polls](/governance/voting) — casting a vote once you have read the poll.
-- [Creating a Poll](/governance/create-a-poll) — the field limits and the two-transaction flow.
-- [Delegation](/governance/delegation) — where the delegated half of a stake figure comes from.
-- [The Governance Registry](/governance/registry) — the contract behind `polls()` and `poll(id)`.
-- [Community DAOs](/dao) — the other voting system, where stake is locked and results execute.
-- [Browse polls](https://superhero.com/voting) — the live list.
-- [aeternity/aepp-governance](https://github.com/aeternity/aepp-governance) — the reference implementation and the close-height counting rule.
+- [Voting on Polls](/governance/voting): casting a vote once you have read the poll.
+- [Creating a Poll](/governance/create-a-poll): the field limits and the two-transaction flow.
+- [Delegation](/governance/delegation): where the delegated half of a stake figure comes from.
+- [The Governance Registry](/governance/registry): the contract behind `polls()` and `poll(id)`.
+- [Community DAOs](/dao): the other voting system, where stake is locked and results execute.
+- [Browse polls](https://superhero.com/voting): the live list.
+- [aeternity/aepp-governance](https://github.com/aeternity/aepp-governance): the reference implementation and the close-height counting rule.
diff --git a/pages/governance/registry.mdx b/pages/governance/registry.mdx
index a58e1fc..b674cfc 100644
--- a/pages/governance/registry.mdx
+++ b/pages/governance/registry.mdx
@@ -6,8 +6,8 @@ description: "The Registry contract that indexes every governance poll and holds
# The Governance Registry
The `Registry` is the single entry point to æternity governance. It keeps the index of every
-poll ever registered, and it holds the global delegation map. It does **not** hold votes —
-those live on each individual `Poll` contract — and it does not compute results, which happens
+poll ever registered, and it holds the global delegation map. It does **not** hold votes
+(those live on each individual `Poll` contract), and it does not compute results, which happens
off-chain in the governance backend.
One registry per network, deployed once, with no admin entrypoint and no upgrade path.
@@ -38,7 +38,7 @@ Registry.poll_data = { poll : Poll
```
**`poll_data` caches the title and close height**, which also live on the poll contract, so a
-client can render a full poll list from one contract call instead of one call per poll — which
+client can render a full poll list from one contract call instead of one call per poll, which
is what the app and the CLI do.
**`delegations` is a plain address-to-address map**, which is why an account can have at most
@@ -101,7 +101,7 @@ polls without re-reading `polls()`; the delegation events let it maintain the de
incrementally.
`Vote` and `RevokeVote` are emitted by each `Poll` contract, not by the registry, so an
-indexer subscribes per poll — discovering polls through `AddPoll` first and then following
+indexer subscribes per poll, discovering polls through `AddPoll` first and then following
them individually. See [Contract events](/contracts/events).
## Call it
@@ -155,14 +155,14 @@ The agent skill's CLI defaults to `https://governance-server-mainnet.prd.aepps.c
mainnet, overridable with `AE_GOVERNANCE_BACKEND_URL`. If one host does not answer, try the
other.
-Superhero's own backend additionally indexes governance transactions at
-`/api/governance/votes` and `/api/governance/delegations` — useful for history rather than for
+Superhero's own backend also indexes governance transactions at
+`/api/governance/votes` and `/api/governance/delegations`. They are useful for history rather than for
live results. See [Polls](/governance/polls).
## Related
-- [Polls](/governance/polls) — what `poll_data` summarises, and how the backend turns votes into results.
-- [Delegation](/governance/delegation) — the delegation entrypoints in context, with the transitivity rules.
-- [Creating a Poll](/governance/create-a-poll) — `add_poll` as the second half of poll creation.
-- [Registry and Poll contract reference](/contracts/governance-contracts) — the full signature tables.
-- [Contract addresses](/contracts/addresses) — every deployed address across both networks in one place.
+- [Polls](/governance/polls): what `poll_data` summarises, and how the backend turns votes into results.
+- [Delegation](/governance/delegation): the delegation entrypoints in context, with the transitivity rules.
+- [Creating a Poll](/governance/create-a-poll): `add_poll` as the second half of poll creation.
+- [Registry and Poll contract reference](/contracts/governance-contracts): the full signature tables.
+- [Contract addresses](/contracts/addresses): every deployed address across both networks in one place.
diff --git a/pages/governance/voting.mdx b/pages/governance/voting.mdx
index ea11f13..b70a61c 100644
--- a/pages/governance/voting.mdx
+++ b/pages/governance/voting.mdx
@@ -35,7 +35,7 @@ node scripts/superhero-governance.mjs vote ct_abc123... 0
```
The script re-reads the poll before submitting. It refuses an option index the poll does not
-define — printing the valid options instead — and refuses to vote on a poll that is already
+define (printing the valid options instead) and refuses to vote on a poll that is already
closed. The contract enforces the same two rules:
```sophia
@@ -47,7 +47,7 @@ stateful entrypoint vote(option : int) =
```
`is_closed()` is `Chain.block_height >= close_height` for a poll that has one, and `false` for
-a poll with `close_height = None` — which is how an open-ended poll stays votable forever.
+a poll with `close_height = None`, which is how an open-ended poll stays votable forever.
The script prints the option label it voted for:
@@ -80,7 +80,7 @@ Revoking removes your vote entirely, so the poll counts you as not having voted:
- **Your delegation comes back into effect for that poll.** Voting directly overrides your
delegation only while your vote stands; once revoked, whoever you delegated to speaks for
your balance again. To abstain rather than hand your weight back to your delegatee, revoke
- your delegation too — see [Delegation](/governance/delegation).
+ your delegation too; see [Delegation](/governance/delegation).
You can vote again after revoking, as long as the poll is still open. `revoke_vote` itself is
not restricted to open polls. The script checks that you have actually voted before
@@ -95,8 +95,8 @@ costing a transaction.
| Tokens transferred to the contract | No | Yes |
| Balance immobilised while voting | No | Yes, until you revoke or withdraw |
| What is counted | Your AE balance at the poll's close height | The token amount you locked |
-| Changing your mind | Call `vote` again | Rejected — `revoke_vote` first |
-| Revoking after the close | Allowed | Rejected — `VOTE_ALREADY_CLOSED` |
+| Changing your mind | Call `vote` again | Rejected: `revoke_vote` first |
+| Revoking after the close | Allowed | Rejected: `VOTE_ALREADY_CLOSED` |
| Withdrawal step after closing | None | Required |
| Minimum to participate | None | The amount you stake, plus an allowance |
@@ -112,8 +112,8 @@ The snapshot only exists once the poll has closed:
| Poll state | Weighting is read at |
| --- | --- |
-| Open, with a future close height | The current height — the figures move as balances move |
-| Closed | The close height — fixed |
+| Open, with a future close height | The current height; the figures move as balances move |
+| Closed | The close height: fixed |
| Open-ended (`close_height = None`) | The current height, forever. There is never a snapshot |
An open poll's percentages are a live reading, so two people loading the same open poll an
@@ -121,7 +121,7 @@ hour apart can legitimately see different numbers.
**There is no minimum balance to vote.** An account with nothing in it can cast a vote that
records normally, emits a `Vote` event and appears in `votes()`. It contributes zero stake,
-but it is counted in the backend's `voteCount` — the address count the app shows as "Total
+but it is counted in the backend's `voteCount`, the address count the app shows as "Total
Votes". See [Polls](/governance/polls).
Nothing about a governance poll executes on-chain. Acting on a result is a separate, off-chain
@@ -141,7 +141,7 @@ appears. The same page shows live stake-weighted results and, below them, your a
balance, your delegation status and how many accounts delegate to you.
The app's **Total Votes** figure and its per-option percentage bars are computed from address
-counts. For the stake-weighted picture — the official result — read `option_stake` and
+counts. For the stake-weighted picture (the official result), read `option_stake` and
`percentage_of_total_stake` from the governance API, or the `stake_weighted_results` block in
the CLI's `info` output.
@@ -154,9 +154,9 @@ itself is on-chain and counted regardless.
## Related
-- [Polls](/governance/polls) — the data model, and why the stake-weighted figure is the real result.
-- [Delegation](/governance/delegation) — what your vote overrides, and what comes back when you revoke it.
-- [Creating a Poll](/governance/create-a-poll) — asking the question rather than answering it.
-- [Voting in a community DAO](/dao/voting) — the other system, where voting locks your tokens.
-- [Governance with an agent](/agents/governance) — the read-before-voting workflow, automated.
-- [Vote on a poll](https://superhero.com/voting) — the live interface.
+- [Polls](/governance/polls): the data model, and why the stake-weighted figure is the real result.
+- [Delegation](/governance/delegation): what your vote overrides, and what comes back when you revoke it.
+- [Creating a Poll](/governance/create-a-poll): asking the question rather than answering it.
+- [Voting in a community DAO](/dao/voting): the other system, where voting locks your tokens.
+- [Governance with an agent](/agents/governance): the read-before-voting workflow, automated.
+- [Vote on a poll](https://superhero.com/voting): the live interface.
diff --git a/pages/identity/_meta.json b/pages/identity/_meta.json
index 3dbb331..e7bdd56 100644
--- a/pages/identity/_meta.json
+++ b/pages/identity/_meta.json
@@ -6,5 +6,8 @@
"chain-names": "Chain Names (AENS)",
"x-verification": "Verifying Your X Account",
"profiles": "Profiles & Accounts",
- "did-standard": "Identity and DIDs"
+ "did-standard": "Identity and DIDs",
+ "profile-registry": {
+ "display": "hidden"
+ }
}
diff --git a/pages/identity/address-link.mdx b/pages/identity/address-link.mdx
index e434fe0..653fa6e 100644
--- a/pages/identity/address-link.mdx
+++ b/pages/identity/address-link.mdx
@@ -6,8 +6,8 @@ description: "The on-chain identity contract: what it stores, its entrypoints, t
# AddressLink
`AddressLink` is the contract behind SuperheroID. It stores signed links from an æternity
-address to values in named provider namespaces — an X handle, a Nostr key, a preferred `.chain`
-name, a bio, a website — and the `/api/address-links/…` endpoints are the API in front of it.
+address to values in named provider namespaces (an X handle, a Nostr key, a preferred `.chain`
+name, a bio, a website), and the `/api/address-links/…` endpoints are the API in front of it.
## What it stores
@@ -18,8 +18,8 @@ state = { providers : map(string, address)
, nonce_seq : map(address, int) }
```
-A link is a `(subject, provider, value)` triple. `links` is the forward index — every provider
-value an address has claimed — and `reverse` is the inverse, so a provider value resolves back
+A link is a `(subject, provider, value)` triple. `links` is the forward index (every provider
+value an address has claimed), and `reverse` is the inverse, so a provider value resolves back
to its owner. `nonce_seq` is a monotonic counter per subject: every signed message carries the
current nonce, and the nonce advances on write, so a signature cannot be replayed.
@@ -126,7 +126,7 @@ For a principal link the subject slot holds the AENS name instead of the address
link:hero.chain:prefaens:hero.chain:0
```
-The digest is the standard æternity personal-message construction — a 28-byte prefix
+The digest is the standard æternity personal-message construction: a 28-byte prefix
(`0x1a`, `aeternity Signed Message:` plus a newline, then the body length `0x20`) concatenated
with the Blake2b-256 hash of the message, the whole 60 bytes hashed again. That is exactly what
`signMessage` in `@aeternity/aepp-sdk` produces, so pass the claim's `message` string to
@@ -140,7 +140,7 @@ The same construction is used by [delegated posting](/social/delegated-posting).
| Abort | Meaning |
| --- | --- |
| `INVALID_SIGNATURE` | The Ed25519 check failed against the subject |
-| `INVALID_NONCE` | The nonce moved between claim and submit — restart from claim |
+| `INVALID_NONCE` | The nonce moved between claim and submit; restart from claim |
| `ALREADY_CLAIMED` | This provider is already linked to a different value for this subject |
| `NOT_LINKED` / `NO_LINKS` | Nothing to unlink |
| `NOT_PROVIDER_OWNER` | The submitting wallet does not own the provider namespace |
@@ -167,8 +167,8 @@ With either of the first two unset, every address-link read and write returns
## How a link reaches the API
The indexer scans `link`, `unlink`, `link_principal` and `unlink_principal` calls from height
-1,273,691. On a live `link` transaction it decodes the call arguments directly — `addr`,
-`provider`, `value` — so the API reflects a link the moment the transaction is mined, without
+1,273,691. On a live `link` transaction it decodes the call arguments directly (`addr`,
+`provider`, `value`), so the API reflects a link the moment the transaction is mined, without
waiting for contract logs to be indexed.
The link lands in the account's `links` object, keyed by provider id:
@@ -178,7 +178,7 @@ The link lands in the account's `links` object, keyed by provider id:
"bio": "Builder on Aeternity", "site": "example.com", "prefaens": "hero.chain" }
```
-A `nostr` link additionally wakes the token-gated-rooms pipeline — see [Chat](/social/chat).
+A `nostr` link also wakes the token-gated-rooms pipeline. See [Chat](/social/chat).
## The profile aggregate
@@ -198,12 +198,12 @@ deprecated):
## Related
-- [SuperheroID](/identity/superhero-id) — the product-level view of what an identity links.
-- [Verifying Your X Account](/identity/x-verification) — the `x` provider's claim-sign-submit
+- [SuperheroID](/identity/superhero-id): the product-level view of what an identity links.
+- [Verifying Your X Account](/identity/x-verification): the `x` provider's claim-sign-submit
flow end to end.
-- [Profiles & Accounts](/identity/profiles) — where the linked values surface on screen.
-- [Chat](/social/chat) — the `nostr` provider, and the room pipeline that consumes it.
-- [Delegated & Gasless Posting](/social/delegated-posting) — the same signed-message
+- [Profiles & Accounts](/identity/profiles): where the linked values surface on screen.
+- [Chat](/social/chat): the `nostr` provider, and the room pipeline that consumes it.
+- [Delegated & Gasless Posting](/social/delegated-posting): the same signed-message
construction in the posting contract.
-- [Sophia standard library](https://github.com/aeternity/aesophia/blob/master/docs/sophia_stdlib.md) —
+- [Sophia standard library](https://github.com/aeternity/aesophia/blob/master/docs/sophia_stdlib.md):
the reference for `Crypto.verify_sig` and the Blake2b primitives.
diff --git a/pages/identity/chain-names.mdx b/pages/identity/chain-names.mdx
index 607b909..32013c8 100644
--- a/pages/identity/chain-names.mdx
+++ b/pages/identity/chain-names.mdx
@@ -17,7 +17,7 @@ registration, ownership and expiry are consensus state.
| 12 characters or fewer | Goes to auction |
An auction runs until it times out with no higher bid, and each new bid must beat the previous
-one by at least 5%. Neither the Superhero app nor the agent-skill CLI implements bidding — the
+one by at least 5%. Neither the Superhero app nor the agent-skill CLI implements bidding, and the
CLI refuses a short name outright:
```text
@@ -36,14 +36,14 @@ AENS registration is two transactions, to stop front-running:
2. **Claim.** Reveal the name and the salt. The protocol checks the commitment.
The two transactions must land in **different blocks**. After the claim, **update** the name's
-pointers so it resolves to your address — a name with no `account_pubkey` pointer resolves to
+pointers so it resolves to your address. A name with no `account_pubkey` pointer resolves to
nothing.
## The sponsored claim in the app
Superhero sponsors **one free `.chain` claim per address**, for names longer than 12 characters
before the suffix, so every user can have a human-readable identity at no cost. Claim additional
-names from Superhero Wallet — the browser extension, the mobile app, or `wallet.superhero.com`.
+names from Superhero Wallet: the browser extension, the mobile app, or `wallet.superhero.com`.
The backend pays for and submits the sponsored transactions:
@@ -51,7 +51,7 @@ The backend pays for and submits the sponsored transactions:
| --- | --- | --- |
| 1 | `GET /api/profile/chain-name/sponsorship/{name}` | Check whether the sponsor account can fund this claim. The path segment is the label **without** the `.chain` suffix. Returns `sponsorable`, `sponsor_configured`, `sponsor_balance_aettos`, `required_balance_aettos` and a `reason`. |
| 2 | `POST /api/profile/chain-name/challenge` | Get a `nonce`, an `expires_at` and a `message` bound to your address. |
-| 3 | — | Sign `message` with your wallet to prove you control the address. |
+| 3 | (in your wallet) | Sign `message` with your wallet to prove you control the address. |
| 4 | `POST /api/profile/chain-name/claim` | Submit `address`, `name`, `challenge_nonce`, `challenge_expires_at` and `signature_hex`. |
| 5 | `GET /api/profile/{address}/chain-name-claim` | Poll the status. Returns `status` plus `preclaim_tx_hash`, `claim_tx_hash`, `update_tx_hash`, `transfer_tx_hash` and the expiry. |
@@ -91,7 +91,7 @@ node scripts/superhero-name.mjs list # names owned by your own w
header every 30 seconds. Expect minutes, not seconds.
- `update` passes `extendPointers: true`, so repointing the account pointer does not wipe other
pointers you have set. The CLI only ever sets the `account_pubkey` pointer.
-- `lookup` and `list` read the middleware — `/v3/names?owned_by=&state=active`.
+- `lookup` and `list` read the middleware: `/v3/names?owned_by=&state=active`.
`resolve` and `available` read name state from the node and pick the `account_pubkey`
pointer.
@@ -102,7 +102,7 @@ An AENS name has a finite time-to-live measured in key-blocks, exposed as an exp
status response's `expires_at`.
The ceiling is protocol configuration: an `expire_by` may be at most **180,000 key
-generations** into the future — roughly 375 days. Auction durations and starting bids are
+generations** into the future, roughly 375 days. Auction durations and starting bids are
protocol parameters too; the
[AENS protocol specification](https://github.com/aeternity/protocol/blob/master/AENS.md) is the
reference.
@@ -134,16 +134,16 @@ puts the **name** in the subject slot rather than your address:
link:hero.chain:prefaens:hero.chain:0
```
-The contract verifies ownership itself with `AENSv2.lookup` before accepting it —
+The contract verifies ownership itself with `AENSv2.lookup` before accepting it. It fails with
`PRINCIPAL_NOT_FOUND` if the name is not registered, `PRINCIPAL_MISMATCH` if you do not own it.
See [AddressLink](/identity/address-link).
## Related
-- [Names](/identity/names) — why a chain name outranks every other handle.
-- [Claim a name](/getting-started/claim-name) — the walkthrough for your first sponsored claim.
-- [AENS](/aeternity/aens) — the protocol-level view of the naming system.
-- [AddressLink](/identity/address-link) — where `link_principal` records the name after
+- [Names](/identity/names): why a chain name outranks every other handle.
+- [Claim a name](/getting-started/claim-name): the walkthrough for your first sponsored claim.
+- [AENS](/aeternity/aens): the protocol-level view of the naming system.
+- [AddressLink](/identity/address-link): where `link_principal` records the name after
verifying you own it.
-- [æternity Naming System (AENS)](https://docs.aeternity.com/aeternity-developer-tools/protocol/utility-features/aeternity-naming-system-aens) —
+- [æternity Naming System (AENS)](https://docs.aeternity.com/aeternity-developer-tools/protocol/utility-features/aeternity-naming-system-aens):
the official documentation for preclaim, claim, auctions and pointers.
diff --git a/pages/identity/did-standard.mdx b/pages/identity/did-standard.mdx
index d771bc4..843a77a 100644
--- a/pages/identity/did-standard.mdx
+++ b/pages/identity/did-standard.mdx
@@ -25,7 +25,7 @@ Core concepts like this:
Superhero does not define a DID method, DID syntax, DID document or resolver. If you need a DID
for interoperability with an external system, derive a `did:key` from the account's Ed25519 key
or publish a `did:web` document yourself. `AddressLink` also exposes a DID-keyed namespace
-(`link_did`, `resolve_did_controller` and friends) in which the `did` is an opaque string — see
+(`link_did`, `resolve_did_controller` and friends) in which the `did` is an opaque string; see
[AddressLink](/identity/address-link).
## Verifying a SuperheroID
@@ -46,7 +46,7 @@ or publish a `did:web` document yourself. `AddressLink` also exposes a DID-keyed
## Related
-- [SuperheroID](/identity/superhero-id) — what an identity links.
-- [AddressLink](/identity/address-link) — the contract behind every link.
-- [Accounts and keys](/aeternity/accounts-and-keys) — where the Ed25519 key behind an `ak_`
+- [SuperheroID](/identity/superhero-id): what an identity links.
+- [AddressLink](/identity/address-link): the contract behind every link.
+- [Accounts and keys](/aeternity/accounts-and-keys): where the Ed25519 key behind an `ak_`
address comes from.
diff --git a/pages/identity/index.mdx b/pages/identity/index.mdx
index 5dcb16f..05490be 100644
--- a/pages/identity/index.mdx
+++ b/pages/identity/index.mdx
@@ -23,27 +23,27 @@ can remove a link.
| Fullname, avatar, username | Legacy profile fields, read-only | The Superhero API |
A name is never the identity. Resolution always ends at an address, and the name types differ
-in how much evidence backs them — see [Names](/identity/names).
+in how much evidence backs them. See [Names](/identity/names).
## In this section
-- [SuperheroID](/identity/superhero-id) — what an identity links, what is on chain, and how a
+- [SuperheroID](/identity/superhero-id): what an identity links, what is on chain, and how a
third party verifies each link.
-- [AddressLink](/identity/address-link) — the contract reference: data model, entrypoints,
+- [AddressLink](/identity/address-link): the contract reference: data model, entrypoints,
events, providers and the signed message format.
-- [Names](/identity/names) — the name types, and how a public name is resolved.
-- [Chain Names (AENS)](/identity/chain-names) — registering, pointing, extending and losing a
+- [Names](/identity/names): the name types, and how a public name is resolved.
+- [Chain Names (AENS)](/identity/chain-names): registering, pointing, extending and losing a
`.chain` name, including the sponsored free claim.
-- [Verifying Your X Account](/identity/x-verification) — the OAuth plus claim-sign-submit flow,
+- [Verifying Your X Account](/identity/x-verification): the OAuth plus claim-sign-submit flow,
in enough detail to reimplement.
-- [Profiles & Accounts](/identity/profiles) — what an account page shows, which fields are
+- [Profiles & Accounts](/identity/profiles): what an account page shows, which fields are
editable, and how each edit is authorised.
-- [Identity and DIDs](/identity/did-standard) — how the model maps onto W3C DID Core.
+- [Identity and DIDs](/identity/did-standard): how the model maps onto W3C DID Core.
## Related
-- [On-chain social](/concepts/on-chain-social) — why identity, content and money share one
+- [On-chain social](/concepts/on-chain-social): why identity, content and money share one
address on Superhero.
-- [Chat](/social/chat) — the `nostr` link, and the pipeline that consumes it for token-gated
+- [Chat](/social/chat): the `nostr` link, and the pipeline that consumes it for token-gated
rooms.
-- [Accounts and keys](/aeternity/accounts-and-keys) — where an `ak_` address comes from.
+- [Accounts and keys](/aeternity/accounts-and-keys): where an `ak_` address comes from.
diff --git a/pages/identity/names.mdx b/pages/identity/names.mdx
index 2d821b4..f8dc795 100644
--- a/pages/identity/names.mdx
+++ b/pages/identity/names.mdx
@@ -5,8 +5,8 @@ description: "The name types attached to an address, how a public name is resolv
# Names
-An address can carry several names — a preferred `.chain` name, a middleware-resolved chain
-name, an X handle — and the Superhero API resolves one of them into a `public_name` for
+An address can carry several names (a preferred `.chain` name, a middleware-resolved chain
+name, an X handle), and the Superhero API resolves one of them into a `public_name` for
display. The name types differ in how much evidence backs them, so know which one you are
looking at before you cache it.
@@ -14,9 +14,9 @@ looking at before you cache it.
| Type | Where it lives | How it gets there | Verified? |
| --- | --- | --- | --- |
-| Preferred AENS name | `AddressLink`, provider `prefaens` | `link_principal`, which calls `AENSv2.lookup` inside the contract | **Yes** — ownership is checked on chain |
+| Preferred AENS name | `AddressLink`, provider `prefaens` | `link_principal`, which calls `AENSv2.lookup` inside the contract | **Yes**: ownership is checked on chain |
| Chain name | `chain_name` on the account | Resolved from the middleware, refreshed on an hourly sweep and on a stale read | Yes, by resolution rather than by claim |
-| X handle | `AddressLink`, provider `x` | `link` after an OAuth check the backend performs | Off chain only — see [X verification](/identity/x-verification) |
+| X handle | `AddressLink`, provider `x` | `link` after an OAuth check the backend performs | Off chain only; see [X verification](/identity/x-verification) |
| Legacy username | `profile.username` | Read-only legacy field | No |
## How a public name is resolved
@@ -39,7 +39,7 @@ The resolved value is `public_name` on `GET /api/profile/{address}` and
### How the chain name stays fresh
`chain_name` is cached with a `chain_name_updated_at` timestamp. An hourly sweep refreshes it,
-and `GET /api/accounts/{address}` additionally refreshes on read when the cached value is older
+and `GET /api/accounts/{address}` also refreshes on read when the cached value is older
than the staleness window, writing the new value back asynchronously. An expired or transferred
AENS name therefore drops out of the profile within about an hour.
@@ -53,7 +53,7 @@ whether a name is live, resolve it through AENS.
| Call | Answers |
| --- | --- |
-| `resolve(provider, value)` | Which address holds this provider value — for example which address linked the X handle `superherocom` |
+| `resolve(provider, value)` | Which address holds this provider value, for example which address linked the X handle `superherocom` |
| `resolve_signer(principal)` | Which address linked this AENS name as a principal |
## What the app displays
@@ -67,7 +67,7 @@ chainName (the AENS name looked up for the address)
formatAddress(address) (a shortened ak_… fallback)
```
-A verified badge is rendered when an `x` link exists for the account — see
+A verified badge is rendered when an `x` link exists for the account. See
[Verifying Your X Account](/identity/x-verification) for what that link proves.
## Normalization
@@ -78,16 +78,16 @@ A verified badge is rendered when an `x` link exists for the account — see
| Backend, on read | `links.x` is trimmed, lowercased and has a leading `@` stripped; `links.bio`, `links.site` and `links.prefaens` are trimmed only |
| Backend, on write | The value must be at most 200 characters and must not contain a `:`, because the signed message is colon-delimited |
-The `site` provider also strips the scheme — `https://example.com/blog` is stored as
-`example.com/blog` — and rejects a port.
+The `site` provider also strips the scheme (`https://example.com/blog` is stored as
+`example.com/blog`) and rejects a port.
The contract stores the value string verbatim, so whatever the backend normalized is what is
on chain.
## Worked examples
-**Link a `.chain` name.** Claim the AENS name first — the identity layer does not claim it for
-you — then run the claim-sign-submit flow at `/api/address-links/prefered-aens-name/`. The
+**Link a `.chain` name.** Claim the AENS name first, because the identity layer does not claim it for
+you. Then run the claim-sign-submit flow at `/api/address-links/prefered-aens-name/`. The
signed message puts the name in the subject slot rather than your address:
```text
@@ -105,15 +105,15 @@ submit with the verification token. The handle is stored lowercased.
to the middleware-resolved name.
**Remove a name.** `unclaim` then `unclaim/submit` on the matching provider path. Only your
-own signature is required — no OAuth, no AENS check.
+own signature is required, with no OAuth or AENS check.
## Related
-- [AddressLink](/identity/address-link) — the contract behind every link.
-- [Chain Names (AENS)](/identity/chain-names) — how to get the `.chain` name that sits at the
+- [AddressLink](/identity/address-link): the contract behind every link.
+- [Chain Names (AENS)](/identity/chain-names): how to get the `.chain` name that sits at the
top of the resolution ladder.
-- [Verifying Your X Account](/identity/x-verification) — the `x` link, and what a verified
+- [Verifying Your X Account](/identity/x-verification): the `x` link, and what a verified
badge means.
-- [Profiles & Accounts](/identity/profiles) — where the resolved name ends up on screen.
-- [æternity Naming System (AENS)](https://docs.aeternity.com/aeternity-developer-tools/protocol/utility-features/aeternity-naming-system-aens) —
+- [Profiles & Accounts](/identity/profiles): where the resolved name ends up on screen.
+- [æternity Naming System (AENS)](https://docs.aeternity.com/aeternity-developer-tools/protocol/utility-features/aeternity-naming-system-aens):
the protocol-level name system a chain name is anchored to.
diff --git a/pages/identity/profile-registry.tsx b/pages/identity/profile-registry.tsx
new file mode 100644
index 0000000..5c2e218
--- /dev/null
+++ b/pages/identity/profile-registry.tsx
@@ -0,0 +1,9 @@
+import { useEffect } from 'react'
+import { useRouter } from 'next/router'
+
+// Moved page. Static hosting has no server redirects, so redirect on the client.
+export default function Moved() {
+ const router = useRouter()
+ useEffect(() => { router.replace('/identity/address-link/') }, [router])
+ return
+}
diff --git a/pages/identity/profiles.mdx b/pages/identity/profiles.mdx
index f843d69..3d2d161 100644
--- a/pages/identity/profiles.mdx
+++ b/pages/identity/profiles.mdx
@@ -14,7 +14,7 @@ The page merges on-chain links, the API's account aggregate and trading statisti
| --- | --- |
| `/users/:address` | The social profile: header, feed, owned and created tokens, transactions |
| `/user/:address` | Legacy path; redirects to `/users/:address` |
-| `/trends/accounts` | The trader index — every account with token activity |
+| `/trends/accounts` | The trader index: every account with token activity |
| `/trends/accounts/:address` | The Trendminer view of an account, focused on trading |
| `/trends/leaderboard` | Ranked accounts by portfolio performance |
@@ -29,11 +29,11 @@ The social profile is live at `https://superhero.com/users/` followed by an `ak_
| Bio | `links.bio`, falling back to `profile.bio` and then the account's own `bio` |
| Website | `links.site` |
| Avatar | The profile's `avatarurl`, with a deterministic generated fallback |
-| Balances and counts | The account aggregate — holdings count and total created tokens |
+| Balances and counts | The account aggregate: holdings count and total created tokens |
The account aggregate from `GET /api/accounts/{address}` carries `address`, `bio`,
`chain_name`, `chain_name_updated_at`, an embedded `profile`, `public_name`, `holdings_count`,
-and a `links` object keyed by the `AddressLink` provider ids — `x`, `nostr`, `bio`, `site` and
+and a `links` object keyed by the `AddressLink` provider ids: `x`, `nostr`, `bio`, `site` and
`prefaens`. The `links` object is authoritative; the flat fields are fallbacks for older
records.
@@ -61,9 +61,9 @@ All four datasets are prefetched when the page loads. The feed tab merges posts
| Field | Where it lives |
| --- | --- |
-| Preferred AENS name, bio, website, X handle, Nostr key | `AddressLink` contract state, as provider links — signed by you, submitted by the backend |
+| Preferred AENS name, bio, website, X handle, Nostr key | `AddressLink` contract state, as provider links, signed by you and submitted by the backend |
| AENS name ownership and pointers | æternity AENS |
-| Chain name shown on a profile | Resolved from the middleware and cached on the account — not a contract link |
+| Chain name shown on a profile | Resolved from the middleware and cached on the account; not a contract link |
| Fullname, avatar URL, legacy username, `chain_expires_at` | Legacy profile fields, read-only |
| Follower and following counts | The social-graph tables, when that feature is enabled |
| Posts and comments | `Tipping` v3 contract, indexed by the API |
@@ -82,7 +82,7 @@ operations:
| Bio | Claim at `/api/address-links/bio/claim`, sign the returned message, submit at `/bio/submit` |
| Website | The same pair under `/api/address-links/site/`, with the scheme stripped from the stored value |
| Preferred `.chain` name | The same pair under `/api/address-links/prefered-aens-name/`, which uses `link_principal` and verifies AENS ownership on chain |
-| X handle | The OAuth flow — see [Verifying Your X Account](/identity/x-verification) |
+| X handle | The OAuth flow; see [Verifying Your X Account](/identity/x-verification) |
| Nostr key | The same pair under `/api/address-links/nostr/`, with a signed kind-22242 event as the extra proof |
Each link has a matching unlink: `/unclaim` returns a message and nonce, you sign it, and
@@ -104,7 +104,7 @@ Fullname, avatar and the legacy username are read-only.
| `window` | `7d`, `30d` or `all` |
| `sortBy` | `pnl`, `roi`, `aum` or `mdd` |
| `sortDir` | `ASC` or `DESC` |
-| `points` | Sparkline resolution — 7 for a week, 30 otherwise |
+| `points` | Sparkline resolution: 7 for a week, 30 otherwise |
| `page`, `limit` | Pagination; the client asks for 18 per page |
Each row carries `address`, `chain_name`, `aum_usd`, `pnl_usd`, `roi_pct`, `mdd_pct`,
@@ -118,11 +118,11 @@ which sorts ascending because a smaller drawdown is better.
`/trends/accounts` reads `GET /api/accounts`, which pages at 1 to 100 rows and accepts a
`search` term matched against the address, `chain_name`, `public_name`, `username` and
-`fullname`. `order_by` takes exactly nine values — anything else is a `400`:
+`fullname`. `order_by` takes exactly nine values, and anything else is a `400`:
| `order_by` | Ranks by |
| --- | --- |
-| `total_volume` | Trade volume — **the default** |
+| `total_volume` | Trade volume (**the default**) |
| `total_tx_count` | All trades |
| `total_buy_tx_count` | Buys only |
| `total_sell_tx_count` | Sells only |
@@ -133,7 +133,7 @@ which sorts ascending because a smaller drawdown is better.
| `created_at` | When the account row first appeared |
`order_direction` is `ASC` or `DESC`, defaulting to `DESC`. `has_nostr=true` returns only
-accounts that have linked a Nostr key — useful for a chat-contact suggester.
+accounts that have linked a Nostr key, which is useful for a chat-contact suggester.
Both the account index and the leaderboard rank trading activity only; nothing ranks by
posting, commenting, tipping or governance.
@@ -153,9 +153,9 @@ See [Names](/identity/names).
## Related
-- [SuperheroID](/identity/superhero-id) — what the profile is a view onto.
-- [Names](/identity/names) — the name types and how one is resolved for display.
-- [AddressLink](/identity/address-link) — the contract behind every editable field.
-- [Verifying Your X Account](/identity/x-verification) — the X link, and what its badge proves.
-- [Profile API](/api-reference/profile) — the endpoint-level reference.
-- [Portfolio](/tokens/portfolio) — the holdings and performance numbers the profile surfaces.
+- [SuperheroID](/identity/superhero-id): what the profile is a view onto.
+- [Names](/identity/names): the name types and how one is resolved for display.
+- [AddressLink](/identity/address-link): the contract behind every editable field.
+- [Verifying Your X Account](/identity/x-verification): the X link, and what its badge proves.
+- [Profile API](/api-reference/profile): the endpoint-level reference.
+- [Portfolio](/tokens/portfolio): the holdings and performance numbers the profile surfaces.
diff --git a/pages/identity/superhero-id.mdx b/pages/identity/superhero-id.mdx
index 320b076..2d87ba6 100644
--- a/pages/identity/superhero-id.mdx
+++ b/pages/identity/superhero-id.mdx
@@ -32,9 +32,9 @@ only account permitted to write the `x`, `nostr`, `bio`, `site` and `prefaens` n
| Data | Authority |
| --- | --- |
| Every provider link, its value, and the per-address nonce | `AddressLink` contract state |
-| The reverse index — which address owns a given provider value | `AddressLink` contract state |
+| The reverse index: which address owns a given provider value | `AddressLink` contract state |
| Which account may write a provider namespace | `AddressLink` `providers` map |
-| AENS name registration, pointers, expiry | æternity AENS — the `prefaens` link references it, it does not own it |
+| AENS name registration, pointers, expiry | æternity AENS; the `prefaens` link references it but does not own it |
| Posts, comments, tip totals | `Tipping` v3 plus the API index |
| Avatar, fullname, legacy username, follow counts, leaderboard stats | Superhero API |
| Chain name shown on a profile | Resolved hourly from the middleware, not from a contract link |
@@ -75,7 +75,7 @@ In order of how much can be checked independently:
provider owner submitted it. The OAuth evidence lives only inside the backend. See
[Verifying Your X Account](/identity/x-verification).
4. **Bio and website.** Nothing to verify beyond ownership of the address.
-5. **Posts.** Independent of the identity layer — a post's `sender` is whichever address signed
+5. **Posts.** Independent of the identity layer. A post's `sender` is whichever address signed
the transaction, recorded by the `Tipping` contract.
The verified badge on a profile means an `x` link exists for that account.
@@ -91,9 +91,9 @@ Fullname, avatar and the legacy username are read-only.
## Related
-- [AddressLink](/identity/address-link) — the contract, its entrypoints and its
+- [AddressLink](/identity/address-link): the contract, its entrypoints and its
provider-ownership model.
-- [Names](/identity/names) — the name types and how a public name is resolved.
-- [Verifying Your X Account](/identity/x-verification) — the `x` provider's flow in full.
-- [Profiles & Accounts](/identity/profiles) — where each linked value appears on screen.
-- [Identity and DIDs](/identity/did-standard) — how the model maps onto W3C DID Core.
+- [Names](/identity/names): the name types and how a public name is resolved.
+- [Verifying Your X Account](/identity/x-verification): the `x` provider's flow in full.
+- [Profiles & Accounts](/identity/profiles): where each linked value appears on screen.
+- [Identity and DIDs](/identity/did-standard): how the model maps onto W3C DID Core.
diff --git a/pages/identity/x-verification.mdx b/pages/identity/x-verification.mdx
index 221b1ae..087b1e7 100644
--- a/pages/identity/x-verification.mdx
+++ b/pages/identity/x-verification.mdx
@@ -38,7 +38,7 @@ Two secrets are involved:
at submit time. It never goes on chain. It ensures a caller can only submit a handle the
backend observed an OAuth session for.
-## Step 1 — the OAuth leg (PKCE)
+## Step 1: the OAuth leg (PKCE)
The client runs a standard OAuth 2.0 authorization-code flow with PKCE.
@@ -54,7 +54,7 @@ The client runs a standard OAuth 2.0 authorization-code flow with PKCE.
| `code_challenge_method` | `S256` |
The verifier is 32 random bytes, base64url-encoded. The scopes are exactly what the backend
-needs to call X API v2's `/2/users/me` — nothing that can post on your behalf.
+needs to call X API v2's `/2/users/me`, and nothing that can post on your behalf.
The entry point is gated on `X_OAUTH_CLIENT_ID` (set from `VITE_X_OAUTH_CLIENT_ID` at build
time). When that value is empty the **Connect X** control is hidden.
@@ -67,7 +67,7 @@ and both are cleared on read.
Keep the app and the callback on the same host. Switching between `localhost` and `127.0.0.1`
mid-flow loses the wallet session along with the PKCE record.
-## Step 2 — the callback
+## Step 2: the callback
`/profile/x/callback` reads `code` and `state` from the query string and proceeds only when:
@@ -78,7 +78,7 @@ mid-flow loses the wallet session along with the PKCE record.
The stored record is read and cleared in one operation, so the callback runs exactly once per
page load. The callback then restores the address as a signer and calls the claim endpoint.
-## Step 3 — claim
+## Step 3: claim
```text
POST /api/address-links/x/claim
@@ -98,7 +98,7 @@ The response is a claim:
| Field | Meaning |
| --- | --- |
-| `message` | The exact string the wallet must sign — `link::x::` |
+| `message` | The exact string the wallet must sign: `link::x::` |
| `nonce` | `AddressLink.get_nonce(address)`, the contract's own per-address counter |
| `value` | The X username the backend resolved, trimmed and lowercased |
| `verification_token` | A base64url HMAC token binding address, provider, value and expiry |
@@ -113,19 +113,19 @@ payload = { address, provider: "x", value, expiry }
token = base64url( JSON.stringify(payload) + "." + HMAC_SHA256(payload, ADDRESS_LINK_SECRET_KEY) )
```
-`expiry` is `Date.now() + ADDRESS_LINK_VERIFICATION_TTL_SECONDS * 1000` — **five minutes** by
+`expiry` is `Date.now() + ADDRESS_LINK_VERIFICATION_TTL_SECONDS * 1000`, which is **five minutes** by
default. The token is not encrypted, only unforgeable. Verification recomputes the HMAC and
compares it in constant time. The HMAC key is `ADDRESS_LINK_SECRET_KEY`, the same value used as
the provider wallet's private key.
-## Step 4 — the user's signature
+## Step 4: the user's signature
Sign `claim.message` verbatim with `signMessage`. Do not reconstruct it locally and do not
pre-hash it: `signMessage` applies the æternity personal-message framing that the contract
reproduces internally, and any deviation fails as `INVALID_SIGNATURE`.
The client verifies the result locally with the SDK's `verifyMessageSignature` before sending
-it, and normalizes it to lowercase hex — an `sg_…` signature is decoded to bytes and
+it, and normalizes it to lowercase hex: an `sg_…` signature is decoded to bytes and
hex-encoded, a `0x` prefix is stripped. The backend rejects anything that is not exactly 128
hex characters.
@@ -133,7 +133,7 @@ Trigger the signing prompt from an explicit user click. Browsers and pop-up bloc
a wallet window opened from an effect rather than a gesture, so the callback screen shows a
confirm button and re-enables it on failure.
-## Step 5 — submit
+## Step 5: submit
```text
POST /api/address-links/x/submit
@@ -142,19 +142,19 @@ Content-Type: application/json
{ "address": "ak_…", "value": "", "nonce": 0, "signature": "", "verification_token": "…" }
```
-The submit handler checks the token — not expired, address matches, provider is `x`, value
-matches — and then calls `AddressLink.link(address, "x", value, nonce, signature)` from the
+The submit handler checks the token (not expired, address matches, provider is `x`, value
+matches) and then calls `AddressLink.link(address, "x", value, nonce, signature)` from the
provider wallet. The response is `txHash`. The link is now pending confirmation; the client
invalidates the profile query so the verified badge appears once the backend has indexed it.
| Failure | Response |
| --- | --- |
| Token missing, malformed, or its HMAC does not verify | 400 |
-| `Date.now() > payload.expiry` | 400 "Verification token has expired" — restart from claim |
+| `Date.now() > payload.expiry` | 400 "Verification token has expired"; restart from claim |
| Token address, provider or value does not match the body | 400, one message per field |
| Signature is not 128 hex characters | 400 before the call is built |
| Contract rejects the signature | 400, from `INVALID_SIGNATURE` |
-| The nonce moved since the claim | 400, from `INVALID_NONCE` — restart from claim |
+| The nonce moved since the claim | 400, from `INVALID_NONCE`; restart from claim |
| The handle is already linked to a different value for this address | 400, from `ALREADY_CLAIMED` |
## Unlinking
@@ -216,12 +216,12 @@ for the OAuth check. The namespace owner is readable on chain as
## Related
-- [AddressLink](/identity/address-link) — the contract this flow writes to, its
+- [AddressLink](/identity/address-link): the contract this flow writes to, its
provider-ownership model, and its nonce.
-- [SuperheroID](/identity/superhero-id) — the rest of what an identity links.
-- [Profiles & Accounts](/identity/profiles) — where `x_username` surfaces once indexed.
-- [Chat](/social/chat) — the `nostr` provider, whose proof is a signed Nostr event rather than
+- [SuperheroID](/identity/superhero-id): the rest of what an identity links.
+- [Profiles & Accounts](/identity/profiles): where `x_username` surfaces once indexed.
+- [Chat](/social/chat): the `nostr` provider, whose proof is a signed Nostr event rather than
an OAuth session.
-- [Rewards program](/rewards/rewards-program) — verifying X is one of the reward milestones.
-- [Sophia standard library](https://github.com/aeternity/aesophia/blob/master/docs/sophia_stdlib.md) —
+- [Rewards program](/rewards/rewards-program): verifying X is one of the reward milestones.
+- [Sophia standard library](https://github.com/aeternity/aesophia/blob/master/docs/sophia_stdlib.md):
the reference for `Crypto.verify_sig`.
diff --git a/pages/index.mdx b/pages/index.mdx
index 68904d1..13181e4 100644
--- a/pages/index.mdx
+++ b/pages/index.mdx
@@ -6,7 +6,7 @@ description: "Superhero is the on-chain attention market where you can discover,
# Superhero Dev
**Superhero is the on-chain attention market where you can discover, trade, and govern the
-trends you believe in — before everyone else.**
+trends you believe in, before everyone else.**
A decentralized attention market for social trends: where creators own their content,
communities become tradable markets, and attention is priced in real time.
@@ -20,8 +20,8 @@ communities become tradable markets, and attention is priced in real time.
| **Own your content & identity** | On-chain posts and Superhero Onchain ID give creators full ownership. Your content is immutable, your identity is yours. |
| **Tradable trend markets** | Communities and hashtags become tradable via [bonding curve tokens](/tokens/bonding-curve). Attention and conviction show up directly in the price. |
| **Attention Market** | Trends = Hashtags = Communities = Tokens. Real-time market data on attention and sentiment for any trend or community. |
-| **Rewards & referrals** | The platform rewards participation through an [affiliation system](/rewards/affiliation) and [ProtocolDAO token](/dao/protocol-dao). Engage, refer, and earn. |
-| **On-chain posts & tipping** | Immutable content anchored to verifiable events. [Tip creators](/social/tipping) directly — every interaction is transparent and permanent. |
+| **Rewards & referrals** | The platform rewards participation through an [affiliation system](/rewards/affiliation) and the [ProtocolDAO token](/dao/protocol-dao). You earn by taking part and by referring others. |
+| **On-chain posts & tipping** | Immutable content anchored to verifiable events. [Tip creators](/social/tipping) directly, and every interaction stays public on chain. |
| **On-chain identity** | Wallet + chain names + X handle, all linked together. Your [identity](/identity) lives on-chain, not on a corporate server. |
## Pick your track
diff --git a/pages/resources/brand.mdx b/pages/resources/brand.mdx
index 51a53f7..e4de1c7 100644
--- a/pages/resources/brand.mdx
+++ b/pages/resources/brand.mdx
@@ -50,7 +50,7 @@ The paths are the app's own asset paths, so they also resolve directly under `su
| PWA icons | PNG, 192 and 512 | `/icons/icon-192.png`, `/icons/icon-512.png` | Standard install icons |
| PWA maskable icon | PNG, 512 | `/icons/icon-maskable-512.png` | Maskable variant for adaptive launcher shapes |
-The branding page also offers four custom UI icons as individual SVG downloads — **diamond**,
+The branding page also offers four custom UI icons as individual SVG downloads: **diamond**,
**wallet**, **hashtag** and **feed**. They are part of the product's icon set rather than the logo
family, and are exported from the running page rather than served as static files.
@@ -60,8 +60,8 @@ Use the marks unmodified. Do not recolour the logo, stretch it, add your own wor
build a derivative mark from the shield.
Editorial and press use of the unmodified logo is permitted. Anything that could read as
-endorsement — a product name, an app icon, a landing page, a token or a community that presents
-itself as official — needs written permission first; ask at `superherowallet@protonmail.com`.
+endorsement (a product name, an app icon, a landing page, a token or a community that presents
+itself as official) needs written permission first; ask at `superherowallet@protonmail.com`.
- **Do not use the marks on a site that collects keys or funds.** See
[Official Links](/resources/links).
@@ -80,13 +80,13 @@ itself as official — needs written permission first; ask at `superherowallet@p
| Coin | AE | ÆTH, AET |
| Identity | Superhero Onchain ID, SuperheroID | Superhero ID (spaced) |
| Analytics surface | Trendminer | Trend Miner, TrendMiner |
-| Wallet | Superhero Wallet — a separate product from the Superhero app | Treating `wallet.superhero.com` and `superhero.com` as the same thing |
+| Wallet | Superhero Wallet, a separate product from the Superhero app | Treating `wallet.superhero.com` and `superhero.com` as the same thing |
Superhero's own one-line description: "Superhero is an on-chain attention market built on the
æternity blockchain where users can discover, trade, and govern social trends."
## Related
-- [superhero.com/branding](https://superhero.com/branding) — the live brand kit, with working downloads.
-- [Official Links](/resources/links) — the domains and repositories that are Superhero.
-- [What is Superhero?](/concepts/what-is-superhero) — the positioning language to stay consistent with.
+- [superhero.com/branding](https://superhero.com/branding): the live brand kit, with working downloads.
+- [Official Links](/resources/links): the domains and repositories that are Superhero.
+- [What is Superhero?](/concepts/what-is-superhero): the positioning language to stay consistent with.
diff --git a/pages/resources/index.mdx b/pages/resources/index.mdx
index 220be3c..aa11887 100644
--- a/pages/resources/index.mdx
+++ b/pages/resources/index.mdx
@@ -22,13 +22,13 @@ official URLs.
- **Whitepaper:** [superhero.com/whitepaper](https://superhero.com/whitepaper), version 0.7,
February 2026.
-- **Bug reports and feedback:** [github.com/superhero-com/superhero/issues](https://github.com/superhero-com/superhero/issues) —
+- **Bug reports and feedback:** [github.com/superhero-com/superhero/issues](https://github.com/superhero-com/superhero/issues),
where the app's own "Send Feedback" button goes.
- **Official domains:** `superhero.com` and `wallet.superhero.com`. Check any other URL against
[Official Links](/resources/links) before connecting a wallet.
## Related
-- [Core Concepts](/concepts) — the model these documents assume.
-- [FAQ](/concepts/faq) — the user, developer and agent questions, answered in one place.
-- [superhero.com](https://superhero.com) — the live app.
+- [Core Concepts](/concepts): the model these documents assume.
+- [FAQ](/concepts/faq): the user, developer and agent questions, answered in one place.
+- [superhero.com](https://superhero.com): the live app.
diff --git a/pages/resources/links.mdx b/pages/resources/links.mdx
index 9f94262..50e5899 100644
--- a/pages/resources/links.mdx
+++ b/pages/resources/links.mdx
@@ -12,8 +12,8 @@ against whatever you were sent.
> Superhero lives on `superhero.com` and `wallet.superhero.com`. Nothing else is the app.
-Check the domain before you sign anything. A phishing site can copy the entire interface — the
-palette, the logo, the copy — but it cannot copy the domain.
+Check the domain before you sign anything. A phishing site can copy the entire interface (the
+palette, the logo, the copy), but it cannot copy the domain.
## Product
@@ -30,7 +30,7 @@ palette, the logo, the copy — but it cannot copy the domain.
The Chrome extension ID is `mnhmmkepfddpifjkamaligfeemcbhdne`. The older
`https://chrome.google.com/webstore/detail/superhero-wallet/mnhmmkepfddpifjkamaligfeemcbhdne` form
-is the same listing — same ID, older host.
+is the same listing, with the same ID on an older host.
## Routes on superhero.com
@@ -111,7 +111,6 @@ These are not operated by Superhero, but the app links to them, so seeing one is
| Service | URL | Why it appears |
| --- | --- | --- |
-| Quali.chat | `https://quali.chat` and `https://app.quali.chat` | The chat partner; each token has a public room |
| æScan | `https://aescan.io` | The æternity block explorer |
| æternity forum | `https://forum.aeternity.com` | Suggested for discussion threads linked from governance polls |
| æternity docs | `https://docs.aeternity.com` | Chain-level documentation |
@@ -134,8 +133,8 @@ wallet. See [Security Best Practices](/wallets/security).
## Related
-- [Support](/resources/support) — the report path, and how to disclose a vulnerability.
-- [Security Best Practices](/wallets/security) — what to check before signing anything.
-- [Choosing a Wallet](/wallets/choosing-a-wallet) — which of the wallet listings above you want.
-- [Networks & Endpoints](/aeternity/networks) — the backend table above, explained.
-- [superhero.com](https://superhero.com) — the app itself.
+- [Support](/resources/support): the report path, and how to disclose a vulnerability.
+- [Security Best Practices](/wallets/security): what to check before signing anything.
+- [Choosing a Wallet](/wallets/choosing-a-wallet): which of the wallet listings above you want.
+- [Networks & Endpoints](/aeternity/networks): the backend table above, explained.
+- [superhero.com](https://superhero.com): the app itself.
diff --git a/pages/resources/support.mdx b/pages/resources/support.mdx
index 57cab28..d746235 100644
--- a/pages/resources/support.mdx
+++ b/pages/resources/support.mdx
@@ -6,8 +6,8 @@ description: "Where to report a problem, and what to include so it can be acted
# Support
Most Superhero problems are one of three things: a transaction that did not do what you expected, a
-client showing stale data, or a wallet that will not connect. Diagnose which one you have first — it
-decides where the report goes — then file it with enough detail to reproduce without a follow-up.
+client showing stale data, or a wallet that will not connect. Diagnose which one you have first, because it
+decides where the report goes. Then file it with enough detail to reproduce without a follow-up.
## Triage first
@@ -19,20 +19,20 @@ Work down this list before filing anything. Each step rules out a whole class of
| Is the backend up? | The status panel in the app footer | The backend indicator goes red when the API has not answered for 60 seconds. A red indicator explains missing feeds, charts and token data |
| Is your device online? | Same panel, blockchain indicator | Driven by the browser's own online state |
| Is it the indexer lagging? | Compare the token page against the contract | Chain state is authoritative; the API can be behind it by a short interval |
-| Is it your wallet? | Try a different surface — extension, the app's built-in wallet, or `wallet.superhero.com` | Narrows a signing failure to one wallet |
+| Is it your wallet? | Try a different surface: extension, the app's built-in wallet, or `wallet.superhero.com` | Narrows a signing failure to one wallet |
If the chain shows your transaction as successful and the app disagrees, it is a client or indexer
-issue — report it. If the chain shows it reverted, the error is on-chain — a slippage floor you
-crossed, a missing allowance, an insufficient balance — and
+issue, so report it. If the chain shows it reverted, the error is on-chain (a slippage floor you
+crossed, a missing allowance, an insufficient balance), and
[Troubleshooting](/wallets/troubleshooting) is the better starting point.
## Where to report
| What | Where |
| --- | --- |
-| Bug or feedback about the web app, mobile apps or PWA | [github.com/superhero-com/superhero/issues](https://github.com/superhero-com/superhero/issues) — the app's "Send Feedback" button opens the same tracker |
+| Bug or feedback about the web app, mobile apps or PWA | [github.com/superhero-com/superhero/issues](https://github.com/superhero-com/superhero/issues). The app's "Send Feedback" button opens the same tracker |
| Bug in the API, the indexer or a trending score | [github.com/superhero-com/superhero-api](https://github.com/superhero-com/superhero-api) |
-| Bug in the AI agent skill — scripts, guides, ACIs | [github.com/superhero-com/superhero-agent-skill](https://github.com/superhero-com/superhero-agent-skill) |
+| Bug in the AI agent skill (scripts, guides, ACIs) | [github.com/superhero-com/superhero-agent-skill](https://github.com/superhero-com/superhero-agent-skill) |
| Privacy or data-protection questions | `superherowallet@protonmail.com` |
## What to include
@@ -44,7 +44,7 @@ and your report will be actionable on the first read.
- **What you expected, and what happened instead.** One sentence each. This is the single most
useful line in any report.
-- **The transaction hash**, if a transaction was involved — even a failed one. Without it nobody can
+- **The transaction hash**, if a transaction was involved, even a failed one. Without it nobody can
see what the chain did.
- **Your account address** (`ak_…`). It is public on-chain already; including it costs you nothing
and saves a round trip.
@@ -56,7 +56,7 @@ and your report will be actionable on the first read.
- The **token name and its sale address** (`ct_…`).
- The **amount** you entered and the **quote** the trade card showed.
-- Your **slippage setting** — the default is 1% in the token trade card, 5% on the DEX, and 3% in the
+- Your **slippage setting**. The default is 1% in the token trade card, 5% on the DEX, and 3% in the
agent CLI, and a reverted sell is very often a slippage floor doing its job.
- Whether the **allowance step** succeeded, if you were selling. A sell is two transactions; report
both hashes.
@@ -64,7 +64,7 @@ and your report will be actionable on the first read.
**For a posting problem, add:**
- The **post ID** (the `…_v3` form) or the parent post ID if it was a comment.
-- Whether the post appeared on-chain. Check the transaction before assuming it was lost — an indexer
+- Whether the post appeared on-chain. Check the transaction before assuming it was lost. An indexer
delay looks identical to a failed post in the feed.
**For an agent problem, add:**
@@ -88,16 +88,16 @@ insists otherwise, that is the tell.
## Security disclosure
-If you have found a vulnerability in a contract, the app or the skill, disclose it privately first —
-do not open a public GitHub issue describing a live vulnerability in a contract that holds user
+If you have found a vulnerability in a contract, the app or the skill, disclose it privately first.
+Do not open a public GitHub issue describing a live vulnerability in a contract that holds user
funds. Send it to `superherowallet@protonmail.com`. See [Security Model](/contracts/security) for
what the protocol does and does not defend against.
## Related
-- [Troubleshooting](/wallets/troubleshooting) — the wallet and connection problems that account for most reports.
-- [Risks](/tokens/risks) — losses that are working as designed rather than bugs.
-- [Explorers](/aeternity/explorers) — how to read a transaction before reporting it.
-- [Fees & Slippage](/tokens/fees-and-slippage) — why a sell reverts, and how to stop it happening again.
-- [FAQ](/concepts/faq) — the 23 canonical answers, plus developer and agent questions.
-- [Official Links](/resources/links) — every official URL and contact.
+- [Troubleshooting](/wallets/troubleshooting): the wallet and connection problems that account for most reports.
+- [Risks](/tokens/risks): losses that are working as designed rather than bugs.
+- [Explorers](/aeternity/explorers): how to read a transaction before reporting it.
+- [Fees & Slippage](/tokens/fees-and-slippage): why a sell reverts, and how to stop it happening again.
+- [FAQ](/concepts/faq): the 23 canonical answers, plus developer and agent questions.
+- [Official Links](/resources/links): every official URL and contact.
diff --git a/pages/resources/whitepaper.mdx b/pages/resources/whitepaper.mdx
index 17d9b15..9ee89f7 100644
--- a/pages/resources/whitepaper.mdx
+++ b/pages/resources/whitepaper.mdx
@@ -32,13 +32,13 @@ worked numbers, use the pages in the table below.
| System Architecture | On-chain layers, off-chain components, the seven-step deployment sequence | [Architecture Overview](/concepts/architecture) |
| Security Considerations | Cryptographic integrity, economic security, governance security, auditability | [Security Model](/contracts/security) |
| Token Economics Summary | The two token types side by side, plus the value flow diagram | [Where the Money Goes](/concepts/value-flow) |
-| Conclusion | The thesis restated | — |
+| Conclusion | The thesis restated | None |
| Glossary | Twelve core terms | [Glossary](/concepts/glossary) |
## Related
-- [Superhero whitepaper](https://superhero.com/whitepaper) — the document itself.
-- [Core Concepts](/concepts) — the whitepaper's first half in plain language.
-- [Where the Money Goes](/concepts/value-flow) — the economics sections worked through a real trade.
-- [Smart Contracts](/contracts) — entrypoints and events, which the whitepaper does not list.
-- [Glossary](/concepts/glossary) — the whitepaper's glossary, extended to cover the whole site.
+- [Superhero whitepaper](https://superhero.com/whitepaper): the document itself.
+- [Core Concepts](/concepts): the whitepaper's first half in plain language.
+- [Where the Money Goes](/concepts/value-flow): the economics sections worked through a real trade.
+- [Smart Contracts](/contracts): entrypoints and events, which the whitepaper does not list.
+- [Glossary](/concepts/glossary): the whitepaper's glossary, extended to cover the whole site.
diff --git a/pages/rewards/affiliation.mdx b/pages/rewards/affiliation.mdx
index 1322488..24f5a21 100644
--- a/pages/rewards/affiliation.mdx
+++ b/pages/rewards/affiliation.mdx
@@ -73,7 +73,7 @@ total_price = bonding_curve_price + affiliation_amount
The sale forwards `affiliation_amount` as the attached value of
`record_sale_transaction(buyer, bonding_curve_price)`, so the `transaction_value` the treasury
-splits is the curve price, excluding the fee itself. Selling pays no affiliation fee —
+splits is the curve price, excluding the fee itself. Selling pays no affiliation fee:
`sell()` never touches the treasury.
## Levels with no inviter
@@ -95,17 +95,17 @@ The buyer pays the full 0.5% in every case.
## How the referral chain is built
-The treasury stores the chain as a single map, `affiliation_tree: map(address, address)` —
+The treasury stores the chain as a single map, `affiliation_tree: map(address, address)`:
each address points at its direct inviter. The four levels are found by walking that map
upward four times.
Two entrypoints write into it:
-- `redeem_invitation_code(invitee_address)` — the normal path. Someone opens an invite link,
+- `redeem_invitation_code(invitee_address)`: the normal path. Someone opens an invite link,
the one-time key inside it signs this call, and the caller's wallet address is attached to
the inviter who funded the code. See [Invite Links](/rewards/invite-links). It rejects
`INVITER_EQUAL_INVITEE`, so you cannot redeem your own code into your own wallet.
-- `register_invitation(inviter_address)` — attaches the caller to an inviter directly. Any
+- `register_invitation(inviter_address)`: attaches the caller to an inviter directly. Any
account can call it once to name its inviter; no funded code and no action by the named
inviter are required.
@@ -119,7 +119,7 @@ Two read entrypoints get you back out:
already (`INVITEE_ALREADY_REGISTERED`), and no entrypoint deletes from `affiliation_tree`.
Once an address has an inviter it keeps that inviter for the life of the contract.
-## Unique invitees — the withdraw gate
+## Unique invitees: the withdraw gate
Accruing rewards and withdrawing them are separate. Rewards accrue from the first buy in your
downline. Withdrawing is gated on a qualification threshold, tracked per inviter in
@@ -131,8 +131,8 @@ unique_invitees_state
| WaitingForInvitations(Set.set(address), map(address, int))
```
-- **`ThresholdReached`** — the gate is open permanently.
-- **`WaitingForInvitations(reached, in_progress)`** — the set holds the invitees who have
+- **`ThresholdReached`**: the gate is open permanently.
+- **`WaitingForInvitations(reached, in_progress)`**: the set holds the invitees who have
already crossed the spend threshold; the map holds every other invitee against their
cumulative spend in aettos.
@@ -170,7 +170,7 @@ entrypoint get_payout_period() : int =
```
The index is `floor(unix_time_ms / 2_592_000_000)`. It advances on its own every 30 days, and
-the boundary is global — shared by every account — rather than a per-account anniversary.
+the boundary is global (shared by every account) rather than a per-account anniversary.
Periods are 30 days, not calendar months, so they drift against the calendar.
Rewards are credited into the bucket for whichever period is current when the buy is mined:
@@ -207,7 +207,7 @@ require(state.unique_invitees[Call.caller = WaitingForInvitations(Set.new(), {})
"MINIMUM_ACCOUNTS_THRESHOLD_NOT_REACHED")
```
-It takes no arguments and pays the full two-bucket sum to `Call.caller` — there is no partial
+It takes no arguments and pays the full two-bucket sum to `Call.caller`. There is no partial
withdrawal. Calling it with nothing accrued succeeds and spends zero.
## `redemption_fee_cover`
@@ -225,8 +225,8 @@ register_invitation_code(
An invite link carries the **secret key** of a freshly generated account; the recipient's
browser reconstructs that account and uses it to sign
`redeem_invitation_code()`. That one-time account has never held AE,
-so `redemption_fee_cover` is the AE the inviter attaches to make that one call affordable —
-the recipient claims a gift without needing any AE first.
+so `redemption_fee_cover` is the AE the inviter attaches to make that one call affordable,
+so the recipient claims a gift without needing any AE first.
The web app and the CLI both use **`10n ** 15n` aettos = 0.001 AE per link**, which is the
contract's minimum:
@@ -264,9 +264,9 @@ the same one-time address cannot be re-registered.
| Entrypoint | Returns |
| --- | --- |
| `get_state()` | The whole record: payout periods, affiliation tree, invitation codes, unique invitees |
-| `payout_periods()` | `map(int, map(address, int))` — accrual bucketed by period |
-| `affiliation_tree()` | `map(address, address)` — every invitee to its direct inviter |
-| `invitation_codes()` | `map(address, (address, int, bool))` — one-time address to `(inviter, amount, claimed)` |
+| `payout_periods()` | `map(int, map(address, int))`: accrual bucketed by period |
+| `affiliation_tree()` | `map(address, address)`: every invitee to its direct inviter |
+| `invitation_codes()` | `map(address, (address, int, bool))`: one-time address to `(inviter, amount, claimed)` |
| `unique_invitees()` | `map(address, unique_invitees_state)` |
### Per-account queries
@@ -317,18 +317,18 @@ The treasury is resolved from the CommunityFactory rather than hardcoded:
| Testnet | `ct_2QmAcPxY4TBbFmkSUhxU4UTwoRot8SMmZzaAKL6oyHmQqRL1rK` |
The web app uses the mainnet address as `INVITATIONS_CONTRACT` to filter middleware
-transaction history — `/v3/transactions?contract=&caller_id=` —
+transaction history (`/v3/transactions?contract=&caller_id=`)
when listing the invitation codes you have registered and revoked. On any other network,
resolve through the factory or use the backend's invitation index.
## Related
-- [Invite Links](/rewards/invite-links) — creating, funding, sharing and revoking the codes
+- [Invite Links](/rewards/invite-links): creating, funding, sharing and revoking the codes
this contract tracks.
-- [Claiming Rewards](/rewards/claiming) — the `withdraw()` flow and its error messages.
-- [AffiliationTreasury contract](/contracts/affiliation-treasury) — the contract reference page.
-- [Bonding curve fees and slippage](/tokens/fees-and-slippage) — where the 1% spread that
+- [Claiming Rewards](/rewards/claiming): the `withdraw()` flow and its error messages.
+- [AffiliationTreasury contract](/contracts/affiliation-treasury): the contract reference page.
+- [Bonding curve fees and slippage](/tokens/fees-and-slippage): where the 1% spread that
feeds this system originates.
-- [Value flow](/concepts/value-flow) — the whole-protocol view of the same money.
-- [Refer & Earn on superhero.com](https://superhero.com/trends/invite) — where you generate
+- [Value flow](/concepts/value-flow): the whole-protocol view of the same money.
+- [Refer & Earn on superhero.com](https://superhero.com/trends/invite): where you generate
codes, watch the 4 × 10 AE gate and call `withdraw()`.
diff --git a/pages/rewards/claiming.mdx b/pages/rewards/claiming.mdx
index 87a93c8..655d381 100644
--- a/pages/rewards/claiming.mdx
+++ b/pages/rewards/claiming.mdx
@@ -12,11 +12,11 @@ a contract call you sign, and one is signed by a one-time key embedded in an inv
| Reward | How it reaches you | Who signs | Gas |
| --- | --- | --- | --- |
-| X posting rewards | Sent automatically to your connected wallet after a successful scan | Nobody — the backend pays out | None for you |
+| X posting rewards | Sent automatically to your connected wallet after a successful scan | Nobody: the backend pays out | None for you |
| Affiliate rewards | You press **Collect rewards**, which calls `withdraw()` on the AffiliationTreasury | You | An ordinary æternity transaction fee |
| An invite link's AE gift | You open the link and press **Claim reward** | The invite's one-time key, not your wallet | Covered by the `redemption_fee_cover` the inviter funded |
-## X posting rewards — nothing to claim
+## X posting rewards: nothing to claim
There is no claim button for the [Superhero Rewards Program](/rewards/rewards-program).
Press **Check rewards** on `/trends/invite`, sign the ownership challenge with your wallet,
@@ -29,13 +29,13 @@ What can go wrong:
response carries `next_check_allowed_at`; a submit past the cap returns HTTP 429 and the
scan is skipped. Wait for the countdown and try again.
- **The check succeeds but nothing arrives.** A recheck that returns HTTP 200 can still carry
- an `error` string — below the follower minimum, the X identity was already rewarded on a
+ an `error` string: below the follower minimum, the X identity was already rewarded on a
different address, or the payout transaction itself failed. The card shows that string in a
red banner; read it rather than retrying blindly.
- **You rejected the signature.** The client leaves the state unchanged. Press the button
again and approve the signature request.
-## Affiliate rewards — the withdraw call
+## Affiliate rewards: the withdraw call
Affiliate rewards accrue in the `AffiliationTreasury` contract as your invitees trade.
@@ -52,7 +52,7 @@ To withdraw:
1. Open `https://superhero.com/trends/invite` and connect the wallet that created the
invites. Rewards accrue to the inviter address, not to any other account.
-2. Scroll to **Collect your rewards**. The card shows **Available Rewards** — the value of
+2. Scroll to **Collect your rewards**. The card shows **Available Rewards**, the value of
`get_accumulated_rewards()`, converted from aettos.
3. If the progress bar reads 4/4 and the balance is above zero, the button is enabled. Press
**Collect rewards** and confirm the transaction in your wallet. It calls `withdraw()`.
@@ -64,7 +64,7 @@ To withdraw:
| Collect rewards | Eligible; the call will go through |
| Withdrawing... | Transaction submitted, waiting on the wallet and the chain |
-`withdraw()` takes no arguments and always pays the whole two-period balance — there is no
+`withdraw()` takes no arguments and always pays the whole two-period balance. There is no
partial withdrawal. Its only requirement is the `ThresholdReached` check; it does not require
a non-zero balance, so a withdraw with nothing accrued succeeds, spends zero, and still costs
the transaction fee.
@@ -73,12 +73,12 @@ Contract errors the card translates:
- `MINIMUM_ACCOUNTS_THRESHOLD_NOT_REACHED` and `MINIMUM_OF_4_ACCOUNTS_SHALL_BUY` both render
as "you need 4 direct invitees who each spent at least 10 AE in token sales". If you see
- this while the bar shows 4/4, reload — the on-chain state and the cached UI have diverged.
+ this while the bar shows 4/4, reload: the on-chain state and the cached UI have diverged.
- A `Key does not exist` or `Maps:` error from `get_unique_invitee` means the contract has no
entry for your address yet. The card treats that as zero progress. It is the normal state
for an account that has never invited anyone.
-## An invite link's AE gift — claimed by the link, not by you
+## An invite link's AE gift: claimed by the link, not by you
When someone opens an invite link, the app reads `invite_code` out of the URL fragment,
reconstructs a one-time account from the secret it contains, and shows a claim card with the
@@ -95,22 +95,22 @@ where to send the AE and whom to attach to the affiliation tree.
| `ALREADY_REDEEMED` | The link was already claimed. The card also detects this up front by reading the third field of `get_invitation_code`. |
| `INVITEE_ALREADY_REGISTERED` | Your wallet address is already attached to an inviter. One account can only be invited once. |
| `INVITER_EQUAL_INVITEE` | You are redeeming your own code into your own wallet. |
-| `Trying to call undefined function` | You are on the wrong network — the treasury at that address does not exist on the network your wallet is set to. |
+| `Trying to call undefined function` | You are on the wrong network: the treasury at that address does not exist on the network your wallet is set to. |
| A message mentioning `Secret key` | The secret in the link is in a format the SDK cannot load. The link is malformed or truncated. |
If you are the **inviter** and you open your own link, the card switches to **Revoke
invitation** instead of Claim, and calls `revoke_invitation_code` with your wallet. Revoking
-returns the `invitation_amount` to you. An unclaimed invite link does **not** expire — it
+returns the `invitation_amount` to you. An unclaimed invite link does **not** expire; it
stays claimable until you revoke it.
## Related
-- [Superhero Rewards Program](/rewards/rewards-program) — the milestones that trigger the
+- [Superhero Rewards Program](/rewards/rewards-program): the milestones that trigger the
automatic payouts.
-- [The Affiliation System](/rewards/affiliation) — what `withdraw()` pays out and how it
+- [The Affiliation System](/rewards/affiliation): what `withdraw()` pays out and how it
accrued.
-- [Invite Links](/rewards/invite-links) — creating and revoking the links whose gifts are
+- [Invite Links](/rewards/invite-links): creating and revoking the links whose gifts are
claimed here.
-- [AE and gas](/aeternity/ae-and-gas) — why the withdraw call costs a fee and how fees work.
-- [Refer & Earn on superhero.com](https://superhero.com/trends/invite) — the page with both
+- [AE and gas](/aeternity/ae-and-gas): why the withdraw call costs a fee and how fees work.
+- [Refer & Earn on superhero.com](https://superhero.com/trends/invite): the page with both
the Collect Rewards card and the Check rewards button.
diff --git a/pages/rewards/index.mdx b/pages/rewards/index.mdx
index 8687890..cccc3e1 100644
--- a/pages/rewards/index.mdx
+++ b/pages/rewards/index.mdx
@@ -14,7 +14,7 @@ invited, four levels deep. They share a page in the app (`/trends/invite`).
| | Superhero Rewards Program | Trading Affiliate Program |
| --- | --- | --- |
| What you do | Link your X account, post about Superhero | Create funded invite links, get people trading |
-| Who pays | Superhero's backend, from a scan of your X posts | The bonding curve — 0.5% of every buy in your downline |
+| Who pays | Superhero's backend, from a scan of your X posts | The bonding curve: 0.5% of every buy in your downline |
| Where the money comes from | A program budget | Protocol fees, split on-chain |
| Payout | Sent automatically to your connected wallet | You call `withdraw()` on the AffiliationTreasury contract |
| Gate | X account with at least 100 followers | 4 direct invitees who have each spent at least 10 AE |
@@ -28,7 +28,7 @@ discretion.
The **Trading Affiliate Program** is protocol mechanics. Every community-token buy carries a
1% spread; half goes to the community DAO and half to affiliation. That affiliation half is
split across up to four levels of inviters above the buyer. Rewards accumulate in 30-day
-periods, and `withdraw()` pays the current and previous period — so withdraw monthly.
+periods, and `withdraw()` pays the current and previous period, so withdraw monthly.
## The affiliation split at a glance
@@ -49,23 +49,23 @@ curve price is 1,000 AE costs the buyer 1,005 AE.
## In this section
-- [Superhero Rewards Program](/rewards/rewards-program) — the two X milestones, the follower
+- [Superhero Rewards Program](/rewards/rewards-program): the two X milestones, the follower
tiers and the streak bonus.
-- [Claiming Rewards](/rewards/claiming) — which rewards arrive automatically, which need a
+- [Claiming Rewards](/rewards/claiming): which rewards arrive automatically, which need a
transaction you sign, and what the errors mean.
-- [The Affiliation System](/rewards/affiliation) — exact percentages, the
+- [The Affiliation System](/rewards/affiliation): exact percentages, the
`AffiliationTreasury` contract surface, and the 30-day payout periods.
-- [Invite Links](/rewards/invite-links) — creating, funding, sharing, revoking and tracking
+- [Invite Links](/rewards/invite-links): creating, funding, sharing, revoking and tracking
invite links. Read the secrecy warning before you generate one.
-- [Leaderboards](/rewards/leaderboards) — the trading leaderboard, its four metrics, and the
+- [Leaderboards](/rewards/leaderboards): the trading leaderboard, its four metrics, and the
endpoint behind it.
## Related
-- [Bonding curve fees and slippage](/tokens/fees-and-slippage) — where the 1% spread that
+- [Bonding curve fees and slippage](/tokens/fees-and-slippage): where the 1% spread that
funds affiliation comes from.
-- [Value flow](/concepts/value-flow) — how AE moves through the protocol.
-- [AffiliationTreasury contract](/contracts/affiliation-treasury) — the contract reference.
-- [X verification](/identity/x-verification) — linking your X account to your SuperheroID,
+- [Value flow](/concepts/value-flow): how AE moves through the protocol.
+- [AffiliationTreasury contract](/contracts/affiliation-treasury): the contract reference.
+- [X verification](/identity/x-verification): linking your X account to your SuperheroID,
the precondition for the rewards program.
-- [Refer & Earn on superhero.com](https://superhero.com/trends/invite) — both programs in the app.
+- [Refer & Earn on superhero.com](https://superhero.com/trends/invite): both programs in the app.
diff --git a/pages/rewards/invite-links.mdx b/pages/rewards/invite-links.mdx
index daff7c5..16e25b2 100644
--- a/pages/rewards/invite-links.mdx
+++ b/pages/rewards/invite-links.mdx
@@ -7,12 +7,12 @@ description: "Create AE-funded invite links, share them safely, revoke the unuse
An invite link is a one-time secret key wrapped in a URL, backed by AE you have locked in the
AffiliationTreasury contract. Whoever opens the link claims the AE and becomes your level-1
-invitee — which is how you start earning from the [affiliation system](/rewards/affiliation).
+invitee, which is how you start earning from the [affiliation system](/rewards/affiliation).
> **Invite links contain one-time secrets.**
>
> The link is not an identifier. It carries the **secret key** of a funded account, in the
-> URL fragment. Anyone who reads the link can claim the AE — no wallet of yours is needed and
+> URL fragment. Anyone who reads the link can claim the AE. No wallet of yours is needed and
> no confirmation is asked of you.
>
> - **Never paste an invite link into a shared channel**, a group chat, an issue tracker or a
@@ -20,7 +20,7 @@ invitee — which is how you start earning from the [affiliation system](/reward
> - **Never commit one to a repository**, and never write one into a log file, a shell
> history, an error report or a screenshot.
> - **The app never persists the secret.** Generated links are held in memory and cleared on
-> reload. If you close the dialog without copying, the secret is gone — the AE stays locked
+> reload. If you close the dialog without copying, the secret is gone. The AE stays locked
> on-chain and the only way to get it back is to revoke the code.
> - **Treat a leaked link as spent.** If one escapes, revoke it immediately.
@@ -45,12 +45,12 @@ https://superhero.com#invite_code=
1. Open [https://superhero.com/trends/invite](https://superhero.com/trends/invite) and
connect your wallet.
2. Find the **Generate Invites** card.
-3. Enter **Amount per invite (AE)** — the AE the recipient will claim — and **Number of
+3. Enter **Amount per invite (AE)** (the AE the recipient will claim) and **Number of
invites**.
4. Press **Generate invite links** and confirm the transaction. All the links in one batch
are registered in a single `register_invitation_code` call.
5. A dialog opens with the links. **Copy them now.** The dialog will not close until you tick
- "I have copied the invitation links" — escape, clicking outside and the close button are
+ "I have copied the invitation links". Escape, clicking outside and the close button are
all blocked.
## What it costs
@@ -65,7 +65,7 @@ plus = the æternity transaction fee for the call itself
```
`redemption_fee_cover` is **0.001 AE** (`10n ** 15n` aettos) in both the web app and the CLI,
-and that is also the contract's minimum — `register_invitation_code` aborts with
+and that is also the contract's minimum: `register_invitation_code` aborts with
`MINIMUM_REDEMPTION_AND_FEE_NOT_MEET` below `10 ^ 15` aettos. It funds the one-time account so
the recipient can pay for their own redemption transaction, which is signed by the invite's
key rather than the recipient's wallet. See
@@ -78,7 +78,7 @@ Ten links of 1 AE each cost 10.01 AE plus gas.
- Fund your wallet for `(amount + 0.001) × count` plus the transaction fee. The app's form
checks your balance against `amount × count` only.
-## Claiming — the recipient's side
+## Claiming: the recipient's side
The recipient opens the link and sees a card showing the gift amount and your address. They
connect a wallet and press **Claim reward**. The call is
@@ -103,7 +103,7 @@ Revoke any link that leaked, or any that nobody claimed and you want the AE back
- **From the CLI:** `node scripts/superhero-invite.mjs revoke `.
All three call `revoke_invitation_code(invitation_address)` with your wallet. The address is
-the public address of the one-time account, not the secret — it is safe to handle and it is
+the public address of the one-time account, not the secret. It is safe to handle and it is
what the invitation list shows you.
Revoking returns the `invitation_amount` to your wallet; the 0.001 AE fee cover was sent to
@@ -111,7 +111,7 @@ the one-time address at registration and is not part of the refund. Revoking ten
1 AE links returns 10 AE, and costs a transaction fee.
There is **no expiry**. An `invitation_codes` entry is the tuple
-`(inviter, invitation_amount, is_redeemed)` — it carries no timestamp, and no entrypoint
+`(inviter, invitation_amount, is_redeemed)`. It carries no timestamp, and no entrypoint
prunes the map. An unclaimed link stays claimable indefinitely, which is why revoking a leaked
one matters.
@@ -132,7 +132,7 @@ The **Your Invitations** list shows every code you registered, with one of three
The list is assembled from two sources:
-- **Middleware transaction history** — the app pages through the middleware's
+- **Middleware transaction history**: the app pages through the middleware's
`/v3/transactions` endpoint, filtered to the invitations contract and to your address as
the caller, and keeps the calls whose function name is `register_invitation_code` or
`revoke_invitation_code`:
@@ -145,7 +145,7 @@ The list is assembled from two sources:
**mainnet** treasury; the testnet treasury is
`ct_2QmAcPxY4TBbFmkSUhxU4UTwoRot8SMmZzaAKL6oyHmQqRL1rK`. On testnet, use the API below or a
middleware query against the testnet address.
-- **Superhero's API** — `GET /api/invitations` with an `inviter` filter, paginated, which
+- **Superhero's API**: `GET /api/invitations` with an `inviter` filter, paginated, which
returns claim status per invitation. The response fields are `receiver_address` (the
one-time invite address), `claimed`, `claimer_address`, `claimed_at` and `claim_tx_hash`.
It accepts `order_by` of `amount` or `created_at`, `order_direction` of `ASC` or `DESC`,
@@ -165,7 +165,7 @@ recoverable by revoking.
The agent skill ships `scripts/superhero-invite.mjs`, which talks to the same contract. It
requires `AE_PRIVATE_KEY` in the environment and runs against `https://mainnet.aeternity.io`.
-Run it from the skill's root directory — it reads `./contracts/CommunityFactory.aci.json` by
+Run it from the skill's root directory, because it reads `./contracts/CommunityFactory.aci.json` by
relative path.
```bash
@@ -199,17 +199,17 @@ ring gets you paid sooner than a deep chain.
Rewards accumulate in 30-day periods and `withdraw()` pays the current and previous period,
so withdraw monthly once you qualify. The Collect Rewards card tracks the gate and the live
-`get_accumulated_rewards` balance — see [Claiming Rewards](/rewards/claiming) and
+`get_accumulated_rewards` balance. See [Claiming Rewards](/rewards/claiming) and
[The Affiliation System](/rewards/affiliation).
## Related
-- [The Affiliation System](/rewards/affiliation) — the contract these links write to, the
+- [The Affiliation System](/rewards/affiliation): the contract these links write to, the
four-level split, and the `redemption_fee_cover` mechanism.
-- [Claiming Rewards](/rewards/claiming) — both sides of claiming: the recipient's gift and
+- [Claiming Rewards](/rewards/claiming): both sides of claiming: the recipient's gift and
your own `withdraw()`.
-- [Superhero Rewards Program](/rewards/rewards-program) — the other program on the same page.
-- [Invitations and affiliations API](/api-reference/invitations-and-affiliations) — the REST
+- [Superhero Rewards Program](/rewards/rewards-program): the other program on the same page.
+- [Invitations and affiliations API](/api-reference/invitations-and-affiliations): the REST
surface behind the invitation list.
-- [Refer & Earn on superhero.com](https://superhero.com/trends/invite) — generate, track and
+- [Refer & Earn on superhero.com](https://superhero.com/trends/invite): generate, track and
revoke links here.
diff --git a/pages/rewards/leaderboards.mdx b/pages/rewards/leaderboards.mdx
index 69945a7..44190ef 100644
--- a/pages/rewards/leaderboards.mdx
+++ b/pages/rewards/leaderboards.mdx
@@ -19,10 +19,10 @@ query parameter.
| Metric | Parameter | What it measures | Sort direction |
| --- | --- | --- | --- |
-| PnL | `pnl` | Profit and loss over the window, in USD | Descending — highest first |
+| PnL | `pnl` | Profit and loss over the window, in USD | Descending: highest first |
| ROI | `roi` | Return on invested capital over the window, as a percentage | Descending |
-| AUM | `aum` | Assets under management — current portfolio value, in USD | Descending |
-| MDD | `mdd` | Maximum drawdown over the window, as a percentage | **Ascending** — smallest drawdown first |
+| AUM | `aum` | Assets under management: current portfolio value, in USD | Descending |
+| MDD | `mdd` | Maximum drawdown over the window, as a percentage | **Ascending**: smallest drawdown first |
MDD is the one inversion: a small maximum drawdown is a good result, so the app sends
`sortDir=ASC` for that metric and `DESC` for the other three. If you call the endpoint
@@ -46,8 +46,8 @@ The 7d and 30d boards measure portfolio *growth*, which a deposit inflates and a
deflates. The All board measures return on invested capital. A wallet can rank very
differently on each.
-For the All window, the window-based figures — the sparkline, the maximum drawdown, and the
-buy and sell counts — cover **the last 365 days**. Only PnL and ROI are all-time.
+For the All window, the window-based figures (the sparkline, the maximum drawdown, and the
+buy and sell counts) cover **the last 365 days**. Only PnL and ROI are all-time.
## Timeframes
@@ -78,11 +78,11 @@ and an unparseable date disables the query. When a custom range is applied, `win
| `portfolio_value_usd_sparkline` | The inline sparkline, an array of point pairs |
| `volume_usd` | Present in the response; not rendered on the card |
-Rank is computed client-side from the page offset — `(page − 1) × 15 + index + 1` — so it is
+Rank is computed client-side from the page offset (`(page − 1) × 15 + index + 1`), so it is
the rank within the currently selected metric and window.
For a custom range, `created_tokens_count` and `owned_trends_count` are always zero, while
-`volume_usd` is populated — the reverse of the fixed windows.
+`volume_usd` is populated: the reverse of the fixed windows.
## Who appears
@@ -96,7 +96,7 @@ below one US dollar. Pass `minAumUsd=0` to include them.
Custom ranges bypass the snapshot and compute live. The candidate pool is then the top
addresses by USD volume of buy and sell transactions **inside that range** rather than
-all-time — sized by `maxCandidates`, default 100, maximum 500.
+all-time, sized by `maxCandidates`, default 100, maximum 500.
## Which trades count
@@ -123,7 +123,7 @@ Base URL is Superhero's API: `https://api.superhero.com` on mainnet.
| `sortBy` | `pnl`, `roi`, `aum`, `mdd`. Default `pnl`. |
| `sortDir` | `ASC` or `DESC`. Defaults to `DESC`, except `sortBy=mdd` which defaults to `ASC`. |
| `window` | `7d`, `30d`, `all`. Default `7d`. |
-| `points` | Number of sparkline points. **Ignored for `window` requests** — the snapshot fixes it at 8 for 7d, 12 for 30d and 24 for all. For a custom range it is clamped to 2–12, default 8. |
+| `points` | Number of sparkline points. **Ignored for `window` requests**: the snapshot fixes it at 8 for 7d, 12 for 30d and 24 for all. For a custom range it is clamped to 2–12, default 8. |
| `startDate`, `endDate` | ISO-8601, both required together, end after start. Switches to the live path; mutually exclusive with `window`. |
| `minAumUsd` | Integer, 0 or more. **Defaults to 1**, which excludes near-zero portfolios. |
| `tradingOnly` | Boolean. Custom ranges only: bases PnL and ROI on realised trading PnL rather than portfolio value change. |
@@ -148,7 +148,7 @@ curl "https://api.superhero.com/api/accounts/leaderboard?sortBy=mdd&sortDir=ASC&
## Freshness
**Server side**, a snapshot job runs every 10 minutes and recomputes all three windows in
-sequence — 7d, then 30d, then all — against a single reference timestamp captured at the
+sequence (7d, then 30d, then all) against a single reference timestamp captured at the
start of the run. Each window's rows are replaced inside one transaction, so a read never sees
a half-built board. A run still going when the next tick fires is skipped rather than queued.
@@ -162,7 +162,7 @@ windows is served from cache.
## How to climb it
-- Trade trend tokens regularly to build up volume — the top 100 by lifetime USD volume is the
+- Trade trend tokens regularly to build up volume. The top 100 by lifetime USD volume is the
entry condition for every metric.
- Keep PnL and ROI positive over time.
- Own and hold trending tokens to grow AUM.
@@ -172,7 +172,7 @@ leaderboard place is a certain cost against an uncertain ranking.
## Related
-- [Rewards & Affiliation](/rewards) — the two reward programs, neither of which feeds this board.
-- [Portfolio](/tokens/portfolio) — how an individual account's holdings and performance are presented.
-- [Accounts API](/api-reference/accounts) — the wider account and leaderboard REST surface.
-- [Trading leaderboard on superhero.com](https://superhero.com/trends/leaderboard) — the live board with its filters.
+- [Rewards & Affiliation](/rewards): the two reward programs, neither of which feeds this board.
+- [Portfolio](/tokens/portfolio): how an individual account's holdings and performance are presented.
+- [Accounts API](/api-reference/accounts): the wider account and leaderboard REST surface.
+- [Trading leaderboard on superhero.com](https://superhero.com/trends/leaderboard): the live board with its filters.
diff --git a/pages/rewards/rewards-program.mdx b/pages/rewards/rewards-program.mdx
index c786b7a..cb35112 100644
--- a/pages/rewards/rewards-program.mdx
+++ b/pages/rewards/rewards-program.mdx
@@ -10,7 +10,7 @@ to your on-chain SuperheroID, post about Superhero, and the backend scans your p
AE to your connected wallet.
This is **not** the affiliate program. Affiliate rewards come from trading fees and are
-withdrawn from a contract — see [The Affiliation System](/rewards/affiliation).
+withdrawn from a contract. See [The Affiliation System](/rewards/affiliation).
## Where it lives
@@ -18,14 +18,14 @@ The program is at the top of `https://superhero.com/trends/invite`, above the Re
cards. Connect your wallet first; nothing on the page tracks progress without an active
account.
-## Milestone 1 — Link X Account & Post
+## Milestone 1: Link X Account & Post
-**Reward: 50 AE.** Two steps, both of which must complete before milestone 2 unlocks.
+**Reward: 50 AE.** Two steps, both of which must complete before milestone 2 opens.
| Step | What you do |
| --- | --- |
| 1 | Link your X account to your on-chain SuperheroID. The button sends you to your profile page at `/users/`. |
-| 2 | Post about Superhero from that linked account. The post must mention Superhero — either a `superhero.com` link or a tag of `@superhero_chain`. |
+| 2 | Post about Superhero from that linked account. The post must mention Superhero: either a `superhero.com` link or a tag of `@superhero_chain`. |
The app pre-fills the compose intent with:
@@ -35,13 +35,13 @@ Check out @superhero_chain — earn AE tokens by posting on X! https://superhero
- **Your X account must have at least 100 followers.** Accounts under that threshold are not
eligible.
-- Milestone 1 is a **regular post** — it does not need your referral link. Only milestone 2
+- Milestone 1 is a **regular post** and does not need your referral link. Only milestone 2
requires the link.
Linking X also sets up your SuperheroID profile. See [SuperheroID](/identity/superhero-id)
and [X verification](/identity/x-verification).
-## Milestone 2 — Post on X & Earn
+## Milestone 2: Post on X & Earn
**Reward: 10–30 AE per qualifying post, plus a 50 AE streak bonus.** Locked until milestone 1
is paid.
@@ -65,9 +65,9 @@ Your per-post rate is set by your follower count:
Two counters run on this milestone:
-- **Posts rewarded** — the card tracks progress toward **10 rewarded posts** and reads
+- **Posts rewarded**: the card tracks progress toward **10 rewarded posts** and reads
"completed" at 10.
-- **Streak** — posting on 10 consecutive days earns an **extra 50 AE**. The card shows your
+- **Streak**: posting on 10 consecutive days earns an **extra 50 AE**. The card shows your
current streak out of 10 days. The bonus is recurring: when the streak reaches 10 it pays
out and the counter resets, so the next streak starts from zero.
@@ -80,10 +80,10 @@ At the base tier, milestone 1 plus 10 posts plus one streak bonus adds up to 200
| --- | --- | --- |
| Onboarding | Your first post containing `superhero.com` or `superhero_chain` | One-time |
| Per-post | A post containing your referral link | Once per UTC day, at your follower tier's rate |
-| Streak bonus | 10 consecutive UTC days of referral posts | Recurring — the counter resets and starts again |
+| Streak bonus | 10 consecutive UTC days of referral posts | Recurring: the counter resets and starts again |
-An account below the minimum follower count accrues nothing — no qualifying posts, no
-per-post rewards, no streak progress — though already-accrued payouts still settle.
+An account below the minimum follower count accrues nothing (no qualifying posts, no
+per-post rewards, no streak progress), though already-accrued payouts still settle.
### What counts as a qualifying post
@@ -125,13 +125,13 @@ backend, which scans X on your behalf.
countdown. A submit past the cap returns HTTP 429 and the scan is skipped. The cap is claimed
atomically, so retries and concurrent requests cannot exceed it.
-- A handled scan failure — an X outage, say — still consumes the slot. An unexpected failure
+- A handled scan failure, such as an X outage, still consumes the slot. An unexpected failure
such as a database error releases it.
- Recovering a pending or failed payout never calls X, so it runs **before** the cap check. A
recheck that finds a stuck payout can settle it even while the scan itself is cooling down.
**A successful check can still pay nothing.** A recheck that returns HTTP 200 may carry an
-`error` string explaining why no reward was sent — below the follower minimum, the X identity
+`error` string explaining why no reward was sent: below the follower minimum, the X identity
was already rewarded on another address, or the payout transaction failed. The card shows that
string as a red banner.
@@ -147,10 +147,10 @@ of the rewards page. Rewards may be reportable as income.
## Related
-- [Claiming Rewards](/rewards/claiming) — what arrives automatically versus what you sign for.
-- [Invite Links](/rewards/invite-links) — the other half of the `/trends/invite` page.
-- [The Affiliation System](/rewards/affiliation) — the on-chain referral system, which has
+- [Claiming Rewards](/rewards/claiming): what arrives automatically versus what you sign for.
+- [Invite Links](/rewards/invite-links): the other half of the `/trends/invite` page.
+- [The Affiliation System](/rewards/affiliation): the on-chain referral system, which has
entirely different rules.
-- [X verification](/identity/x-verification) — the linking step behind milestone 1.
-- [Rewards page on superhero.com](https://superhero.com/trends/invite) — where you connect a
+- [X verification](/identity/x-verification): the linking step behind milestone 1.
+- [Rewards page on superhero.com](https://superhero.com/trends/invite): where you connect a
wallet, link X and press Check rewards.
diff --git a/pages/social/chat.mdx b/pages/social/chat.mdx
index 41a7f97..2e46240 100644
--- a/pages/social/chat.mdx
+++ b/pages/social/chat.mdx
@@ -26,7 +26,7 @@ Live at `https://superhero.com/chat`.
| Direct messages | NIP-04 encrypted events, kind 4 |
| Default relay | `wss://relay.superhero.chat` |
-The relay — not a contract — is the authority on who is in a room. For token rooms that
+The relay, not a contract, is the authority on who is in a room. For token rooms that
authority is exercised by a bot the API controls, which adds and removes members as balances
change.
@@ -34,7 +34,7 @@ change.
| Route | Purpose |
| --- | --- |
-| `/chat` | Inbox — All, Communities and DMs tabs, each with a count |
+| `/chat` | Inbox with All, Communities and DMs tabs, each with a count |
| `/chat/dm/:address` | A direct message thread |
| `/chat/:saleAddress` | A token's community room |
| `/chat/:saleAddress/info` | Room info: metadata, members, mute |
@@ -50,14 +50,14 @@ m/44'/1237'/0'/0/
```
Coin type 1237 is the registered Nostr type, and the account index matches the active æternity
-account's index — so your npub is identical on web and mobile without any sync.
+account's index, so your npub is identical on web and mobile without any sync.
The derivation runs the same user-verification step the transaction signer uses (passphrase or
passkey), unseals the mnemonic transiently, derives only the Nostr key, and returns only that
-key — never the mnemonic, the seed, or the æternity spending key. Above it sits a NIP-07-shaped
+key. It never returns the mnemonic, the seed, or the æternity spending key. Above it sits a NIP-07-shaped
identity provider (`getPublicKey`, `signEvent`, `nip04Encrypt`, `nip04Decrypt`) that keeps the
secret key in a closure. Once the session locks, the provider refuses to sign. Read-only flows
-— public room history and metadata — work with no identity at all.
+(public room history and metadata) work with no identity at all.
## Linking your Nostr key to your address
@@ -75,7 +75,7 @@ POST /api/address-links/nostr/unclaim/submit -> { txHash }
```
**Two proofs are required.** The `signature` is the æternity wallet's signature over the exact
-`message` string — 128 lowercase hex characters, no prefix — proving the address consents. The
+`message` string (128 lowercase hex characters, no prefix), proving the address consents. The
`nostr_event` is a JSON-serialised Nostr event proving control of the key: kind `22242`, empty
tags, the claim message verbatim as `content`, Schnorr-signed. The backend rejects the submit
if the event's kind is wrong, its `content` does not match the expected link message, its
@@ -113,8 +113,8 @@ used for NIP-42 AUTH on private rooms.
The API runs a reactive pipeline off the middleware's live transaction stream:
1. AEX-9 `Transfer` events on community token contracts are applied to a balance ledger of raw
- base units, clamped at zero. **Every** transfer is indexed — plain wallet-to-wallet, DEX
- swap, airdrop — not only bonding-curve buys and sells, so a balance cannot go stale because
+ base units, clamped at zero. **Every** transfer is indexed, including plain wallet-to-wallet
+ transfers, DEX swaps and airdrops as well as bonding-curve buys and sells, so a balance cannot go stale because
the tokens moved outside the curve.
2. A balance change, a `CommunityManagement` state change (threshold, moderator set, muted set
or privacy flag), or a Nostr link change each trigger a recheck.
@@ -152,8 +152,8 @@ The composer derives its gate from those fields:
| `readable` is true | none | Post |
| The room is absent from the list | `not-eligible` | Buy the token |
-Provisioning is not instant. The client polls while a room is `pending_add` — every 5 seconds
-for the first minute, then every 15 seconds, backing off to roughly 10 minutes — and fires one
+Provisioning is not instant. The client polls while a room is `pending_add` (every 5 seconds
+for the first minute, then every 15 seconds, backing off to roughly 10 minutes) and fires one
`recheck` so a desync heals on its own.
### Muting a room
@@ -175,8 +175,8 @@ canonicalRoomMuteHash(true, undefined) = sha256("muted=1;mute_all=-")
canonicalRoomMuteHash(false, false) = sha256("muted=0;mute_all=0")
```
-`mute_all` is tri-state on the wire — `true`, `false`, or omitted meaning "leave the
-account-wide switch alone" — and the absent case serializes as `-` so it cannot collide with
+`mute_all` is tri-state on the wire: `true`, `false`, or omitted, meaning "leave the
+account-wide switch alone". The absent case serializes as `-` so it cannot collide with
either boolean. The message string must match the backend byte for byte. On an expired or
consumed nonce the client retries once with a fresh challenge.
@@ -184,8 +184,8 @@ consumed nonce the client retries once with a fresh challenge.
`NOSTR_RELAY_URLS` is a comma-separated list of `wss://` origins. It defaults to
`wss://relay.superhero.chat`, so chat works out of the box; a runtime value overrides it. Each
-entry passes a scheme guard — `wss://` always, `ws://` only on `localhost`, `127.0.0.1` or
-`[::1]` — and is de-duplicated by origin. A malformed or insecure entry is dropped. With no
+entry passes a scheme guard (`wss://` always, `ws://` only on `localhost`, `127.0.0.1` or
+`[::1]`) and is de-duplicated by origin. A malformed or insecure entry is dropped. With no
usable relay, the chat entry points render an unavailable notice.
`/chat/settings/relays` lists the configured relays with per-relay read and write toggles, a
@@ -207,19 +207,6 @@ Nothing is on chain and nothing is on a Superhero server.
| Relay connection timeout | 5 s |
| Online-status timeout | 5 min |
-## Quali.chat rooms
-
-Besides the in-app Nostr chat, each token page links out to rooms on Quali.chat:
-
-| Surface | Technology | Where |
-| --- | --- | --- |
-| In-app chat | Nostr, NIP-29 and NIP-04, relay `wss://relay.superhero.chat` | `/chat` and its sub-routes |
-| Quali.chat rooms | Matrix — `m.room.message` events, `m.text` message types, rooms addressed as `#ROOM:quali.chat` | Linked from the token page |
-
-The token page offers a public room and a holders-only private room on `app.quali.chat`, named
-from the token's name and address. Those are outbound links to a separate product, not the
-Nostr client.
-
## What chat is not
- **Not permanent.** A relay can drop history, go away, or refuse to serve you. Nothing is
@@ -232,11 +219,11 @@ Nostr client.
## Related
-- [SuperheroID](/identity/superhero-id) — the profile's `nostr` field and how it is linked.
-- [Moderation](/social/moderation) — the `CommunityManagement` state the eligibility pipeline
+- [SuperheroID](/identity/superhero-id): the profile's `nostr` field and how it is linked.
+- [Moderation](/social/moderation): the `CommunityManagement` state the eligibility pipeline
reads, and what a mute does to a room.
-- [Notifications](/social/notifications) — `room-membership` and `room-messages` are two of the
+- [Notifications](/social/notifications): `room-membership` and `room-messages` are two of the
notification types.
-- [Tokens overview](/tokens/overview) — a room exists because a token does.
-- [NIP-29: relay-based groups](https://github.com/nostr-protocol/nips/blob/master/29.md) — the
+- [Tokens overview](/tokens/overview): a room exists because a token does.
+- [NIP-29: relay-based groups](https://github.com/nostr-protocol/nips/blob/master/29.md): the
specification behind community rooms.
diff --git a/pages/social/comments.mdx b/pages/social/comments.mdx
index 08dfa1d..89c529f 100644
--- a/pages/social/comments.mdx
+++ b/pages/social/comments.mdx
@@ -5,8 +5,8 @@ description: "Comments are posts with a parent marker — how threading works, a
# Comments
-A comment on Superhero is a post. Same contract, same entrypoint, same permanence — the only
-difference is a marker in the `media` list naming the parent. That one convention gives you
+A comment on Superhero is a post, written through the same contract and entrypoint and just as
+permanent. The only difference is a marker in the `media` list naming the parent. That one convention gives you
arbitrarily deep threads with no threading support in the contract.
## The convention
@@ -28,7 +28,7 @@ and a parent can never be deleted, so a thread can never be orphaned.
## How the indexer reads it
-The indexer reads the call's second argument — the media list — and looks for an entry
+The indexer reads the call's second argument (the media list) and looks for an entry
containing the literal `comment:`. It takes everything after that string as the parent id,
trims it, and appends `_v3` if it is not there already. An entry with `comment:` and nothing
after it is stored as a top-level post.
@@ -40,11 +40,11 @@ Emit `comment:` plus the id with the `_v3` suffix. That is what the app and the
On ingest the indexer looks the parent up, retrying three times with exponential backoff from
100 ms, because backward sync does not guarantee that a parent is processed before its child.
If the parent is still missing after the retries, the comment is stored as a standalone
-top-level post — `post_id` is set to null and it is ranked like any other post.
+top-level post: `post_id` is set to null and it is ranked like any other post.
A second sweep catches the race the other way round. About ten seconds after boot, one
`UPDATE` detaches every comment older than one hour whose parent still does not exist, and a
-second `UPDATE` recomputes `total_comments` for every parent whose count is stale — which also
+second `UPDATE` recomputes `total_comments` for every parent whose count is stale, which also
fixes parents that arrived after their children. The one-hour grace period means a comment
whose parent is merely running behind in the sync is not detached.
@@ -54,7 +54,7 @@ reverses that later.
## Threading and depth
Nothing limits nesting. `/post/:slug` resolves the post, extracts its parent id, fetches that
-post, extracts *its* parent, and repeats — building the full ancestor chain oldest-first before
+post, extracts *its* parent, and repeats, building the full ancestor chain oldest-first before
rendering. The walk is bounded by a visited set and a limit of 100 hops.
The page renders ancestors above the target post and scrolls the target into the centre of the
@@ -74,7 +74,7 @@ the subtree.
| `/post/:slug/comment/:id` | Legacy; redirects to `/post/` plus the comment id |
Post ids are stored with a `_v3` suffix and every in-app link strips it. A link built from a
-raw API id still works — the resolver re-adds the suffix.
+raw API id still works because the resolver re-adds the suffix.
## Read comments from the API
@@ -112,7 +112,7 @@ node scripts/superhero-comment.mjs get 50 2 # limit, page
```
`get` is a plain read against `https://api.superhero.com/api/posts//comments` and needs no
-wallet. `comment_post_id` is the bare integer — add `_v3` before you use it as an API id or as
+wallet. `comment_post_id` is the bare integer. Add `_v3` before you use it as an API id or as
a parent for a further reply.
A comment pays gas only, the same as a post.
@@ -122,7 +122,7 @@ A comment pays gas only, the same as a post.
The web composer applies the same 280-character limit to replies as to posts, and offers the
same emoji, GIF and image attachments. The contract applies no limit of its own, and the
indexer applies the same 5,000-character truncation and five-media-entry cap it applies to
-posts — see [Posting](/social/posting).
+posts. See [Posting](/social/posting).
The `comment:` marker is not a URL, so the indexer's media filter drops it from the stored
`media` array. A comment's API `media` field contains only its own attachments, while `tx_args`
@@ -130,7 +130,7 @@ still carries the marker. Do not look for the parent id in `media` on an API res
## How comments feed ranking
-A comment is never ranked as a standalone popular item — the candidate query requires
+A comment is never ranked as a standalone popular item, because the candidate query requires
`post_id IS NULL`. Instead the whole reply tree rolls up into the parent's score, counted
recursively to a depth cap of 50, with replies written by the root post's own author excluded
and hidden comments pruning their entire subtree. Comments carry the heaviest default weight of
@@ -138,9 +138,9 @@ any signal, 2.5. See [The Feed](/social/feed).
## Related
-- [Posting](/social/posting) — the entrypoint, the ids, and the content conventions comments
+- [Posting](/social/posting): the entrypoint, the ids, and the content conventions comments
share.
-- [The Feed](/social/feed) — where comment counts feed into the popular ranking.
-- [Notifications](/social/notifications) — a reply is the `post-comment` notification type.
-- [The Tipping contract](/contracts/tipping) — the contract reference.
-- [Posts API](/api-reference/posts) — the endpoint-level reference for posts and comments.
+- [The Feed](/social/feed): where comment counts feed into the popular ranking.
+- [Notifications](/social/notifications): a reply is the `post-comment` notification type.
+- [The Tipping contract](/contracts/tipping): the contract reference.
+- [Posts API](/api-reference/posts): the endpoint-level reference for posts and comments.
diff --git a/pages/social/delegated-posting.mdx b/pages/social/delegated-posting.mdx
index bfc0bf3..8818b58 100644
--- a/pages/social/delegated-posting.mdx
+++ b/pages/social/delegated-posting.mdx
@@ -23,7 +23,7 @@ post_without_tip_sig(
Stateful, not payable, returns the new `tip_id`, and emits the same
`PostWithoutTipReceived(author, title)` event as a direct post. The stored `tip_meta` records
-`sender = author`, and the indexer treats a delegated post exactly like a direct one — the two
+`sender = author`, and the indexer treats a delegated post exactly like a direct one. The two
paths are indistinguishable from the outside.
```sophia
@@ -42,7 +42,7 @@ separator:
message = title ++ media[0] ++ media[1] ++ ... ++ media[n-1]
```
-Media order is part of the signature — reordering the list produces a different digest. An
+Media order is part of the signature: reordering the list produces a different digest. An
empty media list signs the bare title.
### The digest
@@ -60,9 +60,9 @@ in the contract:
| Bytes | Hex | Meaning |
| --- | --- | --- |
-| 1 | `1a` | 26 — the length of the prefix string |
+| 1 | `1a` | 26, the length of the prefix string |
| 26 | `61657465726e697479205369676e6564204d6573736167653a0a` | `aeternity Signed Message:` plus a newline |
-| 1 | `20` | 32 — the length of the body that follows |
+| 1 | `20` | 32, the length of the body that follows |
This is the æternity personal-message framing the SDK's `hashMessage` produces, and it is what
stops a signature captured here from being replayed as a raw transaction signature. The scheme
@@ -98,7 +98,7 @@ export function postDigest(title, media) {
Sign `postDigest(title, media)` with the author's Ed25519 key and hand the relayer the tuple
`(title, media, author, signature)`. The signature is a 64-byte value; a 128-character
-lowercase hex string with no prefix — the convention the address-links API uses — is a good
+lowercase hex string with no prefix (the convention the address-links API uses) is a good
wire format.
If you are signing from a connected wallet rather than a raw key, the wallet's `signMessage`
@@ -149,16 +149,16 @@ when the relayer submitted it, not when the author signed it.
## When to use it
-Use `post_without_tip_sig` when the author cannot pay — new-user onboarding before the wallet
+Use `post_without_tip_sig` when the author cannot pay: new-user onboarding before the wallet
is funded, or a custodial surface that holds no user key but can forward a signature. For
everything else prefer `post_without_tip`: it is simpler, and the author pays only gas.
## Related
-- [Posting](/social/posting) — the direct path, the data model, and the shared conventions.
-- [The Tipping contract](/contracts/tipping) — the contract reference for both entrypoints.
-- [AddressLink](/identity/address-link) — the same signed-message construction, with a
+- [Posting](/social/posting): the direct path, the data model, and the shared conventions.
+- [The Tipping contract](/contracts/tipping): the contract reference for both entrypoints.
+- [AddressLink](/identity/address-link): the same signed-message construction, with a
contract-held nonce.
-- [Contract security](/contracts/security) — the protocol's wider security model.
-- [Sophia standard library](https://github.com/aeternity/aesophia/blob/master/docs/sophia_stdlib.md) —
+- [Contract security](/contracts/security): the protocol's wider security model.
+- [Sophia standard library](https://github.com/aeternity/aesophia/blob/master/docs/sophia_stdlib.md):
the reference for `Crypto.verify_sig`.
diff --git a/pages/social/feed.mdx b/pages/social/feed.mdx
index aeebcae..669278b 100644
--- a/pages/social/feed.mdx
+++ b/pages/social/feed.mdx
@@ -32,9 +32,9 @@ A separate `filterBy` query parameter filters the assembled list client-side:
The candidate set is posts that are:
-- **not hidden** — `is_hidden = false`. The indexer sets `is_hidden` when any entry in the
+- **not hidden**: `is_hidden = false`. The indexer sets `is_hidden` when any entry in the
post's media list contains the substring `hidden`;
-- **top-level** — `post_id IS NULL`, so comments are never ranked as standalone items;
+- **top-level**: `post_id IS NULL`, so comments are never ranked as standalone items;
- **within the newest 10,000 posts** by `created_at`.
Popularity is computed inside that rolling pool, not across every post ever written.
@@ -101,9 +101,9 @@ leaves the order unchanged; scaling only matters relative to other signals.
| `tipsAmountAE` | `SUM(amount)` over the post's tips, excluding tips from the post's author |
| `tipsCount` | `COUNT(*)` over the same set |
| `uniqueTippers` | `COUNT(DISTINCT sender_address)` over the same set |
-| `reads` | `SUM(reads)` from the daily read counts — see below |
+| `reads` | `SUM(reads)` from the daily read counts (see below) |
| `trendingBoost` | `min(1, highestTrendingTagScore / 100)` across the post's topics. The single strongest topic, not the sum. |
-| `contentQuality` | A heuristic over the post text — see below |
+| `contentQuality` | A heuristic over the post text (see below) |
| `interactionsPerHour` | `interactionsInLast48h / max(1, min(ageHours, 48))`, where interactions are comments plus tips |
Velocity counts recent activity over a 48-hour window rather than the post's lifetime, so an
@@ -111,7 +111,7 @@ old post that catches fire today registers full velocity.
### Reads
-A read is recorded by `GET /api/posts/{id}` — the single-post fetch — and is deduplicated and
+A read is recorded by `GET /api/posts/{id}`, the single-post fetch, and is deduplicated and
capped twice:
- **At recording time**, a viewer is identified by a SHA-256 hash of client IP plus
@@ -152,7 +152,7 @@ ranking.
| `freshnessFactor` | 1 for the first 120 hours (5 days), then a linear fade to 0 at 240 hours (10 days) |
| `stalePenalty` | 0 until 240 hours; then ramps linearly over a further 240 hours to a maximum of 5, **only** if the post has had no comment or tip in the last 48 hours. Any recent interaction zeroes it. Plugin items without interaction timestamps are never penalised. |
| `tieRotation` | A deterministic value in `[0, 0.05)` from an FNV-1a hash of `postId + hourBucket`, added before gravity. It reorders near-tied posts every hour without touching genuinely different scores. |
-| `dailyShuffle` | A deterministic multiplier in `[0.8, 1.2]` from a hash of `postId + UTC day`. Applied only to the default feed — any weight override switches it off so personalized queries stay deterministic. |
+| `dailyShuffle` | A deterministic multiplier in `[0.8, 1.2]` from a hash of `postId + UTC day`. Applied only to the default feed. Any weight override switches it off so personalized queries stay deterministic. |
After scoring, each page is **reranked for author diversity**: candidates are oversampled by 4x
(minimum 80), one item per distinct author is taken first, and duplicates backfill only when
@@ -187,7 +187,7 @@ GET /api/posts?order_by=created_at&order_direction=DESC&limit=10&page=1
"appliedWeights": { "comments": 2.5, "reads": 2.25, "...": 0 } }
```
-`appliedWeights` is the resolved weight map after your scale multipliers — the quickest way to
+`appliedWeights` is the resolved weight map after your scale multipliers. It is the quickest way to
check that an override landed.
`GET /api/posts` accepts more filters than the home feed uses:
@@ -197,7 +197,7 @@ check that an override landed.
| `order_by` | `total_comments` or `created_at` |
| `order_direction` | `ASC` or `DESC` |
| `search` | Free-text over content and topics, at most 100 characters |
-| `account_address` | Restrict to one author — this is what a profile feed uses |
+| `account_address` | Restrict to one author; this is what a profile feed uses |
| `topics` | Comma-separated topic names, partial matching |
| `limit`, `page` | Pagination |
@@ -212,13 +212,13 @@ and `created_at`, plus a `slug` used for SEO links.
## What else is in the feed
In latest mode the app runs a second infinite query over `GET /api/tokens` ordered by
-`created_at`, maps each new token sale and trade into a feed item, and merges the two lists —
+`created_at`, maps each new token sale and trade into a feed item, and merges the two lists,
so a brand-new community token shows up in the feed without anyone posting about it.
-The API's token socket emits two channels, `token-updated` and `token-history` — see
+The API's token socket emits two channels, `token-updated` and `token-history`; see
[WebSocket API](/api-reference/websocket). Posts are not pushed over a socket: the feed
refetches on window focus and treats data as fresh for 10 seconds. Your own new post is the
-exception — the composer inserts it optimistically before the indexer has seen it; see
+exception: the composer inserts it optimistically before the indexer has seen it; see
[Posting](/social/posting).
## When popular runs out
@@ -239,10 +239,10 @@ See [Hashtags & Topics](/social/hashtags-and-topics) for how a tag becomes a top
## Related
-- [Posting](/social/posting) — how an item gets into the feed.
-- [Tipping](/social/tipping) — three of the eight scalable ranking signals come from tips.
-- [Comments](/social/comments) — the thread count that carries the heaviest weight.
-- [Hashtags & Topics](/social/hashtags-and-topics) — topic feeds and where `trendingBoost`
+- [Posting](/social/posting): how an item gets into the feed.
+- [Tipping](/social/tipping): three of the eight scalable ranking signals come from tips.
+- [Comments](/social/comments): the thread count that carries the heaviest weight.
+- [Hashtags & Topics](/social/hashtags-and-topics): topic feeds and where `trendingBoost`
comes from.
-- [Posts API](/api-reference/posts) — the endpoint-level reference.
-- [WebSocket API](/api-reference/websocket) — the channels behind the live activity items.
+- [Posts API](/api-reference/posts): the endpoint-level reference.
+- [WebSocket API](/api-reference/websocket): the channels behind the live activity items.
diff --git a/pages/social/hashtags-and-topics.mdx b/pages/social/hashtags-and-topics.mdx
index ffdb520..992880f 100644
--- a/pages/social/hashtags-and-topics.mdx
+++ b/pages/social/hashtags-and-topics.mdx
@@ -10,13 +10,13 @@ The hashtag is where Superhero's social layer meets its market layer:
> Trends = Hashtags = Communities = Tokens.
A `#tag` in a post is a plain substring on chain. Off chain it becomes a topic with its own
-feed, a row in the trending index, and — if someone launches one — a bonding-curve token with a
+feed, a row in the trending index and, if someone launches one, a bonding-curve token with a
treasury, a DAO and a chat room.
## Writing a tag
Type `#` followed by a name. The composer offers a picker while you type, and the resulting
-text goes on chain verbatim — there is no separate tag field in the contract.
+text goes on chain verbatim. There is no separate tag field in the contract.
Which characters count as part of a tag comes from the community factory's collections: each
collection publishes an `allowed_name_chars` rule set, and the composer merges every
@@ -25,7 +25,7 @@ through `9` and `A` through `Z`; other collections cover Chinese, Arabic and Rus
collection added later is picked up automatically. A tag is capped at 50 characters for the
picker's purposes.
-A name containing a character no collection allows — a `.` or a `_`, for example — truncates
+A name containing a character no collection allows (a `.` or a `_`, for example) truncates
when rendered, so the picker does not offer it.
Account mentions use the same trigger mechanics but a different storage form: `@name` in the
@@ -42,8 +42,8 @@ A tag may carry an optional suffix describing how it should render:
#SYMBOL{mode=advanced} adds the price and a chart
```
-The symbol itself is never modified. The three named modes are sugar over three booleans —
-`chart`, `price` and `change` — each settable to `1` or `0`, and the ladder is strictly
+The symbol itself is never modified. The three named modes are sugar over three booleans,
+`chart`, `price` and `change`, each settable to `1` or `0`, and the ladder is strictly
monotonic: tag is a subset of compact, which is a subset of advanced. The `tag` preset carries
`change: true`; turning the badge off requires `change=0` explicitly.
@@ -67,8 +67,8 @@ takes a case-insensitive exact match on the token's name or symbol, and falls ba
result.
The rendered pill also shows a 24-hour change badge, from the mention's embedded performance or
-from `GET /api/tokens/{address}/performance`. A tag with no matching token still links — the
-token page handles the miss — so a hashtag is always navigable.
+from `GET /api/tokens/{address}/performance`. A tag with no matching token still links (the
+token page handles the miss), so a hashtag is always navigable.
## From tag to topic
@@ -101,13 +101,13 @@ GET /api/trending-tags?order_by=score&order_direction=DESC&limit=100&page=1&sear
| Parameter | Values |
| --- | --- |
-| `order_by` | `score`, `source` or `created_at` — anything else is a 400 |
+| `order_by` | `score`, `source` or `created_at`; anything else is a 400 |
| `order_direction` | `ASC` or `DESC` |
| `limit`, `page` | 1 to 100, default 100 |
| `search` | Case-insensitive substring on `tag`, at most 100 characters |
Each row carries `id`, `tag`, `score`, `source`, `description` (nullable) and `created_at`,
-plus a left-joined `token` matched on `token.name = trending_tag.tag` — so a trending tag that
+plus a left-joined `token` matched on `token.name = trending_tag.tag`, so a trending tag that
already has a community token arrives with it attached. A single tag is at
`GET /api/trending-tags/{tag}`, 404 when unknown.
@@ -123,7 +123,7 @@ than ageing out.
The index drives the trending rail beside the feed, the trending pill carousel, and the trend
cloud at `/trends/visx`, which renders tags sized by score. It also supplies the popular feed's
-`trendingBoost` term, normalised as `min(1, highestTagScoreAmongThePostsTopics / 100)` — see
+`trendingBoost` term, normalised as `min(1, highestTagScoreAmongThePostsTopics / 100)`; see
[The Feed](/social/feed). A score above 100 adds nothing extra.
## Topics and trending tags are different things
@@ -134,7 +134,7 @@ They are two tables with two independent writers, joined only by name.
| --- | --- | --- |
| Written by | The post indexer, from `#tag` in post content | The trending provider, via `POST /api/trending-tags` |
| Endpoint | `GET /api/topics…` | `GET /api/trending-tags…` |
-| Has posts behind it | Always — a topic exists because a post mentioned it | Not necessarily |
+| Has posts behind it | Always. A topic exists because a post mentioned it | Not necessarily |
| Lifetime | Permanent, like the posts | Until the next push replaces the index |
Not every topic gets a trending row, and a trending tag can exist with no posts behind it. The
@@ -145,8 +145,8 @@ same camelCase-splitting and uppercasing rule.
A topic becomes a token when somebody creates one. That is a permissionless action: open
`https://superhero.com/trends/create`, pick a name, and the community factory deploys the whole
-stack — an AEX-9 token, an exponential bonding curve, an affiliation token sale, a DAO that
-owns and benefits from the sale, and a `CommunityManagement` contract — then registers the
+stack (an AEX-9 token, an exponential bonding curve, an affiliation token sale, a DAO that
+owns and benefits from the sale, and a `CommunityManagement` contract), then registers the
community in its on-chain registry.
The naming rules come from the collection you create in:
@@ -158,9 +158,9 @@ The naming rules come from the collection you create in:
| Allowed characters | The collection's `allowed_name_chars` |
| Allowed length | The collection's `allowed_name_length` |
-Once the token exists, every `#tag` matching its name or symbol in any post — including posts
-written before the token existed — resolves to its page. Nothing rewrites the old posts;
-resolution simply starts succeeding.
+Once the token exists, every `#tag` matching its name or symbol in any post, including posts
+written before the token existed, resolves to its page. Nothing rewrites the old posts;
+resolution starts succeeding.
From there the token layer takes over: price is set by the bonding curve, 1% of every trade
splits between the community DAO and the affiliation system, and holders govern the treasury.
@@ -184,9 +184,9 @@ at the end is on chain in a different one; everything in between is the indexer.
## Related
-- [Posting](/social/posting) — where the tag is written, and the other content conventions.
-- [The Feed](/social/feed) — topic feeds and the `trendingBoost` ranking signal.
-- [Tokens overview](/tokens/overview) — what a hashtag becomes once it has a token.
-- [Trending score](/tokens/trending-score) — the token-side ranking this index feeds.
-- [Collections and naming](/tokens/collections-and-naming) — the character and length rules a
+- [Posting](/social/posting): where the tag is written, and the other content conventions.
+- [The Feed](/social/feed): topic feeds and the `trendingBoost` ranking signal.
+- [Tokens overview](/tokens/overview): what a hashtag becomes once it has a token.
+- [Trending score](/tokens/trending-score): the token-side ranking this index feeds.
+- [Collections and naming](/tokens/collections-and-naming): the character and length rules a
tag must satisfy to become a token.
diff --git a/pages/social/index.mdx b/pages/social/index.mdx
index 24c7362..0568744 100644
--- a/pages/social/index.mdx
+++ b/pages/social/index.mdx
@@ -6,45 +6,45 @@ description: "Posting, commenting, tipping, hashtags, chat, notifications and mo
# Social
Posts and comments are written to the `Tipping` v3 contract, so they are permanent and
-attributable. Chat is deliberately off chain: it runs over Nostr relays for realtime messaging.
-Know which is which before you publish anything.
+attributable. Chat is off chain by design and runs over Nostr relays for realtime messaging, so check
+which layer you are using before you publish anything.
## On chain or not
| Surface | Where it lives | Permanent? |
| --- | --- | --- |
-| Posts | `Tipping` v3 contract, one entry per `tip_id` | Yes — no edit, no delete |
+| Posts | `Tipping` v3 contract, one entry per `tip_id` | Yes. No edit, no delete |
| Comments | The same contract, with a `comment:` media prefix | Yes |
-| Tips | A plain AE transfer with a payload naming the post | Yes — it is a transaction |
+| Tips | A plain AE transfer with a payload naming the post | Yes. It is a transaction |
| Hashtags and topics | Derived by the indexer from post content | Follow the posts |
| Trending tags | The Superhero API's trending index | No |
-| Chat messages | Nostr relays, off chain | No — relay-dependent |
+| Chat messages | Nostr relays, off chain | No. Relay-dependent |
| Notifications | The Superhero API, delivered over a socket and web push | No |
| Moderation state | `CommunityManagement.aes` per community | Yes; it gates chat rooms |
## In this section
-- [The Feed](/social/feed) — the popular and latest feeds, the ranking formula and its
+- [The Feed](/social/feed): the popular and latest feeds, the ranking formula and its
weights, and how the infinite feed pages.
-- [Posting](/social/posting) — the contract call, the limits, the content encoding, and both
+- [Posting](/social/posting): the contract call, the limits, the content encoding, and both
the UI and CLI paths.
-- [Delegated & Gasless Posting](/social/delegated-posting) — `post_without_tip_sig`, for
+- [Delegated & Gasless Posting](/social/delegated-posting): `post_without_tip_sig`, for
relayers.
-- [Comments](/social/comments) — the `comment:` media-prefix convention that turns a post into
+- [Comments](/social/comments): the `comment:` media-prefix convention that turns a post into
a reply.
-- [Tipping](/social/tipping) — a plain AE transfer with a payload that names the post.
-- [Hashtags & Topics](/social/hashtags-and-topics) — the bridge from the social layer to the
+- [Tipping](/social/tipping): a plain AE transfer with a payload that names the post.
+- [Hashtags & Topics](/social/hashtags-and-topics): the bridge from the social layer to the
token layer.
-- [Chat](/social/chat) — Nostr-based DMs and token-gated community rooms.
-- [Notifications](/social/notifications) — every notification type, its channels, and where a
+- [Chat](/social/chat): Nostr-based DMs and token-gated community rooms.
+- [Notifications](/social/notifications): every notification type, its channels, and where a
click lands.
-- [Moderation](/social/moderation) — community moderation through token-holder governance.
+- [Moderation](/social/moderation): community moderation through token-holder governance.
## Related
-- [On-chain social](/concepts/on-chain-social) — the design argument for putting content on a
+- [On-chain social](/concepts/on-chain-social): the design argument for putting content on a
chain.
-- [The Tipping contract](/contracts/tipping) — the contract-level reference for the content
+- [The Tipping contract](/contracts/tipping): the contract-level reference for the content
layer.
-- [Your first post](/getting-started/first-post) — the shortest path from a funded wallet to a
+- [Your first post](/getting-started/first-post): the shortest path from a funded wallet to a
published post.
diff --git a/pages/social/moderation.mdx b/pages/social/moderation.mdx
index 89c781f..87ca4c1 100644
--- a/pages/social/moderation.mdx
+++ b/pages/social/moderation.mdx
@@ -23,7 +23,7 @@ community creation.
| `minimum_token_threshold` | `int` | Raw base-unit token balance required for write access in this community |
| `is_private` | `bool` | Whether the community is private |
| `moderator_accounts` | set of `address` | The current moderator set |
-| `muted_user_ids` | set of `string` | Muted identifiers — `ak_…` addresses held as strings |
+| `muted_user_ids` | set of `string` | Muted identifiers: `ak_…` addresses held as strings |
| `meta_info` | map of `string` to `string` | Community metadata |
### Entrypoints and who may call them
@@ -46,7 +46,7 @@ function require_moderator() =
| `minimum_token_threshold` | `() => int` | read |
| `owner` | `() => address` | read |
| `meta_info` | `() => meta_info` | read |
-| `version` | `() => int` | read — returns `1` |
+| `version` | `() => int` | read; returns `1` |
| `mute_user_id` | `(user_id: string) => unit` | `require_moderator` |
| `unmute_user_id` | `(user_id: string) => unit` | `require_moderator` |
| `add_moderator` | `(moderator: address) => unit` | `require_owner` |
@@ -59,7 +59,7 @@ Every write emits a typed event first, then applies: `MuteUserId(string)`,
`UnmuteUserId(string)`, `AddModerator(address)`, `DeleteModerator(address)`,
`ChangeMinimumTokenThreshold(int)`, `SetOwner(address)` and `ChangedMetaInfo`.
-The contract checks the owner, not the DAO; the DAO is simply whoever the owner is.
+The contract checks the owner, not the DAO; the DAO is whoever the owner is.
### Who owns it, and who the first moderator is
@@ -74,9 +74,9 @@ community_management.set_owner(dao.address)
| Question | Answer |
| --- | --- |
-| Initial owner | The **factory**, because `init` sets `owner = Call.caller` — then reassigned to the DAO in the same transaction by `set_owner` |
+| Initial owner | The **factory**, because `init` sets `owner = Call.caller`, then reassigned to the DAO in the same transaction by `set_owner` |
| Final owner | The community's **DAO** contract |
-| Initial moderator | The account that called `create_community` — the community's creator |
+| Initial moderator | The account that called `create_community`, the community's creator |
| Initial `minimum_token_threshold` | `10 ^ decimals()` with `decimals() = 18`, so **one whole token** in raw base units |
| Initial `muted_user_ids` | Empty (`Set.new()`) |
| `is_private` | Exactly the boolean passed to `create_community` |
@@ -119,7 +119,7 @@ Moderation changes ride the same DAO machinery as treasury payouts:
| Approval required | At least 55% of the vote stake in favour |
| Quorum | At least 10% of the total token stake participating |
| Execution window | Roughly two days after the vote closes |
-| Who executes | Anyone — any account or script can trigger the application |
+| Who executes | Anyone. Any account or script can trigger the application |
Tokens used to vote are locked by the vote contract via the AEX-9 allowance mechanism and can
be reclaimed with `revoke_vote` before the close or `withdraw` after it. The 555 AE goes to the
@@ -127,7 +127,7 @@ DAO whether or not the vote passes.
Appointing a moderator therefore takes two weeks and 555 AE.
-The app offers five of the seven vote subjects in its create-vote UI — payout, change DAO,
+The app offers five of the seven vote subjects in its create-vote UI: payout, change DAO,
change the minimum token threshold, add moderator, delete moderator. The two it omits need
richer input than the form supports: a payout of a specific amount takes two fields, and
changing the metadata takes a map.
@@ -193,15 +193,15 @@ the same value, chosen once at creation.
## Hiding your own post
The only post-visibility flag is `is_hidden`, and the indexer sets it from the post's own media
-list — any entry whose text contains `hidden` marks the post hidden at index time, which removes
+list. Any entry whose text contains `hidden` marks the post hidden at index time, which removes
it from the feeds and from popular ranking. It is a convention an author applies to their own
post, not a moderator action, and it does not remove the post from the chain.
## Related
-- [Posting](/social/posting) — why there is nothing to delete in the first place.
-- [Chat](/social/chat) — the relay-side membership control, the other half of community
+- [Posting](/social/posting): why there is nothing to delete in the first place.
+- [Chat](/social/chat): the relay-side membership control, the other half of community
moderation.
-- [Moderators](/dao/moderators) — the governance view of appointing and removing them.
-- [Voting](/dao/voting) — the mechanics, quorum and thresholds behind every moderation change.
-- [Community management contract](/contracts/community-management) — the contract reference.
+- [Moderators](/dao/moderators): the governance view of appointing and removing them.
+- [Voting](/dao/voting): the mechanics, quorum and thresholds behind every moderation change.
+- [Community management contract](/contracts/community-management): the contract reference.
diff --git a/pages/social/notifications.mdx b/pages/social/notifications.mdx
index 67443b5..f156f6e 100644
--- a/pages/social/notifications.mdx
+++ b/pages/social/notifications.mdx
@@ -5,8 +5,8 @@ description: "The notification feed, browser push, preferences and devices — e
# Notifications
-Superhero has two independent notification systems. The **bell** is a server-side feed —
-someone replied, someone sent you AE, a room let you in — delivered over REST plus a socket and
+Superhero has two independent notification systems. The **bell** is a server-side feed
+(someone replied, someone sent you AE, a room let you in) delivered over REST plus a socket and
optionally as an OS notification. The **transaction banner** is a purely local progress
indicator for whatever you are signing right now. They share no code and no delivery path.
@@ -28,7 +28,7 @@ nonce:
| --- | --- |
| `POST /api/notifications/{address}/feed/challenge` | Returns a `nonce` |
| `POST /api/notifications/{address}/feed/session` | Send `nonce` and `signature`, receive `token` and `expiresAt` |
-| `GET /api/notifications/{address}/feed?limit=50` | The feed page — `items` and `nextCursor` |
+| `GET /api/notifications/{address}/feed?limit=50` | The feed page: `items` and `nextCursor` |
| `GET /api/notifications/{address}/feed/unread-count` | The badge value |
| `POST /api/notifications/{address}/feed/read` | Mark specific `ids` read, or all when omitted; returns the new unread total |
@@ -52,7 +52,7 @@ The in-memory list is capped at 200 items.
| Field | Type |
| --- | --- |
| `id` | Number |
-| `type` | The notification type — see below |
+| `type` | The notification type (see below) |
| `title` | Display title |
| `body` | Display body |
| `data` | An untyped bag of routing hints, or null |
@@ -86,14 +86,14 @@ mobile app:
| `post-comment` | `/post/` plus `data.commentId`, falling back to `data.parentPostId` | `data.commenter` |
| `incoming-transfer` | `/wallet` | `data.sender` |
| `invitation-claimed` | `/wallet` | `data.claimer` |
-| `room-membership` | `/trends/tokens/` plus `data.saleAddress` | — |
-| `room-messages` | `/trends/tokens/` plus `data.saleAddress` | — |
-| `announcement` | None — the row renders as non-navigable | — |
+| `room-membership` | `/trends/tokens/` plus `data.saleAddress` | None |
+| `room-messages` | `/trends/tokens/` plus `data.saleAddress` | None |
+| `announcement` | None; the row renders as non-navigable | None |
A reply opens the **comment**, not the parent: `/post/` renders the comment with
its ancestor chain above it. Post ids are stored as `_v3` and every in-app post link drops
-the suffix, with the resolver re-adding it. The backend ships routing *hints* — a type plus
-ids — rather than a URL, because the mobile app has different routes.
+the suffix, with the resolver re-adding it. The backend ships routing *hints* (a type plus
+ids) rather than a URL, because the mobile app has different routes.
### What suppresses a notification
@@ -103,12 +103,12 @@ Every send passes three gates before a channel sees it; `post-comment` shows all
2. **Preference.** The recipient's opt-out is checked before the rate cap, so an opted-out
author does not spend their budget silently.
3. **Per-recipient rate cap.** A fixed Redis window allows `NOTIF_POST_COMMENT_RATE_CAP`
- comment notifications per `NOTIF_POST_COMMENT_RATE_WINDOW_SEC` — **20 per hour** by default.
+ comment notifications per `NOTIF_POST_COMMENT_RATE_WINDOW_SEC`, **20 per hour** by default.
Past that, further comments are dropped until the window resets. If Redis is unreachable the
notification is attempted anyway.
`incoming-transfer` has its own floor, `NOTIF_MIN_AMOUNT_AETTOS`, an anti-dust threshold that
-defaults to `0` — off. A transfer event with no transaction hash is not dispatched.
+defaults to `0` (off). A transfer event with no transaction hash is not dispatched.
## Browser push
@@ -138,8 +138,8 @@ on start when needed.
### The service worker
Push is handled by a dedicated worker at `/notifications-sw.js`, registered on demand with an
-origin-wide scope. It handles exactly three events — `push`, `notificationclick` and
-`pushsubscriptionchange` — and registers no `fetch` handler, so it cannot intercept requests
+origin-wide scope. It handles exactly three events (`push`, `notificationclick` and
+`pushsubscriptionchange`) and registers no `fetch` handler, so it cannot intercept requests
on the origin it shares with the inline wallet.
On `push` it reads a JSON payload of `title`, `body` and `data`, accepting the type from either
@@ -164,7 +164,7 @@ payload wins over the mapping after an origin check.
### The preference keys
A preference key is a catalog `type`, and the six keys are exactly the types in the table
-above — `incoming-transfer`, `announcement`, `invitation-claimed`, `post-comment`,
+above: `incoming-transfer`, `announcement`, `invitation-claimed`, `post-comment`,
`room-membership`, `room-messages`. The catalog is ordered, and the mobile preferences screen
renders its rows in that order.
@@ -177,7 +177,7 @@ POST /api/notifications/{address}/preferences
```
Only the types you list are changed; the rest keep their state. Unknown type strings are
-rejected against the catalog. The model is opt-out — a type with no stored row is enabled.
+rejected against the catalog. The model is opt-out: a type with no stored row is enabled.
### Devices are the mobile half
@@ -194,8 +194,8 @@ account-wide half of that switch turns `room-messages` notifications off everywh
## The transaction banner
A distinct, entirely local system. It narrates whatever you are currently signing and
-confirming — "Publishing post", "Publishing reply", "Confirm in your wallet", "Confirming on
-blockchain" — and runs multi-step flows with explicit step counts. The sponsored `.chain` claim
+confirming ("Publishing post", "Publishing reply", "Confirm in your wallet", "Confirming on
+blockchain") and runs multi-step flows with explicit step counts. The sponsored `.chain` claim
is the longest:
```text
@@ -217,9 +217,9 @@ mobile push if you have a registered device, and nothing in the web app. See
## Related
-- [Comments](/social/comments) — the `post-comment` type is the most common notification, and
+- [Comments](/social/comments): the `post-comment` type is the most common notification, and
the `_v3` suffix rule explains its deep link.
-- [Chat](/social/chat) — `room-membership` and `room-messages`, and the per-room mute control.
-- [Tipping](/social/tipping) — an incoming tip arrives as a plain transfer.
-- [Invite links](/rewards/invite-links) — what produces an `invitation-claimed` notification.
-- [WebSocket API](/api-reference/websocket) — the app's other socket, for token activity.
+- [Chat](/social/chat): `room-membership` and `room-messages`, and the per-room mute control.
+- [Tipping](/social/tipping): an incoming tip arrives as a plain transfer.
+- [Invite links](/rewards/invite-links): what produces an `invitation-claimed` notification.
+- [WebSocket API](/api-reference/websocket): the app's other socket, for token activity.
diff --git a/pages/social/posting.mdx b/pages/social/posting.mdx
index ad8fbe8..78ce922 100644
--- a/pages/social/posting.mdx
+++ b/pages/social/posting.mdx
@@ -17,7 +17,7 @@ strings:
| Field | Type | Meaning |
| --- | --- | --- |
-| `tip_meta.sender` | `address` | The author — the account whose signature authorised the post |
+| `tip_meta.sender` | `address` | The author: the account whose signature authorised the post |
| `tip_meta.title` | `string` | The post's text content |
| `tip_meta.timestamp` | `int` | `Chain.timestamp` at the moment of posting |
| `media` | `list(string)` | Media URLs or identifiers attached to the post |
@@ -41,7 +41,7 @@ Tipping v3 has four entrypoints. None of them is `payable`:
| `get_state` | `() => Tipping.state` | no | Read the whole post history |
Both posting entrypoints return the new `tip_id` and emit
-`PostWithoutTipReceived(address, string)` — the author and the title — so indexers can follow
+`PostWithoutTipReceived(address, string)` (the author and the title), so indexers can follow
new content without polling state.
Tipping v3 has no tipping entrypoint. Tips are plain AE transfers with a payload; see
@@ -59,7 +59,7 @@ These are `CONTRACT_V3_ADDRESS` in the app's per-network configuration.
## Post ids and slugs
The contract returns a bare integer. The indexer forms the API id as that value plus `_v` plus
-the contract version — `_v3` today — so a post created as `3903` is referenced everywhere as
+the contract version (`_v3` today), so a post created as `3903` is referenced everywhere as
`3903_v3`. If the middleware hands the indexer a transaction with no return value, the id falls
back to the **last eight characters of the transaction hash** plus the same suffix, which is
why an occasional id is not numeric.
@@ -67,7 +67,7 @@ why an occasional id is not numeric.
In-app links drop the suffix again: a post link is `/post/` plus the id with `_v3` stripped, or
a human-readable slug the API generates for SEO. The resolver at `/post/:slug` tries, in order:
-1. `GET /api/posts/` with the key exactly as given — this handles slugs.
+1. `GET /api/posts/` with the key exactly as given. This handles slugs.
2. If the key is numeric or already ends in `_v3`, retry with `_v3` appended.
3. Fall back to `GET /api/posts?search=…&limit=1&page=1` and fetch by the returned `id`.
@@ -110,7 +110,7 @@ Limits are enforced at three layers:
| Limit | Value | Enforced by |
| --- | --- | --- |
| Character count, composer | 280 | The web composer, for posts and comments alike |
-| Character count, indexed copy | 5,000 | The indexer — longer content is **truncated**, not rejected |
+| Character count, indexed copy | 5,000 | The indexer; longer content is **truncated**, not rejected |
| Character count, on chain | Unbounded | The contract stores whatever string you pass |
| Media entries, indexed | 5 | The indexer keeps the first five valid entries and drops the rest |
| Media entries, on chain | Unbounded | The contract stores the whole list |
@@ -119,8 +119,8 @@ Limits are enforced at three layers:
| Deletion | Not possible | The contract has no delete entrypoint |
The 280-character limit is a client-side constant; a post written through the SDK or the CLI is
-not bound by it. The copy the API serves is normalised on the way in — trimmed, CRLF converted
-to LF, three or more consecutive newlines collapsed to two, truncated to 5,000 characters. A
+not bound by it. The copy the API serves is normalised on the way in: trimmed, CRLF converted
+to LF, three or more consecutive newlines collapsed to two, and truncated to 5,000 characters. A
6,000-character post is on chain in full and truncated everywhere a reader sees it; read it
back from the contract if you need the original.
@@ -134,7 +134,7 @@ and only the first five survivors are kept.
A comment's `comment:3903_v3` marker is therefore never in the API's `media` field; `tx_args`
still carries the raw list. If any raw media entry contains the substring `hidden`, the indexer
-sets `is_hidden = true` on the post, removing it from the feeds and from popular ranking — see
+sets `is_hidden = true` on the post, which removes it from the feeds and from popular ranking. See
[Moderation](/social/moderation).
## Posting from the app
@@ -143,7 +143,7 @@ Compose at the top of the feed at `https://superhero.com/`, or from a token's to
the composer requires that token's hashtag before the Post button enables. On submit the app:
1. Expands tagged mentions from their display form to the `[account:…]` storage form.
-2. Builds the `media` list — attached URLs for a post; `comment:` plus the parent id first for
+2. Builds the `media` list: attached URLs for a post; `comment:` plus the parent id first for
a reply.
3. Initialises the contract with the vendored ACI and `CONTRACT_V3_ADDRESS`.
4. Calls `post_without_tip(content, media)` through the connected wallet.
@@ -175,7 +175,7 @@ Every argument after the first becomes a `media` entry. The script prints JSON:
}
```
-`post_id` here is the bare integer — add `_v3` before you look it up through the API.
+`post_id` here is the bare integer. Add `_v3` before you look it up through the API.
## Posting with the SDK
@@ -215,13 +215,13 @@ follows the network's gas price and the size of the stored text.
A published post is permanent and public. It lives on chain, where no one, Superhero, a community
DAO or a moderator included, can alter or remove it. Community moderation manages chat-room
-access — see [Moderation](/social/moderation).
+access; see [Moderation](/social/moderation).
## Related
-- [Delegated & Gasless Posting](/social/delegated-posting) — the signature scheme behind
+- [Delegated & Gasless Posting](/social/delegated-posting): the signature scheme behind
`post_without_tip_sig`, for relayers.
-- [Comments](/social/comments) — the same call with a `comment:` marker in `media`.
-- [Hashtags & Topics](/social/hashtags-and-topics) — what a `#tag` in your text becomes.
-- [The Tipping contract](/contracts/tipping) — the contract reference.
-- [Posting with an agent](/agents/posting) — the same operations from an AI agent runtime.
+- [Comments](/social/comments): the same call with a `comment:` marker in `media`.
+- [Hashtags & Topics](/social/hashtags-and-topics): what a `#tag` in your text becomes.
+- [The Tipping contract](/contracts/tipping): the contract reference.
+- [Posting with an agent](/agents/posting): the same operations from an AI agent runtime.
diff --git a/pages/social/tipping.mdx b/pages/social/tipping.mdx
index 5f45cfe..e9c8e42 100644
--- a/pages/social/tipping.mdx
+++ b/pages/social/tipping.mdx
@@ -38,7 +38,7 @@ Practical consequences:
- A tip cannot fail because of contract logic; it fails only if you cannot pay.
- Attribution happens off chain, by the indexer reading the payload. If the indexer misses a
- tip, the AE still arrived — only the displayed total is affected.
+ tip, the AE still arrived; only the displayed total is affected.
- Anyone can reconstruct tip attribution by scanning spend transactions to an address and
decoding payloads that start with `TIP_POST:`.
@@ -49,10 +49,10 @@ Practical consequences:
or `TIP_POST`, otherwise the transaction is skipped.
3. For a `TIP_POST:` payload, everything after the colon is taken as a post id and looked up
directly by `id`. A miss leaves the tip unattached to a post.
-4. Self-tips are dropped, not stored — for a post tip that means `sender == post.sender_address`
+4. Self-tips are dropped, not stored. For a post tip that means `sender == post.sender_address`
(tipping your own post), and for a profile tip `sender == receiver`.
5. The row is keyed on `tx_hash`, so reprocessing the same transaction is idempotent.
-6. The amount is stored as `toAe(tx.amount)` — a decimal AE string, not aettos.
+6. The amount is stored as `toAe(tx.amount)`, a decimal AE string, not aettos.
Two things follow:
@@ -78,15 +78,15 @@ balance disables the button.
The displayed total comes from the indexer, which has to see the transaction confirm. The app
adds your amount to the cached total immediately, then polls
-`GET /api/tips/posts/{postId}/summary` — 5 seconds after the send, then every 3 seconds for up
-to 18 more attempts, roughly a minute — until the backend total reaches the expected value. If
+`GET /api/tips/posts/{postId}/summary` (5 seconds after the send, then every 3 seconds for up
+to 18 more attempts, roughly a minute) until the backend total reaches the expected value. If
the minute elapses, the app does a final refetch and leaves the real value in place.
## Read tip totals
| Endpoint | Returns |
| --- | --- |
-| `GET /api/tips/posts/{postId}/summary` | `totalTips` — a decimal AE string, summing every tip on the post **except** those sent by the post's own author. 404 if the post id is unknown. |
+| `GET /api/tips/posts/{postId}/summary` | `totalTips`, a decimal AE string, summing every tip on the post **except** those sent by the post's own author. 404 if the post id is unknown. |
| `GET /api/tips/accounts/{address}/summary` | `totalTipsSent` and `totalTipsReceived`, both decimal AE strings, each excluding rows where sender equals receiver |
| `GET /api/tips` | The paginated tip list |
@@ -95,8 +95,8 @@ The post id in the path takes the `_v3` suffix, matching the payload form.
`GET /api/tips` accepts `sender`, `receiver`, `type` and `post_id` filters,
`order_by` of `amount`, `type` or `created_at`, an `order_direction`, and `page`/`limit` with a
maximum limit of 100. Ordering by `amount` casts the stored string to numeric first, so it
-sorts by value rather than lexically. `type` holds the **whole decoded payload** —
-`TIP_PROFILE`, or `TIP_POST:3903_v3` — so filtering by `type` is an exact-string match on that,
+sorts by value rather than lexically. `type` holds the **whole decoded payload**
+(`TIP_PROFILE`, or `TIP_POST:3903_v3`), so filtering by `type` is an exact-string match on that,
not on the bare word `TIP_POST`.
Tip signals also feed the popular feed: `tipsAmountAE`, `tipsCount` and `uniqueTippers` are
@@ -112,15 +112,15 @@ pending-tip pool and no reclaim path.
## Tips and notifications
There is no tip notification type. The closest is `incoming-transfer`, which fires on any
-incoming `SpendTx` — a tip included — above `NOTIF_MIN_AMOUNT_AETTOS` (default 0, meaning
+incoming `SpendTx`, a tip included, above `NOTIF_MIN_AMOUNT_AETTOS` (default 0, meaning
off). That type is mobile push only, so an incoming tip produces a mobile push if the recipient
has a registered device, and nothing in the web bell. See
[Notifications](/social/notifications).
## Related
-- [Posting](/social/posting) — the ids and `_v3` suffix convention the payload depends on.
-- [The Feed](/social/feed) — how tip signals influence popular ranking.
-- [Notifications](/social/notifications) — why a tip does not raise a bell notification.
-- [Value flow](/concepts/value-flow) — where money moves elsewhere in the protocol.
-- [Transactions](/api-reference/transactions) — reading spend transactions and their payloads.
+- [Posting](/social/posting): the ids and `_v3` suffix convention the payload depends on.
+- [The Feed](/social/feed): how tip signals influence popular ranking.
+- [Notifications](/social/notifications): why a tip does not raise a bell notification.
+- [Value flow](/concepts/value-flow): where money moves elsewhere in the protocol.
+- [Transactions](/api-reference/transactions): reading spend transactions and their payloads.
diff --git a/pages/tokens/bonding-curve.mdx b/pages/tokens/bonding-curve.mdx
index 633bb46..47d0574 100644
--- a/pages/tokens/bonding-curve.mdx
+++ b/pages/tokens/bonding-curve.mdx
@@ -7,12 +7,12 @@ description: "The exponential curve that prices every Superhero community token,
Every Superhero community token is priced by one deterministic function of its own supply. Buying
mints new tokens and moves you up the curve; selling burns tokens and moves you down it. Because
-price is computed from supply, there is always a quote and always liquidity — no order book, no
-matching engine, no counterparty on the other side of your trade.
+price is computed from supply, there is always a quote and always liquidity. There is no order book, no
+matching engine and no counterparty on the other side of your trade.
Superhero uses an **exponential** curve, implemented by the `BondingCurveExponential` contract. The
-contract evaluates `e^x` as a bounded Taylor series in integer arithmetic — at most 100 terms, and
-stopping as soon as a term floors to zero — which is what `curve_type()` means when it returns
+contract evaluates `e^x` as a bounded Taylor series in integer arithmetic (at most 100 terms,
+stopping as soon as a term floors to zero), which is what `curve_type()` means when it returns
`"TAYLOR_EXPONENTIAL_V1"`. The series agrees with the closed form below to within `4e-19 AE` at
every supply in the examples below. The integer the contract returns is the price you are charged;
[Curve Parameters & Units](/tokens/curve-parameters) has a reference implementation that reproduces
@@ -35,11 +35,11 @@ per token** at that supply. Three constants do all the work:
| `k` | 0.00000001 (1e-8) | `k = 10^10` | Growth rate per token of supply |
| `c` | 0.0009999 | not stored | Offset that pulls the launch price down to a near-zero number |
-The contract holds `a` and `k` scaled by `10^18`, plus `initial_price = 10^11` — the spot price at
+The contract holds `a` and `k` scaled by `10^18`, plus `initial_price = 10^11`, the spot price at
supply zero, `0.0000001 AE`. The offset `c` is `a − initial_price` and is never stored. See
[Curve Parameters & Units](/tokens/curve-parameters) for the full constant table.
-At supply 0 the spot price is `0.001 − 0.0009999 = 0.0000001 AE` — one ten-millionth of an AE per
+At supply 0 the spot price is `0.001 − 0.0009999 = 0.0000001 AE`, one ten-millionth of an AE per
token. The curve is almost flat at the start and steep later.
What you pay is never the spot price. It is the **integral** of the curve across the range of supply
@@ -51,7 +51,7 @@ buy price = ∫ from supply to (supply + amount) of buy(x) dx
sell return = ∫ from (supply − amount) to supply of sell(x) dx
```
-The spread — the community DAO's share — is the area between the two curves:
+The spread (the community DAO's share) is the area between the two curves:
```text
spread = ∫ from 0 to supply of buy(x) dx − ∫ from 0 to supply of sell(x) dx
@@ -80,7 +80,7 @@ cost(S, n) = F(S + n) − F(S)
That is the whole pricing model. Everything below is arithmetic on this one line.
-## Worked example 1 — 1,000 tokens at supply 0
+## Worked example 1: 1,000 tokens at supply 0
```text
cost(0, 1000) = 100000 · ( e^(0.00000001 · 1000) − e^0 ) − 0.0009999 · 1000
@@ -98,7 +98,7 @@ The average price paid is `0.000105000017 / 1000 = 1.05000017e-7 AE` per token,
price of `1.0e-7 AE` when you started. You paid **5.00% above spot** for a thousand tokens, because
by the thousandth token the spot price had already risen to `1.10e-7 AE`.
-## Worked example 2 — 1,000 tokens at supply 10,000,000
+## Worked example 2: 1,000 tokens at supply 10,000,000
```text
cost(10000000, 1000)
@@ -114,7 +114,7 @@ difference = 0.00001105176444865756…
cost = 0.105276443949 AE
```
-The same thousand tokens now cost **0.10528 AE instead of 0.000105 AE — about 1,003 times more**.
+The same thousand tokens now cost **0.10528 AE instead of 0.000105 AE, about 1,003 times more**.
Average price `1.052764e-4 AE`, spot price at supply 10,000,000 `1.052709e-4 AE`: this time you
paid only **0.0052% above spot**.
@@ -143,7 +143,7 @@ a rising supply cost exactly the same total as one buy of 10,000,000. Only trade
supply change your average price.
A large sell realises an average price below the quoted spot for the same reason, in reverse.
-`minimal_return_required` protects you from that — see
+`minimal_return_required` protects you from that. See
[Buying & Selling](/tokens/buying-and-selling).
## Shape of the curve
@@ -174,7 +174,7 @@ curve where it separates:
supply (tokens)
```
-The sell curve sits 0.5% below the buy curve everywhere. The gap between them is the DAO's cut —
+The sell curve sits 0.5% below the buy curve everywhere. The gap between them is the DAO's cut:
small per trade, meaningful in aggregate. Spot prices at a few reference supplies:
| Supply | Buy spot (AE) | Sell spot (AE) |
@@ -207,7 +207,7 @@ community DAO and 0.5% to the affiliation system.
From the buyer's side: you hand over `1.005 ×` the curve integral and can immediately sell back for
`0.995 ×` it, so a round trip at unchanged supply returns `0.995 / 1.005 = 0.99502…` of what you
-paid — a **0.995% loss on an instant round trip**. See [Fees & Slippage](/tokens/fees-and-slippage)
+paid, a **0.995% loss on an instant round trip**. See [Fees & Slippage](/tokens/fees-and-slippage)
for the full breakdown and [Risks](/tokens/risks) for what that means for a position.
## Compared with other curve families
@@ -216,17 +216,17 @@ for the full breakdown and [Risks](/tokens/risks) for what that means for a posi
| --- | --- | --- | --- |
| Price rule | price = a·e^(k·supply) − c | price = m·supply + b | price = reserve_y / reserve_x, with x·y = k |
| What backs it | AE reserve accumulated from buys | AE reserve accumulated from buys | Two-sided pool funded by liquidity providers |
-| Who supplies liquidity | Nobody — the contract mints and burns | Nobody | Liquidity providers, who can withdraw |
+| Who supplies liquidity | Nobody: the contract mints and burns | Nobody | Liquidity providers, who can withdraw |
| Supply | Elastic: minted on buy, burned on sell | Elastic | Fixed; the pool only swaps existing tokens |
| Price at zero activity | Defined by the formula | Defined by the formula | Undefined until someone seeds the pool |
| Cost of a trade | Integral of the curve over the minted range | Integral of the curve over the minted range | Determined by the invariant x·y = k |
-| Price impact of a big buy | Compounding — grows exponentially | Proportional to size | Grows as the pool is drained; unbounded |
+| Price impact of a big buy | Compounding: grows exponentially | Proportional to size | Grows as the pool is drained; unbounded |
| Fee model | 1% spread baked into two curves | Implementation-defined | Explicit swap fee (e.g. 0.30%) to LPs |
| Rug-pull surface | No LP to withdraw | No LP to withdraw | LPs can remove liquidity |
Two practical consequences. There is no liquidity to pull: the reserve is held by the sale contract
and is sufficient to redeem everything. And an exponential curve punishes large late buys much
-harder than a constant-product pool of comparable depth — the price impact of doubling the supply
+harder than a constant-product pool of comparable depth. The price impact of doubling the supply
is a factor of `e^(k·supply)`, not a bounded ratio.
Community tokens trade only against their own curve. Superhero's AMM for ordinary token pairs is
@@ -239,12 +239,12 @@ Community tokens trade only against their own curve. Superhero's AMM for ordinar
| `calculate_buy_price(total_supply, count)` | Cost to buy `count` tokens from `total_supply`, in aettos |
| `calculate_sell_return(total_supply, sell_tokens)` | AE returned for selling `sell_tokens`, in aettos |
| `buy_curve(x)` / `sell_curve(x)` | The spot curve value as a `Frac.frac` rational |
-| `buy_price(total_supply)` / `sell_price(total_supply)` | The same value rounded to an integer — see below |
+| `buy_price(total_supply)` / `sell_price(total_supply)` | The same value rounded to an integer (see below) |
| `get_k()`, `get_initial_price()`, `get_minimum_count()` | `10^10`, `10^11`, `10^12` |
-| `get_sell_return_percentage()` | `9950` — the sell factor is `9950 / 10000 = 0.995` |
+| `get_sell_return_percentage()` | `9950`; the sell factor is `9950 / 10000 = 0.995` |
| `curve_type()`, `supported_decimals()` | `"TAYLOR_EXPONENTIAL_V1"`, `18` |
-Every one of these takes and returns integers in the contract's own units — read
+Every one of these takes and returns integers in the contract's own units. Read
[Curve Parameters & Units](/tokens/curve-parameters) before calling them. Passing whole tokens
where the contract expects 18-decimal units gives an answer that is wrong by a factor of 10^18.
@@ -254,15 +254,15 @@ tokens. Use `calculate_buy_price` and `calculate_sell_return` for quotes, or `bu
exact spot value.
`get_minimum_count()` returns `10^12`, and every pricing call requires `count >= minimum_count`
-(`MINIMUM_TOKENS_REQUIRED`). Since counts are in 18-decimal units that floor is `10^-6` tokens — a
+(`MINIMUM_TOKENS_REQUIRED`). Since counts are in 18-decimal units that floor is `10^-6` tokens, a
guard against a trade rounding to zero inside the integer arithmetic, not an order minimum. It fires
when a caller passes a whole-token count where the contract expected token decimal units.
## Related
-- [Curve Parameters & Units](/tokens/curve-parameters) — the decimals, fixed-point and `Frac.frac` conventions you need before calling any entrypoint above
-- [Fees & Slippage](/tokens/fees-and-slippage) — the 1% spread, the affiliation split and the slippage guards
-- [Buying & Selling](/tokens/buying-and-selling) — how to execute against the curve and defend a sell with `minimal_return_required`
-- [Bonding curve contract reference](/contracts/bonding-curve) — the entrypoint-level reference for `BondingCurveExponential`
-- [Risks](/tokens/risks) — what the curve's shape means for a position you hold
-- [Bonding Curves Explained](https://yos.io/2018/11/10/bonding-curves/) — background on the general mechanism
+- [Curve Parameters & Units](/tokens/curve-parameters): the decimals, fixed-point and `Frac.frac` conventions you need before calling any entrypoint above
+- [Fees & Slippage](/tokens/fees-and-slippage): the 1% spread, the affiliation split and the slippage guards
+- [Buying & Selling](/tokens/buying-and-selling): how to execute against the curve and defend a sell with `minimal_return_required`
+- [Bonding curve contract reference](/contracts/bonding-curve): the entrypoint-level reference for `BondingCurveExponential`
+- [Risks](/tokens/risks): what the curve's shape means for a position you hold
+- [Bonding Curves Explained](https://yos.io/2018/11/10/bonding-curves/): background on the general mechanism
diff --git a/pages/tokens/buying-and-selling.mdx b/pages/tokens/buying-and-selling.mdx
index eadfd35..58aa1be 100644
--- a/pages/tokens/buying-and-selling.mdx
+++ b/pages/tokens/buying-and-selling.mdx
@@ -15,12 +15,12 @@ a sell and a bad fill.
Open a token at `/trends/tokens/NAME` and use the **Trade** tab.
1. Choose **Buy** or **Sell**.
-2. Type an amount in either field — AE or tokens. The other side is computed from the curve at the token's current supply as you type.
+2. Type an amount in either field, AE or tokens. The other side is computed from the curve at the token's current supply as you type.
3. Review the quote: the average price you will pay, the price impact of your own trade, and, on a buy, the ProtocolDAO token reward.
4. Confirm in your wallet.
The slippage tolerance defaults to **1%** and is remembered per browser. A buy sends that much extra
-AE — refunded if unused — and a sell sets its return floor that much below the quote.
+AE (refunded if unused), and a sell sets its return floor that much below the quote.
A buy also mints ProtocolDAO tokens at 1,000× the AE paid; the `Mint` event on the ProtocolDAO token
contract carries the exact figure. See [The ProtocolDAO Token](/dao/protocol-dao).
@@ -44,7 +44,7 @@ node scripts/superhero-token-swap.mjs sell ct_ 5
| `buy` | Yes | Quotes, adds 3%, and sends `buy(count)` with that amount attached |
| `sell` | Yes | Sets the allowance, quotes `sell_return(count)`, subtracts 3%, and sends `sell(count, floor)` |
-Amounts are **whole tokens** — the script scales them by the token's own `decimals`. Run it from
+Amounts are **whole tokens**; the script scales them by the token's own `decimals`. Run it from
the skill's root directory; it reads its ACI files from `./contracts/`.
Both `buy` and `sell` apply **3% slippage protection**. To change it, edit `SLIPPAGE_PERCENT` in
@@ -69,7 +69,7 @@ Every `count` is in token decimal units and every AE figure is in aettos. See
**Attach exactly `price(count)`, or more.** `buy` requires `Call.value >= total_price` and refunds
the difference with `Chain.spend` in the same transaction. Attaching less aborts with
-`AE_AMOUNT_NOT_SUFFICIENT`. Do not add the affiliation fee on top of `price(count)` yourself — it is
+`AE_AMOUNT_NOT_SUFFICIENT`. Do not add the affiliation fee on top of `price(count)` yourself. It is
already included. See [Fees & Slippage](/tokens/fees-and-slippage).
`buy(count)` attributes the affiliation reward to the buyer's own position in the affiliation tree;
@@ -79,7 +79,7 @@ chain, populated once when the buyer redeems an invitation or calls `register_in
A successful trade emits `Buy(int, int, int)` or `Sell(int, int)` on the sale contract, plus `Mint`
or `Burn` on the token contract, plus a second `Mint` from the ProtocolDAO token contract on a buy.
-Read these events to learn what you actually received — they carry the executed numbers rather than
+Read these events to learn what you actually received. They carry the executed numbers rather than
the quoted ones.
## `minimal_return_required`
@@ -125,7 +125,7 @@ supply it is not. Size the tolerance to the token.
- **Too tight** and your sell reverts on ordinary activity. You pay gas and still hold the position.
- **Too loose** and you have no protection. A floor of 0 means "fill me at any price", which on a falling curve is exactly what you do not want.
-Your *own* trade's slippage is already in the quote — `sell_return(count)` integrates the curve
+Your *own* trade's slippage is already in the quote: `sell_return(count)` integrates the curve
across the tokens you are burning. The tolerance covers only what happens between quote and
execution.
@@ -229,9 +229,9 @@ console.log('sell tx', sold.hash);
| Cause | Direction | Typical size |
| --- | --- | --- |
-| Your own trade size walking up the curve | Always against you | Already inside the quote — see the slippage table on [Bonding Curves](/tokens/bonding-curve) |
+| Your own trade size walking up the curve | Always against you | Already inside the quote; see the slippage table on [Bonding Curves](/tokens/bonding-curve) |
| Other trades landing between quote and execution | Either way | Bounded by your tolerance; this is what the guards are for |
-| The 0.5% affiliation fee on a buy | Against you | 0.5% of the curve value — already inside `price()`, not inside `calculate_buy_price()` |
+| The 0.5% affiliation fee on a buy | Against you | 0.5% of the curve value, already inside `price()`, not inside `calculate_buy_price()` |
| Off-chain estimates using a trapezoidal integral | Overstates by up to ~20 ppm on very large trades | Negligible, but see [Curve Parameters & Units](/tokens/curve-parameters) |
The quote you get from `price()` or `sell_return()` is exact at the supply it was read at.
@@ -245,9 +245,9 @@ both carrying the executed figures, and both are preceded by
## Related
-- [Bonding Curves](/tokens/bonding-curve) — where the quote comes from, and why a big trade fills worse
-- [Fees & Slippage](/tokens/fees-and-slippage) — the 1% spread, the fee split, and the slippage defaults side by side
-- [Curve Parameters & Units](/tokens/curve-parameters) — the decimal scaling used throughout the code above
-- [Token sale contract](/contracts/token-sale) — entrypoint-level reference for the sale contract
-- [Portfolio & PnL](/tokens/portfolio) — checking what a trade did to your position afterwards
-- [AEX-9 standard](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md) — the allowance semantics used by the sell flow
+- [Bonding Curves](/tokens/bonding-curve): where the quote comes from, and why a big trade fills worse
+- [Fees & Slippage](/tokens/fees-and-slippage): the 1% spread, the fee split, and the slippage defaults side by side
+- [Curve Parameters & Units](/tokens/curve-parameters): the decimal scaling used throughout the code above
+- [Token sale contract](/contracts/token-sale): entrypoint-level reference for the sale contract
+- [Portfolio & PnL](/tokens/portfolio): checking what a trade did to your position afterwards
+- [AEX-9 standard](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md): the allowance semantics used by the sell flow
diff --git a/pages/tokens/collections-and-naming.mdx b/pages/tokens/collections-and-naming.mdx
index fe29d81..76e52c5 100644
--- a/pages/tokens/collections-and-naming.mdx
+++ b/pages/tokens/collections-and-naming.mdx
@@ -7,7 +7,7 @@ description: "Which collection a token name belongs to, the character and length
A **collection** is a namespace inside the community factory. It owns a character set, a maximum
name length, and a registry of the token sales created inside it. Names are unique per collection,
-not globally, and you never pick a collection explicitly in the app — it is derived from the
+not globally, and you never pick a collection explicitly in the app. It is derived from the
characters you type.
## What a collection defines
@@ -23,7 +23,7 @@ characters you type.
| `create_collection(collection_name, allowed_name_length, allowed_name_chars)` | Create a namespace. Payable |
The registry enforces two further rules: a community's name must be unique within its collection
-(`NAME_ALREADY_REGISTERED`), and the token's name is also its symbol — `create_community` passes the
+(`NAME_ALREADY_REGISTERED`), and the token's name is also its symbol: `create_community` passes the
same `name` string as both.
Both name checks run inside `create_community` and abort the whole transaction: `NAME_TOO_LONG` when
@@ -68,10 +68,10 @@ The Superhero backend indexes a configured allowlist of collections. Four are co
| Collection | Max name length | Allowed characters |
| --- | --- | --- |
-| `WORDS` | 20 | `-`, `0`–`9`, `A`–`Z` — code points 45, 48–57, 65–90 |
-| `CHINESE` | 20 | `-` and CJK ideographs U+4E00–U+9FFF — code points 45, 19968–40959 |
-| `ARABIC` | 20 | `-` and Arabic letters U+0621–U+064A — code points 45, 1569–1610 |
-| `RUSSIAN` | 20 | `-`, `Ё` and `А`–`Я` — code points 45, 1025, 1040–1071 |
+| `WORDS` | 20 | `-`, `0`–`9`, `A`–`Z` (code points 45, 48–57, 65–90) |
+| `CHINESE` | 20 | `-` and CJK ideographs U+4E00–U+9FFF (code points 45, 19968–40959) |
+| `ARABIC` | 20 | `-` and Arabic letters U+0621–U+064A (code points 45, 1569–1610) |
+| `RUSSIAN` | 20 | `-`, `Ё` and `А`–`Я` (code points 45, 1025, 1040–1071) |
None of the three non-Latin collections admits digits or Latin letters, and `RUSSIAN` admits only
uppercase Cyrillic. All four cap names at 20 characters. `WORDS` was deployed from a different
@@ -103,13 +103,13 @@ The English collection is three rules:
65 to 90 = "A" to "Z"
```
-The app turns each rule set into a regular expression character class — `\-0-9A-Z` for the English
-collection — anchored as a whole-string match with the `u` flag, so astral code points count as one
+The app turns each rule set into a regular expression character class (`\-0-9A-Z` for the English
+collection), anchored as a whole-string match with the `u` flag, so astral code points count as one
character rather than as a surrogate pair. A name is valid for a collection when every one of its
characters is in that class.
The English rule set does not include lowercase letters, spaces, underscores, dots or emoji. That is
-why the create form uppercases as you type and rewrites spaces as dashes — it turns near-misses into
+why the create form uppercases as you type and rewrites spaces as dashes. That turns near-misses into
valid names rather than rejecting them.
## How the app picks a collection for you
@@ -118,10 +118,10 @@ Because every collection allows `-`, a name such as `A-B` is valid in all of the
resolves this in three steps, re-derived on every keystroke:
1. **Detect.** Every collection whose character rules accept the name, in schema order.
-2. **Prefer.** If more than one matches, the English one — or the first in the list if English is absent.
+2. **Prefer.** If more than one matches, the English one, or the first in the list if English is absent.
3. **Honour an explicit choice.** If you picked a collection from the chip's dropdown and it still accepts the current name, that choice wins; otherwise the preference takes over again.
-If no collection matches, the form shows an **Unsupported** badge and disables submit — a name no
+If no collection matches, the form shows an **Unsupported** badge and disables submit, because a name no
collection accepts would only burn gas and revert on-chain.
The dropdown appears only when the name fits more than one collection. `HELLO` is Latin-only and
@@ -157,10 +157,10 @@ payable stateful entrypoint create_collection(collection_name : string, allowed_
| Question | Answer |
| --- | --- |
| Who may call it? | **Anyone.** There is no owner check, no allowlist and no moderator role. |
-| What does it cost? | **Exactly 555 AE** — `Call.value == 555 * 10^18`. Attaching more aborts just as surely as attaching less. There is no refund path, because there is no surplus. |
+| What does it cost? | **Exactly 555 AE**: `Call.value == 555 * 10^18`. Attaching more aborts just as surely as attaching less. There is no refund path, because there is no surplus. |
| Where does the 555 AE go? | `Chain.spend` to `ak_11111111111111111111111111111111273Yts`, the all-zero account. It is **burned**, not paid to the platform or to a treasury. |
-The creator chooses the collection's rules outright — the length cap and the whole character
+The creator chooses the collection's rules outright: the length cap and the whole character
whitelist are arguments. The only uniqueness check is `collection_ALREADY_EXISTS`, and because the
id is suffixed with the caller's address, it only stops the *same account* creating the same name
twice.
@@ -194,9 +194,9 @@ instead, which is faster but can lag a very recent creation by a few minutes.
## Related
-- [Create a Token (Dashboard)](/tokens/create-from-dashboard) — where the collection chip and the availability tick appear
-- [Create a Token (CLI)](/tokens/create-from-cli) — how the script resolves a collection, and how to override it
-- [Community Tokens](/tokens/overview) — what the name you are choosing is attached to
-- [Community factory contract](/contracts/community-factory) — the registry and collection entrypoints in full
-- [Factory and contracts API](/api-reference/factory-and-contracts) — `GET /api/factory`, the schema the app reads collections from
-- [Sophia standard library](https://github.com/aeternity/aesophia/blob/master/docs/sophia_stdlib.md) — `String.length`, `String.to_list` and `Char.to_int`, which the name check is built from
+- [Create a Token (Dashboard)](/tokens/create-from-dashboard): where the collection chip and the availability tick appear
+- [Create a Token (CLI)](/tokens/create-from-cli): how the script resolves a collection, and how to override it
+- [Community Tokens](/tokens/overview): what the name you are choosing is attached to
+- [Community factory contract](/contracts/community-factory): the registry and collection entrypoints in full
+- [Factory and contracts API](/api-reference/factory-and-contracts): `GET /api/factory`, the schema the app reads collections from
+- [Sophia standard library](https://github.com/aeternity/aesophia/blob/master/docs/sophia_stdlib.md): `String.length`, `String.to_list` and `Char.to_int`, which the name check is built from
diff --git a/pages/tokens/create-from-cli.mdx b/pages/tokens/create-from-cli.mdx
index 24dff76..12e4ad1 100644
--- a/pages/tokens/create-from-cli.mdx
+++ b/pages/tokens/create-from-cli.mdx
@@ -22,7 +22,7 @@ the skill's root. It signs with an in-memory account built from `AE_PRIVATE_KEY`
## Pre-flight
-1. Confirm you have AE for gas — about 0.001 AE for creation, plus whatever you intend to pre-buy:
+1. Confirm you have AE for gas (about 0.001 AE for creation, plus whatever you intend to pre-buy):
```bash
node scripts/superhero-wallet.mjs balance
@@ -81,8 +81,8 @@ Progress messages go to stderr, so `2>/dev/null` gives you parseable JSON and no
1. **Load the signing account** from `AE_PRIVATE_KEY` and connect to mainnet.
2. **Initialise the factory** at the mainnet address `ct_25cqTw85wkF5cbcozmHHUCuybnfH9WaRZXSgEcNNXG9LsCJWTN` using `contracts/CommunityFactory.aci.json`.
-3. **Check the balance** — only when `buy_ae` is greater than zero. It requires `balance >= buy_ae + 0.01`, where the extra 0.01 AE is gas headroom.
-4. **Resolve the collection.** It fetches `https://api.superhero.com/api/factory` and takes the first collection in the schema — the English `WORDS-ak_...` one. To create in a different collection, use the SDK path below.
+3. **Check the balance** if `buy_ae` is greater than zero. It requires `balance >= buy_ae + 0.01`, where the extra 0.01 AE is gas headroom.
+4. **Resolve the collection.** It fetches `https://api.superhero.com/api/factory` and takes the first collection in the schema, which is the English `WORDS-ak_...` one. To create in a different collection, use the SDK path below.
5. **Check the name** with `factory.has_community(collectionId, tokenName)` and abort if it is taken.
6. **Size the initial buy**, if there is one:
- Estimate a token count off-chain by bisecting the curve integral against your AE figure (up to 1,000 iterations, search bounds 0 to 10^12 tokens, always from supply zero). The stopping tolerance is an **absolute** 0.001 AE, so a 0.1 AE initial buy is sized to within about 1%.
@@ -102,7 +102,7 @@ attached = ceil( calculate_buy_price(0, count) × 1.05 )
`calculate_buy_price` returns the **bare curve integral**; the sale contract also charges a 0.5%
affiliation fee, so roughly a tenth of the buffer covers the fee. A new token is created at supply
-zero by definition, so there is no curve drift between quote and execution for a creation — the
+zero by definition, so there is no curve drift between quote and execution for a creation. The
same buffer pattern is reused for ordinary buys, where drift is real.
**The remainder comes back.** `create_community` requires `Call.value >= buy_price` rather than
@@ -239,9 +239,9 @@ hardcoded address pointing at an abandoned registry.
## Related
-- [Create a Token (Dashboard)](/tokens/create-from-dashboard) — the same deployment through the web form, with live price estimates
-- [Curve Parameters & Units](/tokens/curve-parameters) — why `initialBuyCount` is scaled by 10^18 and what `supported_decimals()` is for
-- [Collections & Naming Rules](/tokens/collections-and-naming) — how to pick a collection deliberately instead of taking the first one
-- [Buying & Selling](/tokens/buying-and-selling) — the trading script, which follows the same conventions
-- [Agent CLI reference](/agents/cli-reference) — every script in the skill
-- [æternity JavaScript SDK: contracts](https://aeternity.com/aepp-sdk-js/develop/guides/contracts/) — `Contract.initialize`, ACIs and call options such as `amount`
+- [Create a Token (Dashboard)](/tokens/create-from-dashboard): the same deployment through the web form, with live price estimates
+- [Curve Parameters & Units](/tokens/curve-parameters): why `initialBuyCount` is scaled by 10^18 and what `supported_decimals()` is for
+- [Collections & Naming Rules](/tokens/collections-and-naming): how to pick a collection deliberately instead of taking the first one
+- [Buying & Selling](/tokens/buying-and-selling): the trading script, which follows the same conventions
+- [Agent CLI reference](/agents/cli-reference): every script in the skill
+- [æternity JavaScript SDK: contracts](https://aeternity.com/aepp-sdk-js/develop/guides/contracts/): `Contract.initialize`, ACIs and call options such as `amount`
diff --git a/pages/tokens/create-from-dashboard.mdx b/pages/tokens/create-from-dashboard.mdx
index f70f10e..1d69f15 100644
--- a/pages/tokens/create-from-dashboard.mdx
+++ b/pages/tokens/create-from-dashboard.mdx
@@ -19,21 +19,21 @@ no cut beyond the protocol fees described below.
| Requirement | Detail |
| --- | --- |
| A connected wallet | The submit button is replaced by Connect Wallet until one is connected |
-| AE for gas | A small amount — about 0.001 AE for the creation |
+| AE for gas | A small amount, about 0.001 AE for the creation |
| AE for the initial buy | Optional. Zero is allowed and creates the token with zero supply |
| A name no one has taken | Checked live as you type |
## The name field
-The name is the token's identity, its symbol, and its URL — `/trends/tokens/YOURNAME`. It is the
+The name is the token's identity, its symbol, and its URL: `/trends/tokens/YOURNAME`. It is the
only field in this form you cannot change later.
The input uppercases and replaces spaces with dashes on every keystroke, so `my token` becomes
`MY-TOKEN` as you type. The field is capped at 20 characters, with a counter underneath. Collections
-carry their own casing rules — the English collection accepts `A–Z`, the Russian one accepts `А–Я` —
+carry their own casing rules (the English collection accepts `A–Z`, the Russian one accepts `А–Я`),
and uppercasing is what makes a typed name detectable.
-While an IME composition is active — typing Chinese through pinyin, for example — the input holds
+While an IME composition is active (typing Chinese through pinyin, for example), the input holds
intermediate Latin text that belongs to no collection. Normalisation and the "unsupported" verdict
are suspended until the composition commits.
@@ -57,7 +57,7 @@ The chip shows the human label, not the on-chain id: the `WORDS` collection is d
| Indicator | Meaning |
| --- | --- |
| Spinner | The lookup is in flight |
-| Green tick | Available — you can submit |
+| Green tick | Available; you can submit |
| Red cross | Taken. A **Trading live** panel appears with the existing token's price and holder count, and a **BUY TOKEN** button that takes you to its page instead |
When the name is taken, the initial-buy section and the submit button are disabled. The check is an
@@ -65,13 +65,13 @@ index lookup, not a chain read: the factory's on-chain `has_community` check is
duplicate, and a name claimed seconds before yours fails at signing time with
`NAME_ALREADY_REGISTERED`.
-## The initial buy — two input modes
+## The initial buy: two input modes
The section under the name is a pre-buy: tokens minted to you as part of the creation transaction,
at the very start of the curve, before anyone else can buy. The link on the right toggles between
two ways of expressing the same thing.
-### Mode 1 — Amount to spend (AE)
+### Mode 1: Amount to spend (AE)
You type an AE figure; the app tells you how many tokens that buys, solving the curve backwards by
bisection from a starting supply of zero. Quick-pick buttons offer 1, 10, 100, 500 and 100,000 AE.
@@ -85,9 +85,9 @@ At the launch supply those correspond to:
| 500 | 9,826,562 | 5.09e-5 | 1.03e-4 |
| 100,000 | 114,613,982 | 8.72e-4 | 2.15e-3 |
-### Mode 2 — Tokens to buy
+### Mode 2: Tokens to buy
-You type a token count; the app tells you what it costs, labelled *(incl. fees)* — the curve
+You type a token count; the app tells you what it costs, labelled *(incl. fees)*: the curve
integral multiplied by 1.005 for the 0.5% affiliation fee. Quick-pick buttons offer 500K, 1M, 5M,
10M and 100M tokens:
@@ -100,7 +100,7 @@ integral multiplied by 1.005 for the 0.5% affiliation fee. Quick-pick buttons of
| 100,000,000 | 71,838.182846 | 72,197.373760 |
The AE-mode estimate is computed from the bare curve and does not subtract the affiliation fee,
-while the token-mode estimate adds it — so expect the AE mode to deliver slightly fewer tokens than
+while the token-mode estimate adds it, so expect the AE mode to deliver slightly fewer tokens than
it shows. Both estimates are computed from supply zero, which is correct: the token does not exist
yet. The same helpers price the trade card of an existing token, fed the live supply instead.
@@ -124,7 +124,7 @@ The attached amount is estimated using the fee percentage read from the factory'
An over-estimate costs you nothing. `create_community` requires
`Call.value >= price(initial_buy_count)` and refunds the difference with
`Chain.spend(Call.caller, overpaid_refund)` in the same transaction. An under-estimate aborts with
-`VALUE_HAS_TO_BE_GREATER_THAN_BUY_PRICE` and the whole creation fails — nothing is half-created.
+`VALUE_HAS_TO_BE_GREATER_THAN_BUY_PRICE` and the whole creation fails. Nothing is half-created.
The form returns as soon as the transaction is broadcast and navigates you to
`/trends/tokens/YOURNAME?created=true&txHash=...` while it is still being mined. Expect
@@ -144,7 +144,7 @@ afterwards by DAO vote through `CommunityManagement.change_meta_info`.
| Creation fee | **None.** `create_community` charges nothing beyond the buy |
| Ongoing | Nothing. There is no listing fee or rent |
-Creating a token inside an existing collection is free. Creating a **collection** is not — that is
+Creating a token inside an existing collection is free. Creating a **collection** is not. That is
`create_collection`, which requires exactly 555 AE and burns it. See
[Collections & Naming Rules](/tokens/collections-and-naming).
@@ -164,7 +164,7 @@ spot price of `0.0000001 AE`. Anyone, including you, can buy first afterwards.
| "Wallet not connected" / no signature prompt | Wallet session dropped | Reconnect and retry |
| Nothing on the token page after 5 minutes | Transaction still pending, or it failed | Look up the `txHash` from the URL on [aeScan](https://aescan.io) |
-A failed creation costs you gas and nothing else — the whole deployment is one transaction, so no
+A failed creation costs you gas and nothing else. The whole deployment is one transaction, so no
partial community is left behind.
## After it is mined
@@ -172,13 +172,13 @@ partial community is left behind.
Your token is live and tradeable immediately.
- Open `/trends/tokens/YOURNAME` and check the Info tab for the sale, token, DAO and creator addresses.
-- Post about it — the community feed and the token's chat room are attached to the same page.
+- Post about it. The community feed and the token's chat room are attached to the same page.
- Read [Reading a Token Page](/tokens/token-page) to interpret what happens next.
## Related
-- [Create a Token (CLI)](/tokens/create-from-cli) — the same deployment from a terminal or an agent
-- [Collections & Naming Rules](/tokens/collections-and-naming) — why a name is rejected, and which collection it lands in
-- [Bonding Curves](/tokens/bonding-curve) — what the launch price means and how fast it moves
-- [Community factory contract](/contracts/community-factory) — `create_community` at the entrypoint level
-- [DAO overview](/dao/overview) — the treasury your token just created, and who controls it
+- [Create a Token (CLI)](/tokens/create-from-cli): the same deployment from a terminal or an agent
+- [Collections & Naming Rules](/tokens/collections-and-naming): why a name is rejected, and which collection it lands in
+- [Bonding Curves](/tokens/bonding-curve): what the launch price means and how fast it moves
+- [Community factory contract](/contracts/community-factory): `create_community` at the entrypoint level
+- [DAO overview](/dao/overview): the treasury your token just created, and who controls it
diff --git a/pages/tokens/curve-parameters.mdx b/pages/tokens/curve-parameters.mdx
index 49ffca3..c648566 100644
--- a/pages/tokens/curve-parameters.mdx
+++ b/pages/tokens/curve-parameters.mdx
@@ -19,9 +19,9 @@ every curve deployed from it carries the same values.
| Constant | Integer | In curve terms |
| --- | --- | --- |
-| `a` | `10^15` | `0.001` — the exponential's scale factor, in aettos |
-| `k` | `10^10` | `1e-8` — the growth rate per whole token of supply |
-| `initial_price` | `10^11` | `0.0000001 AE` — the spot price at supply zero |
+| `a` | `10^15` | `0.001`, the exponential's scale factor, in aettos |
+| `k` | `10^10` | `1e-8`, the growth rate per whole token of supply |
+| `initial_price` | `10^11` | `0.0000001 AE`, the spot price at supply zero |
| `decimals` | `10^18` | The fixed-point scale, matching aettos and the token's own decimals |
| `minimum_count` | `10^12` | The smallest tradable amount: `10^-6` tokens |
| `sell_return_percentage` | `9950` | 99.50% |
@@ -38,8 +38,8 @@ The scaling rule: for a curve `f(x) = α·e^(β·x) − γ`, the constants are `
### `minimum_count`
`calculate_price` requires `count >= minimum_count` and aborts with `MINIMUM_TOKENS_REQUIRED`
-otherwise. `minimum_count` is `10^12` token decimal units — `10^12 / 10^18 = 10^-6` tokens, one
-millionth of a token — so it only guards against a trade rounding to zero inside the integer
+otherwise. `minimum_count` is `10^12` token decimal units (`10^12 / 10^18 = 10^-6` tokens, one
+millionth of a token), so it only guards against a trade rounding to zero inside the integer
arithmetic. In practice it fires when you pass a **whole-token** count where the contract expects
decimal units: sending `5` instead of `5000000000000000000` aborts with `MINIMUM_TOKENS_REQUIRED`
rather than silently buying five attotokens.
@@ -47,7 +47,7 @@ rather than silently buying five attotokens.
### The sell factor
`calculate_sell_return` multiplies the curve integral by `sell_return_percentage` and divides by
-`sell_return_precision` — `9950 / 10000`, that is `0.995`. Use `10000` as the precision in your own
+`sell_return_precision`: `9950 / 10000`, that is `0.995`. Use `10000` as the precision in your own
code, or read `sell_return()` on the sale contract instead of reconstructing the factor.
## The three unit systems
@@ -80,7 +80,7 @@ the factory creates: `create_community` passes `decimals = 18` to the sale, and
Read the value from one of those entrypoints rather than hardcoding 18.
`GET /api/tokens/{address}` also returns `decimals` (as a string) alongside `total_supply`.
-`total_supply` from the API is already in token decimal units — divide it by 10^18 before feeding it
+`total_supply` from the API is already in token decimal units. Divide it by 10^18 before feeding it
to the curve.
## What each entrypoint expects
@@ -89,8 +89,8 @@ Everything below takes and returns plain integers. Nothing is a float.
| Call | Arguments | Returns |
| --- | --- | --- |
-| `BondingCurve.buy_price(total_supply)` | supply in token decimal units | `Frac.ceil(buy_curve(supply))` — see below |
-| `BondingCurve.sell_price(total_supply)` | supply in token decimal units | `Frac.floor(sell_curve(supply))` — see below |
+| `BondingCurve.buy_price(total_supply)` | supply in token decimal units | `Frac.ceil(buy_curve(supply))` (see below) |
+| `BondingCurve.sell_price(total_supply)` | supply in token decimal units | `Frac.floor(sell_curve(supply))` (see below) |
| `BondingCurve.calculate_buy_price(total_supply, count)` | both in token decimal units | total cost, aettos |
| `BondingCurve.calculate_sell_return(total_supply, sell_tokens)` | both in token decimal units | total return, aettos |
| `BondingCurve.buy_curve(x)` | supply in token decimal units | `Frac.frac` |
@@ -98,7 +98,7 @@ Everything below takes and returns plain integers. Nothing is a float.
| `TokenSale.sell_return(count)` | count in token decimal units | aettos you would receive |
| `TokenSale.buy(count)` | count in token decimal units, AE attached in aettos | mints to the caller |
| `TokenSale.sell(count, minimal_return_required)` | count in token decimal units, floor in aettos | aettos returned |
-| `FungibleTokenFull.create_allowance(for_account, value)` | value in token decimal units | — |
+| `FungibleTokenFull.create_allowance(for_account, value)` | value in token decimal units | None |
The conversion the agent skill uses:
@@ -122,8 +122,8 @@ const countTokenDecimals = toTokenDecimals(5, 0n, 18n);
### `buy_price()` and `sell_price()`
`buy_price(total_supply)` is `Frac.ceil(buy_curve(total_supply))` and `sell_price(total_supply)` is
-`Frac.floor(sell_curve(total_supply))`. `buy_curve` returns AE per whole token — equivalently,
-aettos per attotoken — so rounding that ratio to an integer loses the value:
+`Frac.floor(sell_curve(total_supply))`. `buy_curve` returns AE per whole token (equivalently,
+aettos per attotoken), so rounding that ratio to an integer loses the value:
| Supply (tokens) | `buy_curve` value | `buy_price()` returns | `sell_price()` returns |
| --- | --- | --- | --- |
@@ -135,7 +135,7 @@ aettos per attotoken — so rounding that ratio to an integer loses the value:
`buy_price()` stays at `1` until the curve value passes `1 AE` per token, at a supply of roughly
`6.9e8` tokens, and `sell_price()` floors to `0` below that. Use `calculate_buy_price` and
-`calculate_sell_return` for quotes — or `price` and `sell_return` on the sale contract — and
+`calculate_sell_return` for quotes (or `price` and `sell_return` on the sale contract), and
`buy_curve(x)` for the spot value as an exact rational.
## `Frac.frac`
@@ -149,7 +149,7 @@ Frac.frac = Pos(int, int) | Zero | Neg(int, int)
```
Each constructor carries a numerator and a denominator, with the sign in the constructor name rather
-than in the integers — both fields of `Pos` and `Neg` are strictly positive. Decoded by the
+than in the integers: both fields of `Pos` and `Neg` are strictly positive. Decoded by the
JavaScript SDK you get a tagged object, and the value is numerator over denominator:
```js
@@ -175,7 +175,7 @@ Three rules carry over from the Sophia standard library:
to `BigNumber` first.
3. The denominator is not fixed and can be large. Do not coerce it to a JavaScript `number`.
-`buy_curve(x)` evaluates to **AE per whole token** — identically, aettos per attotoken, since both
+`buy_curve(x)` evaluates to **AE per whole token**, or identically aettos per attotoken, since both
sides scale by `10^18`. At supply zero it is `1e-7`, matching the `0.0000001 AE` launch price.
Multiply by `10^18` for a spot price in aettos per whole token.
@@ -211,7 +211,7 @@ Three properties matter if you are reimplementing this:
1. **The series is truncated twice.** It stops at `i > 100`, and it stops as soon as a term floors
to `0` under integer division. In the supply range these tokens trade in, the second bound always
- fires first — the terms collapse long before the hundredth.
+ fires first; the terms collapse long before the hundredth.
2. **`mc2` starts at the quadratic term.** It returns `scale · (e^z − 1 − z)` rather than
`scale · e^z`, where `z = k·supply / 10^18` is the curve exponent. The missing linear term is
what the `(initial_price * count) / decimals` summand restores; that is where the `−0.0009999`
@@ -223,7 +223,7 @@ Three properties matter if you are reimplementing this:
`sell_price` is not a separate curve evaluation: `calculate_sell_return(supply, n)` is
`calculate_price(supply − n, n) × 9950 / 10000`, floored.
-## Reference implementation — exact
+## Reference implementation: exact
A line-for-line replica in `BigInt`. It returns the same integer the contract returns, because it
performs the same floor divisions in the same order. `BigInt` division truncates toward zero, which
@@ -273,18 +273,18 @@ calculateSellReturn(10_001_000n * T, 1000n * T); // 104750061728914276n
Note the last line: a sell is quoted against the supply that exists **after** your buy, so the
round trip of 1,000 tokens at supply 10,000,000 costs `105276443948657564` aettos of curve value and
-returns `104750061728914276` — the 0.5% sell spread, before the affiliation fee on the way in. See
+returns `104750061728914276`. The gap is the 0.5% sell spread, before the affiliation fee on the way in. See
[Fees & Slippage](/tokens/fees-and-slippage).
-## Reference implementation — floating point
+## Reference implementation: floating point
-For an estimate — a chart, a slider, a sanity check — the closed form is faster and easier to read.
+For an estimate (a chart, a slider, a sanity check), the closed form is faster and easier to read.
It is not exact at the aettos level. Supply and count go in as whole tokens; the result comes out as
aettos.
The antiderivative of `buy(x) = A·e^(K·x) − C` is `F(x) = (A/K)·e^(K·x) − C·x`, so the cost of
minting `n` tokens from supply `S` is `F(S + n) − F(S)`. Factor the exponential difference and use
-`Math.expm1` rather than subtracting two values near `A/K = 100,000` directly — the naive form
+`Math.expm1` rather than subtracting two values near `A/K = 100,000` directly. The naive form
returns `0.00010500001371838152` for the first example below, correct to only seven significant
figures.
@@ -321,7 +321,7 @@ buyPriceAettos(0, 1000).toFixed(0); // "105000016666912" vs 10500001
buyPriceAettos(10_000_000, 1000).toFixed(0); // "105276443948657760" vs 105276443948657564
```
-The residual — a couple of hundred aettos on each — is double rounding, not a difference in the
+The residual, a couple of hundred aettos on each, is double rounding, not a difference in the
model: the contract's truncated Taylor series tracks the closed form to within `4e-19 AE` across
this range. A double has about 15–16 significant digits in total while an aettos figure needs 18,
so **no floating-point implementation can be exact at the aettos level.** Use these for estimates
@@ -350,7 +350,7 @@ Because the curve is convex, the trapezoidal rule always *overestimates* slightl
| 10,000,000 tokens from supply 0 | 518.091807565 | 518.092683989 | +1.69 ppm |
| 100,000,000 tokens from supply 0 | 71,838.182845904 | 71,839.614745042 | +19.9 ppm |
-Twenty parts per million on a 70,000 AE trade is about 1.4 AE — real money on large orders, though
+Twenty parts per million on a 70,000 AE trade is about 1.4 AE. That is real money on large orders, though
far inside any sane slippage tolerance. **Treat every off-chain calculation as an estimate and the
contract's own return value as the price.** The agent skill uses bisection only to pick a token
count, then calls `calculate_buy_price` on-chain for the amount it attaches.
@@ -396,10 +396,10 @@ contract at `bonding_curve_address`.
## Related
-- [Bonding Curves](/tokens/bonding-curve) — the formula these units belong to, with the integration worked out
-- [Buying & Selling](/tokens/buying-and-selling) — where these conversions get used on a real trade
-- [Calling contracts](/contracts/calling-contracts) — SDK setup, ACIs and dry-run calls in general
-- [Bonding curve contract](/contracts/bonding-curve) — entrypoint-level reference
-- [AEX-9 tokens](/contracts/aex9) — the token standard whose `decimals` you are reading
-- [Fees & Slippage](/tokens/fees-and-slippage) — what `price()` adds on top of the curve integral computed here
-- [Sophia standard library](https://github.com/aeternity/aesophia/blob/master/docs/sophia_stdlib.md) — the `Frac` namespace
+- [Bonding Curves](/tokens/bonding-curve): the formula these units belong to, with the integration worked out
+- [Buying & Selling](/tokens/buying-and-selling): where these conversions get used on a real trade
+- [Calling contracts](/contracts/calling-contracts): SDK setup, ACIs and dry-run calls in general
+- [Bonding curve contract](/contracts/bonding-curve): entrypoint-level reference
+- [AEX-9 tokens](/contracts/aex9): the token standard whose `decimals` you are reading
+- [Fees & Slippage](/tokens/fees-and-slippage): what `price()` adds on top of the curve integral computed here
+- [Sophia standard library](https://github.com/aeternity/aesophia/blob/master/docs/sophia_stdlib.md): the `Frac` namespace
diff --git a/pages/tokens/fees-and-slippage.mdx b/pages/tokens/fees-and-slippage.mdx
index 208d1d7..1b18cff 100644
--- a/pages/tokens/fees-and-slippage.mdx
+++ b/pages/tokens/fees-and-slippage.mdx
@@ -43,7 +43,7 @@ function affiliation_amount(bonding_curve_price : int) =
| --- | --- |
| `BondingCurve.calculate_buy_price(supply, count)` | The bare curve integral |
| `TokenSale.price(count)` | The curve integral **plus** the 0.5% affiliation fee |
-| `TokenSale.sell_return(count)` | `BondingCurve.calculate_sell_return(supply, count)` verbatim — no fee added or removed |
+| `TokenSale.sell_return(count)` | `BondingCurve.calculate_sell_return(supply, count)` verbatim, with no fee added or removed |
**Attach exactly `price(count)` and you are fully covered.** Do not multiply it by 1.005 again. The
web app applies the 1.005 to the *curve* figure it computes off-chain, not to `price()`; the CLI
@@ -66,7 +66,7 @@ if (overpaid_refund > 0) Chain.spend(Call.caller, overpaid_refund) else ()
```
`CommunityFactory.create_community` does the same before it forwards the initial buy. A slippage
-buffer costs you nothing when the price does not move — you get the unused portion back in the same
+buffer costs you nothing when the price does not move: you get the unused portion back in the same
transaction. The only cost of a generous buffer is that the AE has to be in your wallet when you sign.
### Where each AE goes
@@ -116,12 +116,12 @@ state.dao_contract.record_sale_transaction(
```
`total_supply()` has already been incremented by the mint, so `reserve` is exactly
-`0.995 × bonding_curve_price` — the AE that would be owed if the buyer immediately sold back. The
+`0.995 × bonding_curve_price`, the AE that would be owed if the buyer immediately sold back. The
DAO gets `bonding_curve_price − reserve`, the remaining `0.5%`, and the sale contract keeps the
reserve. The payout obligation is computed first and the treasury receives only what is left over,
which is why the reserve is always solvent.
-Both external calls use `protected = true`, so a failing DAO or treasury call cannot block a trade —
+Both external calls use `protected = true`, so a failing DAO or treasury call cannot block a trade;
the value stays in the sale contract instead of reverting the buy.
### What 1% costs you in practice
@@ -139,7 +139,7 @@ difference 0.001052764439 AE
```
That is **1% of the curve value, and 0.995% of the AE you handed over**; the two differ because the
-fee is added on top of the curve price on the way in. Every position starts about 1% down — see
+fee is added on top of the curve price on the way in. Every position starts about 1% down. See
[Risks](/tokens/risks).
The spread is charged on value, not on trade count, so ten small round trips cost the same 1% each
@@ -164,7 +164,7 @@ Buying from a supply of 10,000,000, where spot is `1.052709e-4 AE`:
Rule of thumb: **your premium to spot is roughly half the percentage of the supply you are adding**,
up to about 10%, and worse than that beyond it.
-Splitting the order does not help. The curve is path-independent — ten buys of 1,000,000 from a
+Splitting the order does not help. The curve is path-independent: ten buys of 1,000,000 from a
rising supply cost exactly the same total as one buy of 10,000,000, because the integral is the same
area either way. The only levers are trade size and the supply you trade at.
@@ -190,7 +190,7 @@ precisely, call the contract directly, as shown in [Buying & Selling](/tokens/bu
The guards are asymmetric:
- **On a buy**, the guard is an upper bound on spend. You attach more AE than the quote; anything the trade does not need is refunded in the same transaction, and if the price moved further than your tolerance the call reverts with `AE_AMOUNT_NOT_SUFFICIENT`.
-- **On a sell**, the guard is `minimal_return_required` — a floor on the payout. Below it the call reverts with `MINIMAL_RETURN_NOT_MEET` and your tokens stay where they are.
+- **On a sell**, the guard is `minimal_return_required`, a floor on the payout. Below it the call reverts with `MINIMAL_RETURN_NOT_MEET` and your tokens stay where they are.
Because surplus is refunded, a buy buffer is close to free and a sell floor is a real decision. Size
the sell floor carefully; be generous with the buy buffer.
@@ -203,7 +203,7 @@ Every transaction pays an æternity network fee in AE, independent of everything
| --- | --- | --- |
| Create a token | 1 contract call | About 0.001 AE |
| Buy | 1 contract call | Depends on contract execution |
-| Sell | 2 contract calls — allowance, then sell | Depends on contract execution |
+| Sell | 2 contract calls: allowance, then sell | Depends on contract execution |
| Post | 1 contract call | Depends on contract execution |
Read the exact fee off any mined transaction in [aeScan](https://aescan.io). Two things hold
@@ -241,8 +241,8 @@ fee for holding.
## Related
-- [Bonding Curves](/tokens/bonding-curve) — the integral behind every fee and slippage figure, worked out by hand
-- [Buying & Selling](/tokens/buying-and-selling) — how to set a guard yourself instead of taking the default
-- [Risks](/tokens/risks) — what a 1% round-trip spread means for a position you intend to hold
-- [Affiliation rewards](/rewards/affiliation) — where the 0.5% affiliation half of the spread ends up
-- [DAO treasury](/dao/treasury) — what the community can do with its half
+- [Bonding Curves](/tokens/bonding-curve): the integral behind every fee and slippage figure, worked out by hand
+- [Buying & Selling](/tokens/buying-and-selling): how to set a guard yourself instead of taking the default
+- [Risks](/tokens/risks): what a 1% round-trip spread means for a position you intend to hold
+- [Affiliation rewards](/rewards/affiliation): where the 0.5% affiliation half of the spread ends up
+- [DAO treasury](/dao/treasury): what the community can do with its half
diff --git a/pages/tokens/index.mdx b/pages/tokens/index.mdx
index c4dac97..f38cb14 100644
--- a/pages/tokens/index.mdx
+++ b/pages/tokens/index.mdx
@@ -6,13 +6,13 @@ description: "Community tokens, the exponential bonding curve that prices them,
# Tokens & Bonding Curves
Anyone can turn a topic into a market. Type a name, and a few seconds later that idea has a token,
-a price, a chart and a treasury — no listing, no approval, no market maker.
+a price, a chart and a treasury, with no listing, approval or market maker involved.
The price comes from a curve rather than an order book. Every buy mints new tokens and nudges the
price up; every sell burns them and moves it back down. So there is always a price, always
liquidity, and no counterparty to find: you are trading with the contract itself, which holds
-enough reserve to buy the entire supply back. **Getting in early is not a metaphor here — it is
-arithmetic.**
+enough reserve to buy the entire supply back. Because the price is a function of supply, tokens bought
+before the supply grows cost less.
## The numbers to remember
@@ -22,7 +22,7 @@ arithmetic.**
| Sell curve | `sell(x) = buy(x) · 0.995` |
| Price of a trade | The integral of the curve across the supply you mint into or burn out of |
| Launch price | 0.0000001 AE per token, at supply 0 |
-| Spread | 1% of the curve value — 0.5% to the community DAO, 0.5% to affiliation |
+| Spread | 1% of the curve value: 0.5% to the community DAO, 0.5% to affiliation |
| Instant round trip | Returns 0.99502 of what you paid, before gas |
| Affiliation split | 0.300% / 0.125% / 0.050% / 0.025% across four referral levels; burned if unreferred |
| ProtocolDAO reward | Minted to the buyer on every buy, proportional to its AE value |
@@ -31,10 +31,10 @@ arithmetic.**
## Where to start
-1. **[Bonding Curves](/tokens/bonding-curve)** — the formula, integrated by hand, with two worked buys. Everything else assumes it.
-2. **[Curve Parameters & Units](/tokens/curve-parameters)** — read before you call a contract, so you are not off by 10^18.
-3. **[Fees & Slippage](/tokens/fees-and-slippage)** — the three things that separate the price you see from the price you get.
-4. **[Risks](/tokens/risks)** — read before you buy anything.
+1. **[Bonding Curves](/tokens/bonding-curve)**: the formula, integrated by hand, with two worked buys. Everything else assumes it.
+2. **[Curve Parameters & Units](/tokens/curve-parameters)**: read before you call a contract, so you are not off by 10^18.
+3. **[Fees & Slippage](/tokens/fees-and-slippage)**: the three things that separate the price you see from the price you get.
+4. **[Risks](/tokens/risks)**: read before you buy anything.
To launch a token now, open [superhero.com/trends/create](https://superhero.com/trends/create); to
buy one, start from [the trending list](https://superhero.com/trends/tokens).
@@ -59,8 +59,8 @@ buy one, start from [the trending list](https://superhero.com/trends/tokens).
## Related
-- [Value flow](/concepts/value-flow) — how AE moves through the whole platform, of which the curve is one part
-- [DAO overview](/dao/overview) — the treasury every token creates, and who controls it
-- [Affiliation rewards](/rewards/affiliation) — where the other half of the spread goes
-- [Token sale contract](/contracts/token-sale) — the entrypoint-level reference for the sale contract
-- [Tokens API](/api-reference/tokens) — the REST surface for tokens, prices and rankings
+- [Value flow](/concepts/value-flow): how AE moves through the whole platform, of which the curve is one part
+- [DAO overview](/dao/overview): the treasury every token creates, and who controls it
+- [Affiliation rewards](/rewards/affiliation): where the other half of the spread goes
+- [Token sale contract](/contracts/token-sale): the entrypoint-level reference for the sale contract
+- [Tokens API](/api-reference/tokens): the REST surface for tokens, prices and rankings
diff --git a/pages/tokens/overview.mdx b/pages/tokens/overview.mdx
index ec5393e..d5dd12c 100644
--- a/pages/tokens/overview.mdx
+++ b/pages/tokens/overview.mdx
@@ -16,7 +16,7 @@ that community, not a claim on a company.
| Decimals | 18, read from the token's `meta_info()` |
| Issuance | Minted on buy, burned on sell, via the bonding curve |
| Pricing | Exponential bonding curve, a pure function of supply |
-| Buy/sell spread | 1% of the curve value — 0.5% to the community DAO, 0.5% to affiliation |
+| Buy/sell spread | 1% of the curve value: 0.5% to the community DAO, 0.5% to affiliation |
| Utility | Community governance voting, write-access threshold, community membership |
| Solvency | The full supply is redeemable at all times against the curve reserve |
| Supply cap | None. Supply is elastic and grows with demand |
@@ -33,8 +33,8 @@ order:
| 3 | `AffiliationBondingCurveTokenSale` | Buy, sell, mint, burn, affiliation fee routing |
| 4 | `DAO` | Owner and beneficiary of the sale; holds the treasury |
| 5 | `CommunityManagement` | Moderators, mute list, write threshold, community metadata |
-| 6 | — | Registration in the factory's on-chain community registry |
-| 7 | — | Optional initial token purchase, in the same transaction |
+| 6 | None | Registration in the factory's on-chain community registry |
+| 7 | None | Optional initial token purchase, in the same transaction |
`create_community` returns the tuple `(DAO, TokenSale, CommunityManagement)`. The bonding curve
contract is shared: the factory exposes a single `bonding_curve()` and every sale contract points
@@ -55,7 +55,7 @@ Both are `ct_` addresses and both appear on a token page.
listing keys off `sale_address`; you need the token address only for raw AEX-9 work such as
approving an allowance before a sell. The sale contract holds tokens under the account form of its
own address, so an allowance is granted to `sale_address` with its `ct_` prefix rewritten as
-`ak_` — see [Buying & Selling](/tokens/buying-and-selling).
+`ak_`. See [Buying & Selling](/tokens/buying-and-selling).
## What holding the token gets you
@@ -80,17 +80,17 @@ own address, so an allowance is granted to `sale_address` with its `ct_` prefix
| Scope | One community | The whole platform |
| Issuance | Minted on buy against the curve | Minted as a reward on every community-token buy |
| Price | Bonding curve | Not sold; issued only as a by-product of buying |
-| Utility today | Voting, write threshold, membership | None yet — issuance is live, governance is in development |
+| Utility today | Voting, write threshold, membership | None yet. Issuance is live; governance is in development |
-Every community-token buy mints ProtocolDAO tokens to the buyer at **1,000×** the AE paid —
+Every community-token buy mints ProtocolDAO tokens to the buyer at **1,000×** the AE paid,
affiliation fee included, after any surplus refund. The `Mint` event on the ProtocolDAO token
contract carries the exact figure. See [The ProtocolDAO Token](/dao/protocol-dao).
## Related
-- [Bonding Curves](/tokens/bonding-curve) — how the price of all this is computed, with worked numbers
-- [Create a Token (Dashboard)](/tokens/create-from-dashboard) — launch one from the app in a few minutes
-- [Collections & Naming Rules](/tokens/collections-and-naming) — the namespace your token name has to fit into
-- [Community factory contract](/contracts/community-factory) — `create_community` and the registry, entrypoint by entrypoint
-- [Risks](/tokens/risks) — read before you buy anything
-- [AEX-9 standard](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md) — the fungible token specification these tokens implement
+- [Bonding Curves](/tokens/bonding-curve): how the price of all this is computed, with worked numbers
+- [Create a Token (Dashboard)](/tokens/create-from-dashboard): launch one from the app in a few minutes
+- [Collections & Naming Rules](/tokens/collections-and-naming): the namespace your token name has to fit into
+- [Community factory contract](/contracts/community-factory): `create_community` and the registry, entrypoint by entrypoint
+- [Risks](/tokens/risks): read before you buy anything
+- [AEX-9 standard](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md): the fungible token specification these tokens implement
diff --git a/pages/tokens/portfolio.mdx b/pages/tokens/portfolio.mdx
index 9d94ecc..c69185c 100644
--- a/pages/tokens/portfolio.mdx
+++ b/pages/tokens/portfolio.mdx
@@ -32,11 +32,11 @@ token record.
| --- | --- | --- |
| `token_name` | `token.name` | The token's name, which is also its symbol |
| `token_symbol` | `token.symbol` | Same string in practice |
-| `sale_address` | `token.sale_address` | The bonding-curve contract — the handle for buy and sell |
+| `sale_address` | `token.sale_address` | The bonding-curve contract, the handle for buy and sell |
| `token_address` | `aex9_address` or `token.address` | The AEX-9 contract, for allowances and transfers |
| `balance` | `balance` | Tokens held |
| `buy_price_ae` | `token.price` | Current spot **buy** price, per token |
-| `sell_price_ae` | `token.sell_price` | Current spot **sell** price, per token — 0.5% below buy |
+| `sell_price_ae` | `token.sell_price` | Current spot **sell** price, per token, 0.5% below buy |
| `trending_score` | `token.trending_score` | Momentum signal for that token |
Value a position at `sell_price_ae`, never at `buy_price_ae`. The buy price is what the next person
@@ -47,7 +47,7 @@ and `sell_price_ae`, with the caveat below.
Backed by `GET /api/accounts/{address}/portfolio/history`, which accepts `startDate`, `endDate`,
`interval`, `convertTo` and `include`. Pass `include=pnl` or `include=pnl-range` to get the PnL
-block — the two differ; see below.
+block. The two differ; see below.
### Snapshots are computed on request
@@ -71,7 +71,7 @@ Two consequences:
The effective interval is `max(your interval, that minimum)`; the default when you pass none is
86,400 seconds. Ask for 5-minute granularity over a year and you get weekly points.
-The AE balance lookup floors each block height to a multiple of 300 key blocks — roughly 15 hours —
+The AE balance lookup floors each block height to a multiple of 300 key blocks (roughly 15 hours),
so snapshots inside the same bucket share one AE balance. Token values are exact per snapshot; the
liquid-AE line is stepped. Responses are cached for 10 minutes.
@@ -91,17 +91,17 @@ And inside `total_pnl`:
| Field | Meaning |
| --- | --- |
| `percentage` | `gain.ae / invested.ae × 100`, or `0` when nothing was invested |
-| `invested` | Cost basis, as `ae` and `usd` — defined differently in the two modes, see below |
+| `invested` | Cost basis, as `ae` and `usd`, defined differently in the two modes (see below) |
| `current_value` | Market value of tokens still held, as `ae` and `usd`. Always cumulative |
| `gain` | The profit figure, as `ae` and `usd` |
-| `range` | The `from` and `to` bounds — present **only** under `include=pnl-range` |
+| `range` | The `from` and `to` bounds, present **only** under `include=pnl-range` |
### How PnL is computed
Cost basis is **average cost, not FIFO**. There is no lot tracking: the backend sums what you spent
and what you bought, and divides.
-`include=pnl` — cumulative mode, per token, summed across tokens:
+`include=pnl` is cumulative mode, per token, summed across tokens:
```text
invested = every AE you ever spent on this token (all buy + create_community rows)
@@ -109,7 +109,7 @@ current_value = tokens still held × current unit price
gain = proceeds from all your sells + current_value − invested
```
-`include=pnl-range` — realised-only mode, per snapshot window:
+`include=pnl-range` is realised-only mode, per snapshot window:
```text
avg_cost = (all-time AE spent) / (all-time volume bought)
@@ -122,12 +122,12 @@ what the app's PnL calendar and sparkline are built on. Cumulative mode is what
this position doing".
A partial sell is attributed at the **all-time average purchase price**, blended across every buy
-you ever made in that token — including buys made after the sell. A realised gain reported for a
+you ever made in that token, including buys made after the sell. A realised gain reported for a
past day can therefore change if you buy more of the same token later.
Three details that decide whether a number looks right:
-- **The 0.5% affiliation fee is inside `invested`.** The cost basis comes from the transaction row's `amount`, decoded from the sale contract's `Buy` event — its first argument is `total_price`, the fee-inclusive AE you paid.
+- **The 0.5% affiliation fee is inside `invested`.** The cost basis comes from the transaction row's `amount`, decoded from the sale contract's `Buy` event, whose first argument is `total_price`, the fee-inclusive AE you paid.
- **Gas is not.** The æternity transaction fee never reaches the contract, so it appears in no row and in no cost basis. Your real cost is slightly higher than `invested` says.
- **`current_unit_price` is the last trade's price, not a live quote.** It is the `buy_price.ae` of the most recent transaction at or before the snapshot height. On a token nobody has traded in a week, your position is valued at last week's price. It is also a *buy*-side unit price, which overstates an exit for the reason below.
@@ -143,7 +143,7 @@ period PnL computed as `latest.total_value_ae − oldest.total_value_ae`. That i
## Your position is worth less than it says
-A holdings row prices your balance at the current spot sell price — one number times another. But
+A holdings row prices your balance at the current spot sell price (one number times another). But
selling is an integral: as your tokens burn, the supply falls and every subsequent token in your own
sell fetches less than the one before it.
@@ -170,7 +170,7 @@ will pay, and it costs nothing to ask. See [Buying & Selling](/tokens/buying-and
## Why a position can lose value without you doing anything
1. **Other people sell.** The supply falls, the curve slides down, and every remaining holder's position is repriced lower.
-2. **Other people buy.** Your position's AE value rises — but your *share* of the supply falls, because new tokens were minted. On a governance stake, that dilution matters even while the value line goes up.
+2. **Other people buy.** Your position's AE value rises, but your *share* of the supply falls, because new tokens were minted. On a governance stake, that dilution matters even while the value line goes up.
3. **The AE price moves.** `total_value_usd` can fall while `total_value_ae` is flat, or vice versa. Decide which unit you are measuring in and be consistent.
There is no mechanism by which a position gains or loses value from time alone: no staking yield, no
@@ -182,13 +182,13 @@ Nothing in the portfolio view is realised until you sell, and the 1% spread mean
position starts about 1% underwater. The public
[trading leaderboard](https://superhero.com/trends/leaderboard) ranks accounts by `pnl_usd`,
`roi_pct`, `aum_usd` and `mdd_pct` (maximum drawdown) alongside `buy_count`, `sell_count`,
-`created_tokens_count` and `owned_trends_count` — the numbers to compare against if you want to know
+`created_tokens_count` and `owned_trends_count`. These are the numbers to compare against if you want to know
how a strategy is doing relative to other people rather than relative to its own entry.
## Related
-- [Buying & Selling](/tokens/buying-and-selling) — `sell_return` and the allowance step, for turning a position back into AE
-- [Bonding Curves](/tokens/bonding-curve) — the integral behind the shortfall table above
-- [Transaction History](/tokens/transactions) — your actual fills, which is where a cost basis comes from
-- [Reading a Token Page](/tokens/token-page) — the same caveat applied to a token's market cap
-- [Accounts API](/api-reference/accounts) — the endpoints behind both views, including the leaderboard
+- [Buying & Selling](/tokens/buying-and-selling): `sell_return` and the allowance step, for turning a position back into AE
+- [Bonding Curves](/tokens/bonding-curve): the integral behind the shortfall table above
+- [Transaction History](/tokens/transactions): your actual fills, which is where a cost basis comes from
+- [Reading a Token Page](/tokens/token-page): the same caveat applied to a token's market cap
+- [Accounts API](/api-reference/accounts): the endpoints behind both views, including the leaderboard
diff --git a/pages/tokens/risks.mdx b/pages/tokens/risks.mdx
index 7593c49..c534ab4 100644
--- a/pages/tokens/risks.mdx
+++ b/pages/tokens/risks.mdx
@@ -6,8 +6,8 @@ description: "What can go wrong with a community token — the 1% starting loss,
# Risks
Community tokens are volatile, reflexive, and structurally loss-making on a short round trip. The
-bonding curve removes some risks that exist elsewhere — there is no liquidity to pull and no
-counterparty to default — and introduces others that are specific to it.
+bonding curve removes some risks that exist elsewhere (there is no liquidity to pull and no
+counterparty to default) and introduces others that are specific to it.
Nothing here is financial advice. Never risk funds you cannot afford to lose.
@@ -29,7 +29,7 @@ loss 0.001052764439 AE = 0.995% of what you paid
```
Before gas. **The price has to rise about 1% before you are level**, which on this curve means the
-supply must grow by roughly the same 1% — somebody else has to buy about as much as you did for you
+supply must grow by roughly the same 1%: somebody else has to buy about as much as you did for you
to break even.
For a trader doing many round trips this compounds: ten round trips at unchanged prices leave you
@@ -54,13 +54,13 @@ a position's value. See [Portfolio & PnL](/tokens/portfolio).
The same logic makes large entries expensive: adding 10% to a token's supply costs about 5% above
the price you were quoted, and doubling the supply costs about 54% above it. Splitting the order does
-not help — the curve is path-independent. See [Fees & Slippage](/tokens/fees-and-slippage).
+not help, because the curve is path-independent. See [Fees & Slippage](/tokens/fees-and-slippage).
## 3. Reflexivity
Price is a pure function of supply and nothing else. There is no external market, no arbitrageur,
and no fundamental value pulling the price back to anything, so the feedback loop is direct: buying
-raises the price, which attracts buyers, which raises the price — and selling does the same in
+raises the price, which attracts buyers, which raises the price, and selling does the same in
reverse. Neither direction has a natural floor above the curve itself, and a price that rose on one
large buy is exactly as "real" as one that rose on a thousand small ones.
@@ -74,9 +74,9 @@ further up the curve than the people the signal is reporting on. See
Most community tokens are small. The specific dangers in a thin one:
- **A single holder can be the market.** If one address holds 50% of the supply, their exit walks the price down through every other holder's position first. Check the Holders tab before you buy.
-- **The creator's entry was much cheaper than yours.** A pre-buy at creation happens at the very bottom of the curve: the first 437,014 tokens cost exactly 1 AE, while the same 437,014 tokens bought at a supply of 10,000,000 cost 47.06 AE — 47 times more. An early holder can be far ahead while a later one is underwater.
+- **The creator's entry was much cheaper than yours.** A pre-buy at creation happens at the very bottom of the curve: the first 437,014 tokens cost exactly 1 AE, while the same 437,014 tokens bought at a supply of 10,000,000 cost 47.06 AE, 47 times more. An early holder can be far ahead while a later one is underwater.
- **Low holder count with high supply is one person's position with a price attached**, not a community.
-- **Dilution.** Supply is unlimited and minted on demand. Your balance does not change when other people buy, but your share of the supply — and therefore your governance weight — falls.
+- **Dilution.** Supply is unlimited and minted on demand. Your balance does not change when other people buy, but your share of the supply, and therefore your governance weight, falls.
## 5. Abandoned tokens
@@ -87,14 +87,14 @@ prices and the curve keeps working, but:
- Whatever the DAO treasury accumulated stays there. Opening a DAO vote costs **555 AE** paid by the proposer, so a treasury worth less than 555 AE is effectively unspendable: nobody will rationally pay more to propose a payout than the payout is worth. See [DAO voting](/dao/voting).
- Governance requires a quorum of 10% of the token stake and 55% approval within two weeks. In an abandoned community that quorum may be unreachable, which freezes the treasury, the moderator set and the write threshold as they are.
-You can always sell back to the curve — solvency is guaranteed — but you will be selling into whatever
+You can always sell back to the curve (solvency is guaranteed), but you will be selling into whatever
supply remains, at whatever price the last trades left behind.
## 6. Mechanism risk
| Risk | What it means |
| --- | --- |
-| Slippage between quote and fill | Other trades land before yours. Guarded by your slippage tolerance on a buy and by `minimal_return_required` on a sell — both of which revert rather than fill badly, costing you gas |
+| Slippage between quote and fill | Other trades land before yours. Guarded by your slippage tolerance on a buy and by `minimal_return_required` on a sell. Both revert rather than fill badly, and a revert still costs gas |
| A sell with no floor | `minimal_return_required` of 0 means "fill me at any price". On a falling curve that is exactly wrong |
| Standing allowances | Selling requires granting the sale contract an AEX-9 allowance. Leaving a large one in place authorises that contract to move that many tokens until you reduce it |
| Two-step sells | A sell is two transactions. If the second fails, you have granted an allowance and still hold the tokens |
@@ -118,13 +118,13 @@ See [Contract security](/contracts/security).
- **Read the transaction before you sign it.** Check the contract address, the amount and the entrypoint. A malicious site can ask you to sign something that looks like a buy.
- **Phishing.** Addresses are long and look alike. Verify a sale address against the token page or [aeScan](https://aescan.io) rather than pasting one from a chat message.
- **Agents holding raw private keys.** The CLI scripts sign with `AE_PRIVATE_KEY` from the environment. An agent with that key can spend the whole balance, and a prompt-injected agent can be told to. Use a dedicated wallet with a limited balance. See [Agent safety](/agents/safety).
-- **Autonomous trading.** A strategy that trades every 2–6 hours pays the 1% spread every round trip. Model the friction before you enable it — see [Autonomous mode](/agents/autonomous-mode).
+- **Autonomous trading.** A strategy that trades every 2–6 hours pays the 1% spread every round trip. Model the friction before you enable it. See [Autonomous mode](/agents/autonomous-mode).
## 9. Availability and data risk
The chain is the system of record; superhero.com is a client on top of it. If the web app or the
-indexer is down, your tokens and the contracts are unaffected — you can trade directly against the
-sale contract with the SDK — but price charts, the trending score, portfolio valuations and
+indexer is down, your tokens and the contracts are unaffected (you can trade directly against the
+sale contract with the SDK), but price charts, the trending score, portfolio valuations and
transaction history are served by the backend and go with it. Indexer lag is normal: a new token
takes 2–5 minutes to appear, and a trade may be on-chain before it shows in a list. Verify against
the explorer before concluding something failed.
@@ -136,8 +136,8 @@ the explorer before concluding something failed.
## Related
-- [Bonding Curves](/tokens/bonding-curve) — the arithmetic behind the spread and slippage numbers above
-- [Fees & Slippage](/tokens/fees-and-slippage) — the three cost components separated out
-- [Portfolio & PnL](/tokens/portfolio) — why a position's displayed value overstates its exit
-- [Reading a Token Page](/tokens/token-page) — how to check concentration and flow before buying
-- [Contract security](/contracts/security) — the security model of the contract suite
+- [Bonding Curves](/tokens/bonding-curve): the arithmetic behind the spread and slippage numbers above
+- [Fees & Slippage](/tokens/fees-and-slippage): the three cost components separated out
+- [Portfolio & PnL](/tokens/portfolio): why a position's displayed value overstates its exit
+- [Reading a Token Page](/tokens/token-page): how to check concentration and flow before buying
+- [Contract security](/contracts/security): the security model of the contract suite
diff --git a/pages/tokens/token-page.mdx b/pages/tokens/token-page.mdx
index b0ae3a1..d0e70d3 100644
--- a/pages/tokens/token-page.mdx
+++ b/pages/tokens/token-page.mdx
@@ -18,7 +18,7 @@ A token page at `/trends/tokens/NAME` puts five panels in front of you. Open one
| Transactions | Recent buys and sells with timestamps and transaction hashes |
| Holders | Top addresses and their balances |
-Trade, Transactions and Holders are disabled for a name that does not exist yet — the page doubles
+Trade, Transactions and Holders are disabled for a name that does not exist yet. The page doubles
as the "this token has not been created" screen, with a Create Token call to action.
## The Info tab
@@ -33,7 +33,7 @@ Every field in the token summary is a hard fact rather than an interpretation:
| Total supply | Tokens currently in circulation. Minted by buys, burned by sells |
| Creation date | When the community was deployed |
| Contract address | The AEX-9 token contract |
-| Sale address | The bonding-curve sale contract — the handle for all trading |
+| Sale address | The bonding-curve sale contract, the handle for all trading |
| Created by | The account that called `create_community` |
The API record behind it carries more than the panel shows: `sell_price` (the spot sell price, 0.5%
@@ -44,8 +44,8 @@ under `price`), `circulating_supply`, `rank`, `holders_count`, `tx_count`, `tren
`rank` is a stored market-cap rank over listed tokens, refreshed every 5 minutes. A token that has
never been ranked sorts last, so a brand-new token does not briefly outrank everything.
-`tx_count` is a count of indexed transaction rows for that sale address — **all-time, including the
-`create_community` row** — recomputed every time a new transaction for the token is persisted. It
+`tx_count` is a count of indexed transaction rows for that sale address (**all-time, including the
+`create_community` row**), recomputed every time a new transaction for the token is persisted. It
counts trades, not traders: compare it against `holders_count` to see whether a busy token is busy
with many people or with one.
@@ -58,12 +58,12 @@ They come from different places and can legitimately disagree:
| `total_supply` | `total_supply()` on the AEX-9 contract, read directly |
| `circulating_supply` | æternity middleware's AEX-9 `event_supply`, tracked from the token's `Mint` / `Burn` / `Transfer` event log |
-`circulating_supply` is `null` until the middleware has indexed the token's events — on a new
-token, or when the middleware is behind. The two converge; use `total_supply` for anything that has
+`circulating_supply` is `null` until the middleware has indexed the token's events, which is
+the case on a new token or when the middleware is behind. The two converge; use `total_supply` for anything that has
to be right, including the 10% DAO participation quorum.
**DAO balance is the most under-read number on the page.** It is cumulative spread, so it measures
-how much value has actually traded through the token since launch — much harder to fake than a
+how much value has actually traded through the token since launch. It is much harder to fake than a
price, and not resettable by a single large buy.
## Market cap, precisely
@@ -77,7 +77,7 @@ market_cap = total_supply × price
where `price` is the sale contract's quote for one whole token and `total_supply` is read from the
AEX-9 contract. The same product is stored on every transaction row, there taken from the
-`PriceChange` event's `next_price` — the unit price the trade left behind.
+`PriceChange` event's `next_price`, the unit price the trade left behind.
Two details of that definition:
@@ -100,7 +100,7 @@ On a rising convex curve the rectangle is always bigger than the area:
| 100,000,000 | 171,838.20 | 71,838.18 | 71,478.99 | 2.40× |
A token showing a 1,000 AE market cap is backed by roughly 500 AE of reserve, and the gap widens as
-the curve steepens — and unlike most assets, the reserve is a number you can check on-chain.
+the curve steepens. Unlike most assets, the reserve is a number you can check on-chain.
**Market cap is a ranking signal, not a valuation.** The trending list defaults to sorting by it so
that larger communities surface first, and for that job it is fine. Do not read it as money that
@@ -113,7 +113,7 @@ candles at a time, with three series overlaid: price, volume and market cap.
| Control | Options |
| --- | --- |
-| Interval | 1m, 5m, 15m, 1h, 4h, D, W, M — default 5m |
+| Interval | 1m, 5m, 15m, 1h, 4h, D, W, M (default 5m) |
| Currency | AE, or your selected display currency |
The interval is passed to the API in **seconds** (300 for 5m, 86400 for D). The chart also subscribes
@@ -126,7 +126,7 @@ that looks like a trend. Widen the interval to D or W before drawing conclusions
### The `performance` object
`past_24h`, `past_7d` and `past_30d` are refreshed every 5 minutes. Each is built from **trades
-inside a rolling window ending now** — not from a calendar boundary and not from a synthetic price:
+inside a rolling window ending now**, not from a calendar boundary and not from a synthetic price:
| Key | What it is |
| --- | --- |
@@ -140,7 +140,7 @@ inside a rolling window ending now** — not from a calendar boundary and not fr
Three consequences:
- **The baseline is a trade, not a timestamp.** A "7-day change" on a token whose only two trades in the last week were four days ago spans four days, not seven. It is the change between the first and last trades *within* the window.
-- **A token that has not traded in the window has no object at all** — the fields are `null`, not zero.
+- **A token that has not traded in the window has no object at all**; the fields are `null`, not zero.
- **The prices are buy-side unit prices** taken from the transaction rows, so they carry the 0.5% affiliation fee on both ends. The percentage is unaffected; the absolute values are 0.5% high.
## Reading the Holders tab
@@ -148,7 +148,7 @@ Three consequences:
Holders shows the top addresses and their balances. What to look for:
- **Concentration.** If the top one or two addresses hold most of the supply, the price you see is set by whoever is smallest, and their exit would walk the curve down past everyone below them. Compare the top holder's balance against `total_supply`.
-- **The creator's share.** Pre-buys at creation happen at the very bottom of the curve — the first 437,000 tokens cost 1 AE. A creator holding a large share got them far cheaper than anyone buying now; that asymmetry is why the curve is steep at the start.
+- **The creator's share.** Pre-buys at creation happen at the very bottom of the curve: the first 437,000 tokens cost 1 AE. A creator holding a large share got them far cheaper than anyone buying now; that asymmetry is why the curve is steep at the start.
- **Holder count versus supply.** A high `holders_count` with a small supply is a community. A low holder count with a large supply is one person's position with a price attached.
## Reading the Transactions tab
@@ -163,25 +163,25 @@ Two refinements:
- **Look at the ratio of distinct accounts to transactions.** Twenty trades from three addresses is not twenty people.
- **Look at what follows a spike.** A large buy with no follow-through is a position, not a trend; the curve holds its new price until someone sells, so an elevated price proves nothing about demand.
-You can pull the same data outside the UI — filtered by token, by account, or both — with the
+You can pull the same data outside the UI, filtered by token, by account, or both, with the
transactions script or the API. See [Transaction History](/tokens/transactions).
## A checklist
Before buying, in the order the page makes them available:
-1. **DAO balance** — has real volume ever passed through this token?
-2. **Holders** — how concentrated is it, and how cheap was the top holder's entry?
-3. **Transactions** — distinct accounts, or one address round-tripping?
-4. **Feed** — is there a community here, or just a ticker?
-5. **Your own slippage** — how big is your trade relative to `total_supply`? Check it against the table on [Fees & Slippage](/tokens/fees-and-slippage).
-6. **Price and market cap** — last, and with the caveat above firmly in mind.
+1. **DAO balance**: has real volume ever passed through this token?
+2. **Holders**: how concentrated is it, and how cheap was the top holder's entry?
+3. **Transactions**: distinct accounts, or one address round-tripping?
+4. **Feed**: is there a community here, or just a ticker?
+5. **Your own slippage**: how big is your trade relative to `total_supply`? Check it against the table on [Fees & Slippage](/tokens/fees-and-slippage).
+6. **Price and market cap**: last, and with the caveat above firmly in mind.
## Related
-- [Bonding Curves](/tokens/bonding-curve) — why a token's price rises the way it does
-- [Transaction History](/tokens/transactions) — querying the same trade data outside the UI
-- [The Trending Score](/tokens/trending-score) — the other ranking signal on the trending list
-- [Portfolio & PnL](/tokens/portfolio) — the same numbers from your own side of the trade
-- [Tokens API](/api-reference/tokens) — the full token record behind every panel
-- [aeScan](https://aescan.io) — verify any address or transaction hash independently
+- [Bonding Curves](/tokens/bonding-curve): why a token's price rises the way it does
+- [Transaction History](/tokens/transactions): querying the same trade data outside the UI
+- [The Trending Score](/tokens/trending-score): the other ranking signal on the trending list
+- [Portfolio & PnL](/tokens/portfolio): the same numbers from your own side of the trade
+- [Tokens API](/api-reference/tokens): the full token record behind every panel
+- [aeScan](https://aescan.io): verify any address or transaction hash independently
diff --git a/pages/tokens/transactions.mdx b/pages/tokens/transactions.mdx
index 7879147..b4c7f81 100644
--- a/pages/tokens/transactions.mdx
+++ b/pages/tokens/transactions.mdx
@@ -24,7 +24,7 @@ node scripts/superhero-transactions.mjs activity ct_ ak_
| `mine` | your account | Confirming your own entry price and fills |
| `token` | one sale address | Pre-trade research: is the flow organic? |
| `account` | one account | Following a known trader or whale |
-| `all` | none | Market pulse — what is being traded right now |
+| `all` | none | Market pulse: what is being traded right now |
| `activity` | token **and** account | Checking whether a specific whale is accumulating a specific token |
Default `limit` is 20 and default `page` is 1 everywhere. `mine` needs `AE_PRIVATE_KEY` set, because
@@ -60,14 +60,14 @@ Each row carries these fields:
| --- | --- | --- |
| `tx_hash` | string | On-chain transaction hash, and the row's primary key |
| `sale_address` | string | The bonding-curve sale contract the trade hit |
-| `tx_type` | string | `buy`, `sell` or `create_community` — nothing else |
+| `tx_type` | string | `buy`, `sell` or `create_community`, nothing else |
| `block_height` | number | Key-block height of inclusion |
| `address` | string | The trader's address |
| `verified` | bool | Whether the indexer has re-validated the row against the chain |
| `volume` | numeric string | **Tokens** bought or sold, in whole tokens |
| `protocol_reward` | numeric string | ProtocolDAO tokens minted to the buyer, in whole tokens. `0` on a sell |
| `amount` | price object | **AE** paid or received |
-| `unit_price` | price object | `amount / volume` — the average price you actually got |
+| `unit_price` | price object | `amount / volume`, the average price you actually got |
| `previous_buy_price` | price object | Unit price before this trade |
| `buy_price` | price object | Unit price after this trade |
| `sell_price` | price object | Legacy field; do not rely on it |
@@ -95,15 +95,15 @@ events:
| `protocol_reward` | the ProtocolDAO token's `Mint` event amount | whole tokens |
| `total_supply` | the `Buy`/`Sell` event's supply argument, adjusted by `volume` | whole tokens |
-`amount` on a buy is the **fee-inclusive** total — `Buy`'s first argument is `total_price`, which
-already contains the 0.5% affiliation fee — which is why it is the right basis for a PnL cost
+`amount` on a buy is the **fee-inclusive** total. `Buy`'s first argument is `total_price`, which
+already contains the 0.5% affiliation fee, and that is why it is the right basis for a PnL cost
figure. The event's own `total_supply` is the supply *before* the trade, so the indexer adds
`volume` on a buy and subtracts it on a sell to store the supply *after*.
### `create_community` rows are buys
A token creation with an initial buy is stored as one row with `tx_type: 'create_community'`, priced
-exactly like a buy. Anything counting purchases must include it — the backend's own PnL queries
+exactly like a buy. Anything counting purchases must include it; the backend's own PnL queries
count `tx_type IN ('buy', 'create_community')`. A creation with no initial buy emits no
`PriceChange` event and is stored with zeroes.
@@ -152,7 +152,7 @@ Three things to count in the output:
2. **Buy-to-sell ratio.** A wall of buys with no sells can mean conviction, or it can mean nobody has been able to exit yet.
3. **Clustering in time.** Trades evenly spread over days look different from trades in one minute, and the second pattern often has one account behind it.
-Cross-check whatever you conclude against the holders tab — see
+Cross-check whatever you conclude against the holders tab. See
[Reading a Token Page](/tokens/token-page).
## Verifying a transaction on-chain
@@ -163,7 +163,7 @@ trade independently, open the hash in [aeScan](https://aescan.io). What to check
- The **contract called** is the sale address you expected.
- The **caller** is the account the indexer attributed it to.
- The **amount** attached matches the AE you think moved.
-- The **events** — `Buy` or `Sell` on the sale contract, `Mint` or `Burn` on the token contract — carry the executed figures, which is what you want if a quote and a fill disagreed.
+- The **events** (`Buy` or `Sell` on the sale contract, `Mint` or `Burn` on the token contract) carry the executed figures, which is what you want if a quote and a fill disagreed.
The same applies to a contract address: paste a `sale_address` into the explorer and you can read the
deployed code and call its read-only entrypoints directly.
@@ -181,7 +181,7 @@ parameters, is not scoped to an account, and returns at most **500 rows, newest
| `error_trace` | The stack trace |
| `created_at` | When it first failed |
-**These are transactions the indexer failed to ingest, not transactions that failed on-chain** — a
+**These are transactions the indexer failed to ingest, not transactions that failed on-chain**. A
reverted buy never reaches it. A retry job runs every 30 minutes and drops a row once it succeeds or
once `retries` passes 10, so the table is a rolling backlog rather than a history. If your trade is
on aeScan but missing from `/api/transactions`, this is where to look for it.
@@ -191,20 +191,20 @@ First steps when a trade did not go through:
| Symptom | Abort reason to look for | Likely cause |
| --- | --- | --- |
| Sell reverted, tokens still held | `MINIMAL_RETURN_NOT_MEET` | The curve moved below your floor |
-| Sell reverted, tokens still held | — | No allowance granted to the sale contract |
+| Sell reverted, tokens still held | None | No allowance granted to the sale contract |
| Buy reverted | `AE_AMOUNT_NOT_SUFFICIENT` | Attached AE below `price(count)` after the curve moved; tolerance too tight |
| Buy or sell reverted | `MINIMUM_TOKENS_REQUIRED` | `count` below `10^12`, almost always whole tokens passed where decimal units were expected |
-| Nothing in your transaction list, nothing on-chain | — | The transaction was never signed or never broadcast — check the wallet |
-| On-chain but not in the list | — | Indexer lag, or an ingest failure. Check `/api/debug/failed-transactions` |
+| Nothing in your transaction list, nothing on-chain | None | The transaction was never signed or never broadcast. Check the wallet |
+| On-chain but not in the list | None | Indexer lag, or an ingest failure. Check `/api/debug/failed-transactions` |
See [Buying & Selling](/tokens/buying-and-selling) for the allowance and slippage mechanics behind
the first two rows.
## Related
-- [Reading a Token Page](/tokens/token-page) — the holders and chart panels to weigh this data against
-- [Buying & Selling](/tokens/buying-and-selling) — what each of these transactions did on-chain
-- [Portfolio & PnL](/tokens/portfolio) — your positions, which these fills add up to
-- [The Trending Score](/tokens/trending-score) — the momentum signal that trade flow either confirms or contradicts
-- [Transactions API](/api-reference/transactions) — the endpoint reference
-- [aeScan](https://aescan.io) — the æternity explorer for verifying any hash or address
+- [Reading a Token Page](/tokens/token-page): the holders and chart panels to weigh this data against
+- [Buying & Selling](/tokens/buying-and-selling): what each of these transactions did on-chain
+- [Portfolio & PnL](/tokens/portfolio): your positions, which these fills add up to
+- [The Trending Score](/tokens/trending-score): the momentum signal that trade flow either confirms or contradicts
+- [Transactions API](/api-reference/transactions): the endpoint reference
+- [aeScan](https://aescan.io): the æternity explorer for verifying any hash or address
diff --git a/pages/tokens/trending-score.mdx b/pages/tokens/trending-score.mdx
index 1beaf29..ed66492 100644
--- a/pages/tokens/trending-score.mdx
+++ b/pages/tokens/trending-score.mdx
@@ -89,8 +89,8 @@ So `trending_score` on a token record can be up to two hours behind, and on a qu
considerably more. `trending_score_update_at` tells you exactly how stale your copy is.
`GET /api/tokens/{address}/score` **recomputes** the score on the spot and returns the full
-breakdown — every signal's `raw`, `cap` and `normalized` value, the two component scores, the decay
-multiplier, and the final result — and writes the fresh value back to the token record. Use it when
+breakdown (every signal's `raw`, `cap` and `normalized` value, the two component scores, the decay
+multiplier, and the final result) and writes the fresh value back to the token record. Use it when
you want the current score rather than the cached one, or to see which signal is carrying a token.
## Where it comes from
@@ -101,9 +101,9 @@ you want the current score rather than the cached one, or to see which signal is
| `GET /api/tokens/{address}/trending-eligibility` | Whether the token clears the trending gate, and by how much |
| `trending_score` on the token record | The cached value, in `GET /api/tokens` and `GET /api/tokens/{address}` |
| `trending_score_update_at` | Timestamp of the last recalculation |
-| `order_by=trending_score` | Sorts a token list by it, descending — and applies the eligibility gate |
+| `order_by=trending_score` | Sorts a token list by it, descending, and applies the eligibility gate |
-The score is stored as `decimal(10,6)` — six decimal places of a number between 0 and 1. A token
+The score is stored as `decimal(10,6)`: six decimal places of a number between 0 and 1. A token
that has never been scored sits at `0`.
## The eligibility gate
@@ -128,7 +128,7 @@ a couple of hours to appear.
If no token at all clears the gate, the controller drops the filter and returns the unfiltered list,
so an empty eligible set produces an ungated response rather than an empty one.
-`GET /api/tokens/{address}/trending-eligibility` returns the breakdown for a single token —
+`GET /api/tokens/{address}/trending-eligibility` returns the breakdown for a single token:
`holders_count`, `post_count`, `trade_count`, the three thresholds, and a `passes` object saying
which of them the token clears. Call it when a token you expect to see is missing from the trending
list.
@@ -136,7 +136,7 @@ list.
If you are building on the list endpoint:
- Use `order_by=trending_score` when you want the trending set.
-- Do **not** use it when you want to find a specific token by name — a token that plainly exists can be absent from the gated result.
+- Do **not** use it when you want to find a specific token by name. A token that plainly exists can be absent from the gated result.
## Ranking
@@ -162,14 +162,14 @@ entry:
| Aggressive | 40% | 20% of balance | 7 | every 2h |
The score is between 0 and 1; pick entry thresholds in that range. Relative or rank-based entry
-rules — "in the top ten by trending score", "score has risen 50% since the last cycle" — hold
+rules, such as "in the top ten by trending score" or "score has risen 50% since the last cycle", hold
whatever the scale is. For an absolute bar, pull the current trending list
(`GET /api/tokens?order_by=trending_score&limit=100`) and look at the distribution first.
Never act on the score alone. The pre-buy checklist:
1. Read the score: `node scripts/superhero-trending.mjs token-info ct_...`
-2. Check the trade flow: `node scripts/superhero-transactions.mjs token ct_... 30` — many small buyers is organic, one large buyer is a pump with exit risk.
+2. Check the trade flow: `node scripts/superhero-transactions.mjs token ct_... 30`. Many small buyers suggest organic demand; one large buyer suggests a pump with exit risk.
3. Check price performance: `node scripts/superhero-trending.mjs performance ct_...`
## Reading it from the CLI
@@ -185,14 +185,14 @@ node scripts/superhero-trending.mjs token-info ct_
node scripts/superhero-trending.mjs performance ct_
```
-`tokens` accepts an alternative ordering as its second argument — `market_cap`, `holders_count`,
-`price`, `created_at`, `name`, `treasury` or `rank` — which is a useful cross-check. A token that is
-top-ten by trending score and nowhere by holder count is telling you something.
+`tokens` accepts an alternative ordering as its second argument (`market_cap`, `holders_count`,
+`price`, `created_at`, `name`, `treasury` or `rank`), which is a useful cross-check. A token that is
+top-ten by trending score and nowhere by holder count deserves a closer look.
## Related
-- [Reading a Token Page](/tokens/token-page) — the other signals to weigh the score against
-- [Transaction History](/tokens/transactions) — the trade flow that confirms or contradicts a rising score
-- [Risks](/tokens/risks) — why momentum signals are double-edged on a bonding curve
-- [Trending API](/api-reference/trending) — the endpoints behind the trending list, with the full signal-by-signal derivation
-- [Agent trading strategies](/agents/strategies) — the full strategy templates
+- [Reading a Token Page](/tokens/token-page): the other signals to weigh the score against
+- [Transaction History](/tokens/transactions): the trade flow that confirms or contradicts a rising score
+- [Risks](/tokens/risks): why momentum signals are double-edged on a bonding curve
+- [Trending API](/api-reference/trending): the endpoints behind the trending list, with the full signal-by-signal derivation
+- [Agent trading strategies](/agents/strategies): the full strategy templates
diff --git a/pages/wallets/aex9-tokens.mdx b/pages/wallets/aex9-tokens.mdx
index 8197dc1..072e3f4 100644
--- a/pages/wallets/aex9-tokens.mdx
+++ b/pages/wallets/aex9-tokens.mdx
@@ -5,16 +5,16 @@ description: "How community token balances reach your wallet, sale address versu
# Managing AEX-9 Tokens
-Every Superhero community token is an AEX-9 fungible token — the æternity equivalent of ERC-20.
+Every Superhero community token is an AEX-9 fungible token, the æternity equivalent of ERC-20.
## The AEX-9 surface
| Entrypoint | Arguments | What it does |
| --- | --- | --- |
-| `meta_info` | — | Name, symbol, decimals |
-| `total_supply` | — | Total minted supply |
+| `meta_info` | none | Name, symbol, decimals |
+| `total_supply` | none | Total minted supply |
| `balance` | `address` | One account's balance, as an option |
-| `balances` | — | The whole balance map |
+| `balances` | none | The whole balance map |
| `transfer` | `address, int` | Move your own tokens |
| `allowance` | `from_account, for_account` | Read a granted allowance |
| `allowance_for_caller` | `address` | Read the allowance granted to the caller |
@@ -26,7 +26,7 @@ Every Superhero community token is an AEX-9 fungible token — the æternity equ
Amounts everywhere are integers in the token's **base units**. Divide by 10 to the power of
`decimals` from `meta_info` to get a human figure. Superhero's signing prompt does *not* do that
-scaling — decimals are a per-token on-chain fact the decoder does not look up. Count the digits.
+scaling, because decimals are a per-token on-chain fact the decoder does not look up. Count the digits.
## Sale address vs token address
@@ -37,8 +37,8 @@ A community token has **two** contract addresses and they are not interchangeabl
| **Sale address** (`sale_address`) | The bonding-curve sale contract that mints and burns tokens against AE | Buying and selling on the curve; the DAO for that community; the token's page URL |
| **Token address** (`address`) | The AEX-9 contract that holds balances and allowances | Balances, transfers, allowances, adding the token to a DEX pool |
-The backend's token object carries both fields — plus `bonding_curve_address` and
-`factory_address` — so when you work from the API you never have to guess which one you have. When
+The backend's token object carries both fields (plus `bonding_curve_address` and
+`factory_address`), so when you work from the API you never have to guess which one you have. When
something asks for "the token contract", it means `address`; when a DAO or a trade asks for a sale,
it means `sale_address`.
@@ -66,7 +66,7 @@ automatically.
The screen at **`/defi/pool/add-tokens`** (the legacy path `/pool/add-tokens` still works) scans
your account for AEX-9 balances using the two mechanisms above, filters by name or symbol, and
-tells you whether a DEX pool already exists for each token — the question to answer before you
+tells you whether a DEX pool already exists for each token. That is the question to answer before you
add liquidity.
You need a **connected wallet** for it to have an account to scan. The address it works with is
@@ -77,12 +77,12 @@ arbitrary contract address.
### Superhero Wallet takes a pasted contract address
-To see a token superhero.com will not show you, open Superhero Wallet — extension, mobile app or
-`wallet.superhero.com` — and paste the token's `ct_...` **token address** (not the sale address)
+To see a token superhero.com will not show you, open Superhero Wallet (extension, mobile app or
+`wallet.superhero.com`) and paste the token's `ct_...` **token address** (not the sale address)
into the asset selector's search box. When the term is a valid contract address and the selected
protocol is æternity, the selector switches to exact-contract mode, fetches the token's metadata
-from the middleware (`GET /v3/aex9/`) and adds it to the available list — no pool, no
-indexed balance and no DEX listing required. Anything else falls back to a name-prefix search.
+from the middleware (`GET /v3/aex9/`) and adds it to the available list. It does not need a pool, an
+indexed balance or a DEX listing. Anything else falls back to a name-prefix search.
## Allowances
@@ -91,21 +91,21 @@ tokens. Superhero relies on this in two places.
### DEX swaps
-Swapping a non-AE token requires an allowance for the DEX router first. AE itself never needs one
-— it is the native coin, not a contract balance.
+Swapping a non-AE token requires an allowance for the DEX router first. AE itself never needs one,
+because it is the native coin, not a contract balance.
The app manages this for you: it reads the current allowance, calls `create_allowance` if there is
none, and `change_allowance` with the *difference* if there is one but it is too small. It never
grants an unlimited approval.
-The grantee is the router's **contract address re-encoded as an account address** — the same bytes
+The grantee is the router's **contract address re-encoded as an account address**: the same bytes
with the `ct_` prefix swapped for `ak_`. An allowance that looks like it was granted to an account
is in fact granted to the router contract.
### DAO vote locking
Governance votes lock the tokens you vote with until the vote closes, and that locking is
-implemented with the AEX-9 allowance mechanism — which is what prevents the same tokens being
+implemented with the AEX-9 allowance mechanism, which is what prevents the same tokens being
double-spent across two concurrent votes. Revoking your vote releases the lock.
This is why a vote can ask you to sign twice: once to grant or adjust the allowance, once to cast.
@@ -119,12 +119,12 @@ provide a screen to review or revoke them. Revoke per token with a direct contra
reset_allowance(for_account) on the AEX-9 token contract
```
-where `for_account` is the grantee in `ak_` form — for the DEX, the router's contract address with
+where `for_account` is the grantee in `ak_` form. For the DEX, that is the router's contract address with
`ct_` swapped for `ak_`. Use the agent skill's SDK setup, `aepp-cli`, or any tool that can call a
contract entrypoint.
Every allowance Superhero grants is sized to the specific trade, so a stale allowance is capped at
-whatever was left over from the operation that created it — usually zero, because a swap spends
+whatever was left over from the operation that created it. That is usually zero, because a swap spends
exactly what it was granted. Check, and revoke anything left standing on a token you hold in size.
### Hygiene
@@ -135,10 +135,10 @@ exactly what it was granted. Check, and revoke anything left standing on a token
## Related
-- [Wallet Security](/wallets/security) — approval hygiene, and why an allowance is a standing permission.
-- [The Built-In Wallet](/wallets/built-in-wallet) — how allowance calls are decoded and named before you approve them.
-- [AEX Standards](/aeternity/aex-standards) — what AEX-9 specifies at the protocol level.
-- [AEX-9 Contracts](/contracts/aex9) — the contract-side reference for these entrypoints.
-- [Tokens API](/api-reference/tokens) — the token object carrying both `address` and `sale_address`.
-- [Web Wallet](/wallets/web-wallet) — where pasting a contract address works, with no install.
-- [Token Standards on the æternity docs hub](https://docs.aeternity.com/aeternity-developer-tools/token-standards) — the upstream specification.
+- [Wallet Security](/wallets/security): approval hygiene, and why an allowance is a standing permission.
+- [The Built-In Wallet](/wallets/built-in-wallet): how allowance calls are decoded and named before you approve them.
+- [AEX Standards](/aeternity/aex-standards): what AEX-9 specifies at the protocol level.
+- [AEX-9 Contracts](/contracts/aex9): the contract-side reference for these entrypoints.
+- [Tokens API](/api-reference/tokens): the token object carrying both `address` and `sale_address`.
+- [Web Wallet](/wallets/web-wallet): where pasting a contract address works, with no install.
+- [Token Standards on the æternity docs hub](https://docs.aeternity.com/aeternity-developer-tools/token-standards): the upstream specification.
diff --git a/pages/wallets/backup-and-recovery.mdx b/pages/wallets/backup-and-recovery.mdx
index 05afe1d..329e3db 100644
--- a/pages/wallets/backup-and-recovery.mdx
+++ b/pages/wallets/backup-and-recovery.mdx
@@ -13,7 +13,7 @@ you personally kept.
| You use | Back up | Keep it |
| --- | --- | --- |
-| Superhero Wallet (extension, mobile or web) | The seed phrase — it is **not** shown at setup; go and get it | Offline, on paper or metal, in two places |
+| Superhero Wallet (extension, mobile or web) | The seed phrase. It is **not** shown at setup, so go and get it | Offline, on paper or metal, in two places |
| A Ledger or AirGap account inside Superhero Wallet | The device's own recovery words | Wherever that device's maker tells you |
| An account imported into Superhero Wallet by private key | That private key | Offline; the seed phrase will not restore it |
| Built-in wallet created **from a phrase** | The 12 words, plus the recovery code | Offline; the code is not a substitute for the words |
@@ -23,11 +23,11 @@ you personally kept.
## Back up a seed phrase
1. **Write it down by hand.** Screenshots and text files end up in cloud sync and disk indexes.
-2. **Copy it exactly** — all 12 or 24 words, in order, lowercase. BIP39 phrases carry a checksum,
+2. **Copy it exactly**: all 12 or 24 words, in order, lowercase. BIP39 phrases carry a checksum,
so a wrong or transposed word is usually caught on import.
3. **Verify it.** Superhero's built-in wallet makes you re-enter the words before a vault is
- created. In the standalone Superhero Wallet the step is **optional and comes later** — see
- below.
+ created. In the standalone Superhero Wallet the step is **optional and comes later** (see
+ below).
4. **Store two copies in different physical places.**
5. **Never type it into anything but the wallet.** No support agent, no "validator", no airdrop
checker will ever need it. See [Security Best Practices](/wallets/security).
@@ -39,8 +39,8 @@ addresses in the Superhero Wallet extension, the native app, and Superhero's bui
## Superhero Wallet: reveal, verify, export
**Creating a wallet never shows you the phrase.** Onboarding generates a mnemonic, creates your
-first account and goes straight to the dashboard. A notification — "Welcome to Superhero Wallet!
-Please backup your seed phrase!" with a **Back up now** button — reappears until the phrase is
+first account and goes straight to the dashboard. A notification ("Welcome to Superhero Wallet!
+Please backup your seed phrase!" with a **Back up now** button) reappears until the phrase is
marked backed up.
**Revealing it takes re-authentication.** Settings → Seed phrase → **Show seed phrase**:
@@ -62,7 +62,7 @@ with a copy button, behind the same re-authentication as the phrase reveal.
It exports **one account**, not the wallet. Use it to move a single account into another wallet
that supports private-key import. An account you *imported* by private key cannot be restored
-with your seed phrase — only with that private key — so such accounts need their own backup.
+with your seed phrase, only with that private key, so such accounts need their own backup.
The built-in wallet offers no export of any kind.
@@ -70,7 +70,7 @@ The built-in wallet offers no export of any kind.
Settings → Secure Login has a change-password form: it verifies the current password, then
re-encrypts the stored seed under the new one. The same screen turns password protection off and
-sets the auto-lock interval — immediately, 1, 5, 15 or 30 minutes of inactivity.
+sets the auto-lock interval: immediately, 1, 5, 15 or 30 minutes of inactivity.
## Back up the built-in wallet
@@ -83,16 +83,16 @@ The built-in wallet has three unlock factors and they are **not interchangeable
| Syncing passkey (on a passkey-created wallet) | Yes | **Yes** |
| Device-bound passkey (on a passkey-created wallet) | Yes | No |
| Passkey on a **phrase-created** wallet | Yes | **No** |
-| The written recovery phrase | — | **Yes, anywhere** |
+| The written recovery phrase | n/a | **Yes, anywhere** |
The passphrase and the recovery code each unwrap a key inside this device's encrypted vault
record. No record, nothing to unwrap. Only two things reconstruct a seed from scratch: the written
-phrase, and — for a wallet created by the passkey path — the passkey itself, because that seed is
+phrase and, for a wallet created by the passkey path, the passkey itself, because that seed is
*derived* from the passkey's PRF output at a fixed public salt.
-- **Phrase-created built-in wallet** — the 12 words are your only portable backup. The recovery
+- **Phrase-created built-in wallet**: the 12 words are your only portable backup. The recovery
code is a same-device fallback for a forgotten passphrase or a broken passkey. Keep both.
-- **Passkey-created built-in wallet** — the passkey *is* the backup, but only if it syncs. Confirm
+- **Passkey-created built-in wallet**: the passkey *is* the backup, but only if it syncs. Confirm
it landed in iCloud Keychain or Google Password Manager. There is no phrase reveal or export
screen, so a device-bound credential like Windows Hello leaves **no other copy of the seed**.
Still enroll the recovery code: it is the only factor that survives a passkey rekey.
@@ -101,7 +101,7 @@ phrase, and — for a wallet created by the passkey path — the passkey itself,
### Superhero Wallet (extension, mobile, web)
-Install it, choose **Restore existing wallet**, and enter your seed phrase — 12 or more words,
+Install it, choose **Restore existing wallet**, and enter your seed phrase: 12 or more words,
separated by spaces, in order. You can also scan the phrase from a QR code. The wallet validates
the phrase, restores your accounts and re-derives their keys.
@@ -122,16 +122,16 @@ Choose **"Restore a wallet you created with a passkey."** This runs a discoverab
assertion, derives the wallet the credential implies, and **shows you the derived address before
saving anything.** The confirm screen also checks that address for on-chain activity:
-- **"This account has on-chain activity"** — a genuine restore. Confirm.
-- **"No on-chain activity"** — stop. You most likely selected a passkey belonging to a
+- **"This account has on-chain activity"**: a genuine restore. Confirm.
+- **"No on-chain activity"**: stop. You most likely selected a passkey belonging to a
*phrase-created* wallet, which derives a valid but empty different wallet. Confirming would
persist the wrong one and then block your correct import with "a vault already exists".
-- **"Couldn't check on-chain activity"** — the node was unreachable. Advisory only; judge by the
+- **"Couldn't check on-chain activity"**: the node was unreachable. Advisory only; judge by the
address itself.
### An agent key
-There is no derivation to redo — the secret key is the account:
+There is no derivation to redo. The secret key is the account:
```bash
export AE_PRIVATE_KEY=
@@ -160,7 +160,7 @@ addresses from index 0 upward.
- Write the phrase down and read it back **before** funding the account.
- Store two copies in two places.
-- Store the recovery code separately from the phrase — different failure, different hiding place.
+- Store the recovery code separately from the phrase. They fail in different ways, so hide them in different places.
- If you rely on a passkey, verify it is present on a *second* device before you trust it as a
backup.
- Do a restore drill once: import into a second wallet and confirm the first address matches.
@@ -181,8 +181,8 @@ change-password form.
## Related
-- [The Built-In Wallet](/wallets/built-in-wallet) — why the factors behave the way the table above says.
-- [Security Best Practices](/wallets/security) — how to keep the backup you just made from being stolen.
-- [Troubleshooting](/wallets/troubleshooting) — the symptoms of a vault that is gone.
-- [Create an Account](/getting-started/create-account) — the flow that produced whatever you are backing up.
-- [Superhero Wallet](https://wallet.superhero.com/) — the hosted wallet you can import a phrase into with no install.
+- [The Built-In Wallet](/wallets/built-in-wallet): why the factors behave the way the table above says.
+- [Security Best Practices](/wallets/security): how to keep the backup you just made from being stolen.
+- [Troubleshooting](/wallets/troubleshooting): the symptoms of a vault that is gone.
+- [Create an Account](/getting-started/create-account): the flow that produced whatever you are backing up.
+- [Superhero Wallet](https://wallet.superhero.com/): the hosted wallet you can import a phrase into with no install.
diff --git a/pages/wallets/built-in-wallet.mdx b/pages/wallets/built-in-wallet.mdx
index 552e6db..716828c 100644
--- a/pages/wallets/built-in-wallet.mdx
+++ b/pages/wallets/built-in-wallet.mdx
@@ -17,7 +17,7 @@ standalone extension and mobile app, though both hold the same kind of `ak_...`
| Surface | Create a wallet | Import an existing seed | In-page signing |
| --- | --- | --- | --- |
| Installed PWA (Add to Home Screen) | Yes | Yes | Yes |
-| Plain browser tab | Yes | No — use Connect instead | Not installed as the signer |
+| Plain browser tab | Yes | No, use Connect instead | Not installed as the signer |
Creating a wallet (passkey or a fresh recovery phrase) is offered on every surface. Pasting a seed
phrase or private key is offered **only in the installed app**: in a browser tab, "I already have a
@@ -43,7 +43,7 @@ One encrypted vault record per device. Every secret inside it is ciphertext; not
Superhero server.
Factors form an **OR-set**: any single enrolled factor unwraps the same DEK and opens the whole
-vault. That is what makes "passkey or passphrase" work, and it is also the security ceiling — **the
+vault. That is what makes "passkey or passphrase" work, and it is also the security ceiling: **the
vault is only as strong as its weakest enrolled factor.** A weak passphrase is not made safe by
also having a passkey. The last factor can never be removed, because a vault with no factors is
permanently unopenable.
@@ -58,7 +58,7 @@ permanently unopenable.
### Passphrase
-The passphrase is scored locally with zxcvbn — no network call. The rules:
+The passphrase is scored locally with zxcvbn, with no network call. The rules:
- Minimum zxcvbn score **3** of 4 ("safely unguessable").
- A numeric-only string is rejected as a PIN.
@@ -67,7 +67,7 @@ The passphrase is scored locally with zxcvbn — no network call. The rules:
fallback to a length rule.
The passphrase cannot be changed after creation. To change it, recreate the wallet from the
-recovery phrase — see [Backup & Recovery](/wallets/backup-and-recovery).
+recovery phrase. See [Backup & Recovery](/wallets/backup-and-recovery).
### Recovery code
@@ -89,7 +89,7 @@ is why you may see two prompts.
The Relying Party ID is pinned at build time from `VITE_WEBAUTHN_RP_ID`, defaults to
`superhero.com`, and is never derived from the page's own host. A bundle served from another host
cannot use your Superhero passkey. When that value does not match the origin, the passkey option
-fails with no OS prompt at all — see [Troubleshooting](/wallets/troubleshooting).
+fails with no OS prompt at all. See [Troubleshooting](/wallets/troubleshooting).
## Two ways a wallet is created
@@ -106,7 +106,7 @@ vault is created, so a typo cannot seal a wrong seed.
### From a passkey
One ceremony does everything. The passkey is enrolled, and the BIP39 mnemonic is **derived from its
-PRF output** at a fixed, public salt — so there is no phrase screen. The seed derivation and the
+PRF output** at a fixed, public salt, so there is no phrase screen. The seed derivation and the
key that wraps the DEK use separate derivations, so neither can be computed from the other.
The salt is fixed rather than random so that the seed can be re-derived on any device the passkey
@@ -136,7 +136,7 @@ app at the same index. There is nothing proprietary to be stranded in.
Every signature runs the same sequence, with no fast path:
-1. Run the unlock — a WebAuthn ceremony or the passphrase prompt. **Every signature.**
+1. Run the unlock (a WebAuthn ceremony or the passphrase prompt). This happens on **every signature.**
2. Unwrap the DEK, unseal the mnemonic, derive the account key. All transient.
3. Check that the derived key produces the advertised address. If not, **refuse to sign**.
4. Sign, then drop every reference.
@@ -149,7 +149,7 @@ a time.
**The chat identity is the one cached key.** The Nostr chat key is derived through the same unlock
path and then cached in memory for a **rolling 30-minute idle window**; chat activity resets the
timer, and the key is dropped when it expires or on an explicit lock. The unlock prompt says so.
-Nothing else derived from the seed is cached — the unlock returns Nostr keys only, never the
+Nothing else derived from the seed is cached. The unlock returns Nostr keys only, never the
mnemonic, the DEK or the æternity spending key.
### What the confirmation shows
@@ -162,7 +162,7 @@ The transaction is decoded into named rows, with two deliberate behaviours:
cannot be decoded, the prompt **refuses to offer approval at all**. There is no "show raw bytes
and approve anyway".
-Recognised calls are named in plain language — publish a post, buy tokens, sell tokens, create a
+Recognised calls are named in plain language: publish a post, buy tokens, sell tokens, create a
community, transfer, the four AEX-9 allowance operations, add and remove liquidity, wrap and
unwrap AE, add a poll, cast or revoke a vote, delegate and revoke delegation, and the
invitation-code operations. A call whose argument shape does not match is shown as an unrecognised
@@ -170,9 +170,9 @@ contract call with every argument rendered raw.
Two rows to read every time:
-- **"Gas, at most"** — gas is charged on top of the network fee, so a prompt showing only the fee
+- **"Gas, at most"**: gas is charged on top of the network fee, so a prompt showing only the fee
understates what a contract call can cost.
-- **"Name price"** — on a name claim this is the largest amount by far.
+- **"Name price"**: on a name claim this is the largest amount by far.
Token amounts are shown in **raw base units, not scaled by decimals**: decimals are a per-token
on-chain fact the decoder does not look up, and inventing a scale would misstate what you are
@@ -183,7 +183,7 @@ approving.
| Thing | Where | Encrypted? |
| --- | --- | --- |
| The vault record (sealed mnemonic, wrapped DEKs) | IndexedDB, database `superhero-wallet`, store `vault`, key `vault` | Yes |
-| Wallet manifest (addresses, derivation indexes, labels, active address) | `localStorage`, key `wallet.inlineManifest` | No — public data only |
+| Wallet manifest (addresses, derivation indexes, labels, active address) | `localStorage`, key `wallet.inlineManifest` | No, public data only |
| Mnemonic, DEK, derived keys | Memory, inside one unlock-to-sign scope | n/a |
| Anything at all | A Superhero server | Nothing is sent |
@@ -192,7 +192,7 @@ approving.
**Clearing site data (or "Cookies and site data") for superhero.com deletes the IndexedDB vault.**
Once the vault record is gone:
-- Your **passphrase** opens nothing — there is no wrapped DEK left to unwrap.
+- Your **passphrase** opens nothing, because there is no wrapped DEK left to unwrap.
- Your **recovery code** opens nothing, for the same reason.
- Your **passkey** still exists in your authenticator, but for a *phrase-created* wallet it only
wrapped a DEK that is now gone, so it opens nothing either.
@@ -205,7 +205,7 @@ What survives a wiped vault:
| You have | Survives? | Why |
| --- | --- | --- |
-| The written 12/24-word phrase | **Yes** | Standard BIP39 on the standard path — re-import anywhere. |
+| The written 12/24-word phrase | **Yes** | Standard BIP39 on the standard path, so it re-imports anywhere. |
| A **syncing** passkey on a passkey-created wallet | **Yes** | The seed re-derives from the PRF output at the fixed public salt. |
| A device-bound passkey (e.g. Windows Hello) on a passkey-created wallet | Only on that device | It cannot leave the device, and there is no export screen. |
| A passkey on a **phrase-created** wallet | No | It wraps a DEK; it does not derive the seed. |
@@ -220,8 +220,8 @@ and takes two taps because for a passkey wallet it is unrecoverable.
## Related
-- [Backup & Recovery](/wallets/backup-and-recovery) — what to write down and how to verify it.
-- [Troubleshooting](/wallets/troubleshooting) — the passkey RP-ID failure, plus storage and signing faults.
-- [Connecting a Wallet](/wallets/connecting) — how an external wallet is discovered instead.
-- [Security Best Practices](/wallets/security) — what the OR-set property means for your passphrase.
-- [Accounts and Keys](/aeternity/accounts-and-keys) — what an `ak_...` address is at the protocol level.
+- [Backup & Recovery](/wallets/backup-and-recovery): what to write down and how to verify it.
+- [Troubleshooting](/wallets/troubleshooting): the passkey RP-ID failure, plus storage and signing faults.
+- [Connecting a Wallet](/wallets/connecting): how an external wallet is discovered instead.
+- [Security Best Practices](/wallets/security): what the OR-set property means for your passphrase.
+- [Accounts and Keys](/aeternity/accounts-and-keys): what an `ak_...` address is at the protocol level.
diff --git a/pages/wallets/choosing-a-wallet.mdx b/pages/wallets/choosing-a-wallet.mdx
index c218707..6e54b51 100644
--- a/pages/wallets/choosing-a-wallet.mdx
+++ b/pages/wallets/choosing-a-wallet.mdx
@@ -7,18 +7,26 @@ description: "Which wallet to use on which surface, compared on custody, recover
There are five ways to hold an æternity account for Superhero, and three of them are the same
program on different surfaces. They differ less in what they can do than in where the key sits and
-what gets you back in. Pick by surface and by recovery model — all of them hold the same kind of
+what gets you back in. Pick by surface and by recovery model. All of them hold the same kind of
`ak_...` account on the same derivation path.
+## Recommended: passkey
+
+For most people, start with a **passkey**. On superhero.com, tap "Continue with passkey" and
+approve with Face ID, a fingerprint or your device PIN. That creates your account: no seed phrase
+to write down, nothing to install. Make sure your passkey syncs (iCloud Keychain, Google Password
+Manager or a password manager), because on a passkey-created wallet the passkey is your backup.
+See [The Built-In Wallet](/wallets/built-in-wallet).
+
## Comparison
-| | Browser extension | Mobile app | Web wallet | Built-in wallet | Raw key (agent) |
+| | Browser extension | Mobile app | Web wallet | Built-in wallet (passkey, recommended) | Raw key (agent) |
| --- | --- | --- | --- | --- | --- |
| Product | Superhero Wallet | Superhero Wallet | Superhero Wallet, at `wallet.superhero.com` | Superhero app itself | Your own process |
| Custody | Yours, in the extension | Yours, on the device | Yours, in a hosted page | Yours, in this browser's storage | Yours, in an env var |
| Platforms | Chrome, Brave, Opera, Firefox | iOS, Android | Any browser | Any browser; in-page signing in the installed PWA | Anywhere Node runs |
| Install needed | Yes | Yes | No | No | No |
-| Unlocks with | Wallet password | Device biometrics, if enabled | Wallet password | Passkey, passphrase or recovery code | Nothing — the key is live |
+| Unlocks with | Wallet password | Device biometrics, if enabled | Wallet password | Passkey, passphrase or recovery code | Nothing; the key is live |
| Change the unlock secret later | Yes | Biometrics on or off | Yes | **No** | n/a |
| Portable backup | Seed phrase | Seed phrase | Seed phrase | Seed phrase, or a syncing passkey | The secret key |
| Export one account's private key | Yes | Yes | Yes | **No** | It *is* the key |
@@ -31,14 +39,6 @@ what gets you back in. Pick by surface and by recovery model — all of them hol
The first three columns are one program built from a single source tree, so the differences
between them are platform capabilities, not different products.
-## Three things called "Superhero wallet"
-
-| Name | What it is |
-| --- | --- |
-| **Superhero Wallet** (standalone) | The multi-chain wallet: browser extension, iOS and Android apps, and the hosted web build |
-| **The web wallet** at `wallet.superhero.com` | The web build of that same wallet, served as a page |
-| **The built-in wallet** | A vault inside superhero.com itself, æternity-only, unlocked by a passkey or passphrase |
-
## Hardware and cold signing
Both hardware options in Superhero Wallet are **æternity-only**.
@@ -56,7 +56,7 @@ That leaves the Chromium extension and the hosted web build.
wallet alike. You scan your AirGap Vault's QR code (or paste the `airgap-wallet://?ur=…` string) to
import accounts, then scan a second pair of QR codes to get a transaction signed by the offline
device and broadcast it from Superhero Wallet. Set AirGap to **QR code V3** or the pairing will not
-decode. AirGap accounts cannot sign *messages* — only transactions.
+decode. AirGap accounts cannot sign *messages*, only transactions.
## What else Superhero Wallet offers
@@ -65,15 +65,15 @@ three surfaces unless noted:
| Feature | Where |
| --- | --- |
-| **`.chain` name manager** — register, bid in auctions, set pointers, transfer, set default, auto-extend | Account details → Names |
+| **`.chain` name manager**: register, bid in auctions, set pointers, transfer, set default, auto-extend | Account details → Names |
| **AEX-9 tokens**, including adding one by pasting its `ct_` contract address | Account details → Assets |
-| **Multisig vaults** — generalised-account vaults with authorized signers, a consensus threshold and a proposal queue | Dashboard → Show multisig vaults |
-| **Permissions manager** — per-host standing permissions and a daily spend limit | More → Settings → Permissions |
+| **Multisig vaults**: generalised-account vaults with authorized signers, a consensus threshold and a proposal queue | Dashboard → Show multisig vaults |
+| **Permissions manager**: per-host standing permissions and a daily spend limit | More → Settings → Permissions |
| **Address book** with import | More → Address book |
-| **Gift cards** — funded invite links, toppable and reclaimable | More → Gift cards |
+| **Gift cards**: funded invite links, toppable and reclaimable | More → Gift cards |
| **Claim tips** for a URL you can prove you own | More → Claim tips |
-| **Network manager** — Mainnet, Testnet and custom networks | More → Settings → Network |
-| **Secure login** — password change, auto-lock interval, biometrics on mobile | More → Settings → Secure login |
+| **Network manager**: Mainnet, Testnet and custom networks | More → Settings → Network |
+| **Secure login**: password change, auto-lock interval, biometrics on mobile | More → Settings → Secure login |
| **WalletConnect** sessions | EVM chains only |
| **In-app dæpp browser** | Mobile apps only |
@@ -84,10 +84,10 @@ over AEX-2 instead; see [Connecting a Wallet](/wallets/connecting).
### First time, on a phone
-Use the **Superhero app's built-in wallet**: tap "Continue with passkey", approve with Face ID or a
-fingerprint, and you have an account. Make sure your passkey syncs — on a passkey-created wallet
-the passkey *is* your backup, and there is no phrase export screen. Or install the **Superhero
-Wallet mobile app**.
+Use a **passkey** (recommended): tap "Continue with passkey", approve with Face ID or a
+fingerprint, and you have an account. Make sure your passkey syncs. On a passkey-created wallet
+the passkey *is* your backup, and there is no phrase export screen. If you prefer a seed phrase,
+install the **Superhero Wallet mobile app**.
### First time, on a desktop
@@ -102,7 +102,7 @@ two places. You want a portable backup and storage a browser cannot evict.
### Nothing to install
-Use the **built-in wallet** created from a passkey, or the **web wallet** at
+Use a **passkey** (recommended), or the **web wallet** at
`wallet.superhero.com`. Read [The Built-In Wallet](/wallets/built-in-wallet) and
[Web Wallet](/wallets/web-wallet) first.
@@ -133,11 +133,11 @@ superhero.com connects to it. In a browser tab the built-in wallet does not offe
| Wallet | What gets you back in on a new device |
| --- | --- |
-| Extension, mobile, web wallet | The seed phrase — or, for one account at a time, that account's exported private key. |
+| Extension, mobile, web wallet | The seed phrase or, for one account at a time, that account's exported private key. |
| Built-in wallet from a phrase | The seed phrase. Its passphrase and recovery code are **same-device only**. |
-| Built-in wallet from a passkey | The passkey — **only if it syncs**. The recovery code is same-device only. |
+| Built-in wallet from a passkey | The passkey, **only if it syncs**. The recovery code is same-device only. |
| Raw agent key | The secret key string. |
-| A Ledger or AirGap account held in Superhero Wallet | The device's own recovery words. The Superhero Wallet seed phrase does **not** restore it — the wallet only stores its public address. |
+| A Ledger or AirGap account held in Superhero Wallet | The device's own recovery words. The Superhero Wallet seed phrase does **not** restore it, because the wallet only stores its public address. |
The same applies to an account you imported by pasting a private key: it cannot be restored with
the seed phrase, only with that private key.
@@ -151,16 +151,16 @@ either. [Backup & Recovery](/wallets/backup-and-recovery) has the full matrix.
- The extension for real value, the built-in wallet for a small hot balance you use for posting and
tipping.
-- A phone and a desktop on the **same** seed phrase — the same words give you the same addresses
+- A phone and a desktop on the **same** seed phrase. The same words give you the same addresses
everywhere.
- A separate agent account entirely, which is the recommended pattern.
## Related
-- [Browser Extension](/wallets/superhero-wallet-extension) — install and first run on desktop.
-- [Mobile App](/wallets/superhero-wallet-mobile) — the native apps and the PWA install path.
-- [The Built-In Wallet](/wallets/built-in-wallet) — how the in-app vault works.
-- [Backup & Recovery](/wallets/backup-and-recovery) — the recovery table above, expanded.
-- [Connecting a Wallet](/wallets/connecting) — what happens after you have chosen one.
-- [Web Wallet](/wallets/web-wallet) — what `wallet.superhero.com` can and cannot do.
-- [Superhero Wallet on the æternity docs hub](https://docs.aeternity.com/aeternity-user-tools-and-services/superhero-wallet) — the standalone wallet's own documentation.
+- [Browser Extension](/wallets/superhero-wallet-extension): install and first run on desktop.
+- [Mobile App](/wallets/superhero-wallet-mobile): the native apps and the PWA install path.
+- [The Built-In Wallet](/wallets/built-in-wallet): how the in-app vault works.
+- [Backup & Recovery](/wallets/backup-and-recovery): the recovery table above, expanded.
+- [Connecting a Wallet](/wallets/connecting): what happens after you have chosen one.
+- [Web Wallet](/wallets/web-wallet): what `wallet.superhero.com` can and cannot do.
+- [Superhero Wallet on the æternity docs hub](https://docs.aeternity.com/aeternity-user-tools-and-services/superhero-wallet): the standalone wallet's own documentation.
diff --git a/pages/wallets/connecting.mdx b/pages/wallets/connecting.mdx
index 5ab4c02..82531ee 100644
--- a/pages/wallets/connecting.mdx
+++ b/pages/wallets/connecting.mdx
@@ -14,20 +14,20 @@ with it, and sends every transaction there for you to approve.
| --- | --- | --- |
| Browser extension | In-page message connection, discovered by the SDK's wallet detector | Desktop browsers with Superhero Wallet installed |
| Wallet app or web wallet | Deep link with a callback URL | Mobile, or desktop when no extension answers |
-| Built-in wallet | No transport — the signer runs in the page | Installed PWA with an on-device vault |
+| Built-in wallet | No transport; the signer runs in the page | Installed PWA with an on-device vault |
The first two are external custody: the wallet holds the key and Superhero only ever receives a
signed result. The third is documented in [The Built-In Wallet](/wallets/built-in-wallet).
**None of them is WalletConnect.** The æternity connection path is the AEX-2 `postMessage` RPC from
-`@aeternity/aepp-sdk` — no project id, no pairing URI, no relay. If you are writing a wallet to
+`@aeternity/aepp-sdk`, with no project id, pairing URI or relay. If you are writing a wallet to
connect to superhero.com, implement the AEX-2 side.
## The extension handshake
Pressing **Connect** runs this sequence:
-1. Any previous session is torn down — persisted wallet info, the active account and the account
+1. Any previous session is torn down: persisted wallet info, the active account and the account
list are cleared, and the SDK is disconnected.
2. The app opens a browser message connection and starts the SDK's **wallet detector**, which
listens for a wallet announcing itself on the page.
@@ -60,13 +60,13 @@ superhero://?… ← tried first on mobile
https://wallet.superhero.com/?… ← desktop, and the mobile fallback after 1.5s
```
-On mobile the app tries the custom scheme and starts a 1.5-second timer; if the page loses focus —
-meaning the native app took over — the timer is cancelled. If it fires, the hosted web wallet opens
+On mobile the app tries the custom scheme and starts a 1.5-second timer; if the page loses focus
+(meaning the native app took over), the timer is cancelled. If it fires, the hosted web wallet opens
instead. On desktop the web wallet URL is opened directly in a new window.
For the connect action, the app passes `x-success` and `x-cancel` callbacks pointing back at the
current page, with `address` and `networkId` placeholders the wallet fills in. On return, the app
-validates the address and installs it as a **static account** — a read-only account that lets the
+validates the address and installs it as a **static account**, a read-only account that lets the
app show balances and portfolio data.
A static account is not a signing session. Signing still routes through the wallet, and
@@ -82,12 +82,12 @@ whose only job is to accept the wallet's result and hand it to whichever tab ask
| `transaction`, `signedTransaction`, `signed_tx` or `tx` | The signed transaction, accepted only if it starts with `tx_` |
| `signature` | A message signature |
| `status` | `completed` marks the queue entry done; completed with neither result present is recorded as cancelled |
-| `returnUrl` | Where to send the user afterwards — **same-origin only**; anything else falls back to `/` |
+| `returnUrl` | Where to send the user afterwards. **Same-origin only**; anything else falls back to `/` |
The route writes the result into the shared transaction queue, then hands off over a broadcast
channel to the originating tab. If that tab acknowledges within 1.5 seconds, this window closes
-(or navigates to the return path). If nothing acknowledges — Android Chrome sometimes opens the
-callback in a temporary tab — the queue page completes message-signing requests itself and
+(or navigates to the return path). If nothing acknowledges (Android Chrome sometimes opens the
+callback in a temporary tab), the queue page completes message-signing requests itself and
refreshes the account and profile caches.
Message-signing requests are the ones that travel this way: profile updates, `.chain` name claims,
@@ -125,9 +125,9 @@ The connect popup lists the four permissions an æpp can ask for:
| Permission | What the popup says |
| --- | --- |
-| `address` | "View your address" — your current account address |
-| `addressList` | "View your address list" — every account address |
-| `networks` | "Use available networks" — Mainnet and Testnet |
+| `address` | "View your address": your current account address |
+| `addressList` | "View your address list": every account address |
+| `networks` | "Use available networks": Mainnet and Testnet |
| `transactions` | "Propose transactions. You are in charge of confirming them." |
A connection lets an æpp *propose*. Nothing in the set grants spending.
@@ -145,15 +145,15 @@ storage. Every field starts `false` or `0`:
| `dailySpendLimit` / `transactionSignLimit` | Sign transactions up to a daily AE ceiling without asking | No |
| `transactionSignSpent` / `transactionSignFirstAskedOn` | Running total and the 24-hour window it resets in | Bookkeeping |
-The checkbox grants exactly one standing permission — a silent reconnect — and leaves everything
+The checkbox grants exactly one standing permission, a silent reconnect, and leaves everything
else prompting. The other switches live in **More → Settings → Permissions**, where you can edit a
host's record or add one by hand; the wallet's own copy there reads "Use this feature with caution
and only for platforms you trust."
The standing record maps onto RPC methods one-for-one: `connect` and `subscribeAddress` read
`address`; `address` (list accounts) reads `addressList`; `signMessage` reads `messageSign`; and
-`sign` runs the daily-limit check. Anything else — `signTypedData`, `signDelegation`,
-`unsafeSign` — has no standing-permission path and always opens a confirmation.
+`sign` runs the daily-limit check. Anything else (`signTypedData`, `signDelegation`,
+`unsafeSign`) has no standing-permission path and always opens a confirmation.
Two more guards:
@@ -171,7 +171,7 @@ you, in the wallet.
## Switching accounts
With a live RPC session, the wallet pushes address changes to the app and the active account
-follows your wallet's selection. Without the RPC connection — a restored read-only session —
+follows your wallet's selection. Without the RPC connection, as in a restored read-only session,
switching accounts in the extension goes unnoticed by the app; reconnect to fix it.
Per-account caches (balance, AEX-9 balances, recent DEX activity, liquidity positions) are keyed by
@@ -188,7 +188,7 @@ offers exactly that network. There is no in-app switcher; change the network in
Disconnect does all of the following, in order, so that a refresh does not silently reconnect:
-1. Removes the persisted session keys from local storage — `account:activeAccount`,
+1. Removes the persisted session keys from local storage: `account:activeAccount`,
`wallet:walletInfo`, `wallet:balance`, `dex:recentActivities` and `liquidityPositions`.
2. Stops any in-flight wallet detection and closes the message connection.
3. Drops the cached wallet reference.
@@ -197,13 +197,13 @@ Disconnect does all of the following, in order, so that a refresh does not silen
5. Disconnects the SDK.
Disconnecting is a local action. It does not revoke anything on chain, and it does not remove a
-built-in wallet's vault from the device — that is a separate, deliberate erase.
+built-in wallet's vault from the device. That is a separate, deliberate erase.
## Related
-- [Choosing a Wallet](/wallets/choosing-a-wallet) — which of these paths you should be on.
-- [The Built-In Wallet](/wallets/built-in-wallet) — the case where there is no transport at all.
-- [Troubleshooting](/wallets/troubleshooting) — detection windows, stale sessions and read-only reconnects, as symptoms.
-- [Navigating the App](/getting-started/navigating-the-app) — which parts of superhero.com need a connected account.
-- [Web Wallet](/wallets/web-wallet) — the two transports a hosted wallet has, and the deep-link routes.
-- [Connect an æpp to a wallet](https://sdk.aeternity.io/latest/guides/connect-aepp-to-wallet/) — the SDK guide for the RPC protocol underneath all of this.
+- [Choosing a Wallet](/wallets/choosing-a-wallet): which of these paths you should be on.
+- [The Built-In Wallet](/wallets/built-in-wallet): the case where there is no transport at all.
+- [Troubleshooting](/wallets/troubleshooting): detection windows, stale sessions and read-only reconnects, as symptoms.
+- [Navigating the App](/getting-started/navigating-the-app): which parts of superhero.com need a connected account.
+- [Web Wallet](/wallets/web-wallet): the two transports a hosted wallet has, and the deep-link routes.
+- [Connect an æpp to a wallet](https://sdk.aeternity.io/latest/guides/connect-aepp-to-wallet/): the SDK guide for the RPC protocol underneath all of this.
diff --git a/pages/wallets/index.mdx b/pages/wallets/index.mdx
index 9fa4047..8dc2331 100644
--- a/pages/wallets/index.mdx
+++ b/pages/wallets/index.mdx
@@ -5,14 +5,14 @@ description: "Install, secure, connect and recover an æternity wallet for Super
# Wallets
-Superhero never holds your keys. Everything you do that touches the chain — posting, tipping,
-trading, voting — is a transaction signed by a wallet you control.
+Superhero never holds your keys. Everything you do that touches the chain (posting, tipping,
+trading, voting) is a transaction signed by a wallet you control.
Two different things are called "a wallet" on Superhero:
-1. **Superhero Wallet** — the standalone multi-chain wallet, built three ways: a browser extension,
- native iOS and Android apps, and the hosted web build at `wallet.superhero.com`.
-2. **The built-in wallet** — a wallet created and held inside the Superhero app itself, unlocked
+1. **Superhero Wallet**: the standalone multi-chain wallet, built three ways (a browser extension,
+ native iOS and Android apps, and the hosted web build at `wallet.superhero.com`).
+2. **The built-in wallet**: a wallet created and held inside the Superhero app itself, unlocked
with a passkey or passphrase.
Both hold the same kind of æternity account (`ak_...`) on the same derivation path, so the same
@@ -33,21 +33,21 @@ recovery model you can live with.
## In this section
-- [Choosing a Wallet](/wallets/choosing-a-wallet) — every option compared on custody, platform, recovery model, hardware support and agent suitability.
-- [Browser Extension](/wallets/superhero-wallet-extension) — install for Chrome, Brave, Opera and Firefox, first-run setup, and the connect handshake on desktop.
-- [Mobile App](/wallets/superhero-wallet-mobile) — the two Superhero apps, the standalone wallet, and installing Superhero as a PWA.
-- [Web Wallet](/wallets/web-wallet) — when superhero.com opens `wallet.superhero.com` automatically, and what a hosted wallet can and cannot do.
-- [The Built-In Wallet](/wallets/built-in-wallet) — the in-app vault: how it stores the seed, how it unlocks, and what clearing site data destroys.
-- [Connecting a Wallet](/wallets/connecting) — wallet detection, the deep-link fallback, the transaction queue, account switching and disconnecting.
-- [Backup & Recovery](/wallets/backup-and-recovery) — what to write down, how to verify it, and what cannot be recovered.
-- [Security Best Practices](/wallets/security) — phishing, allowance hygiene, running an agent key safely, and what signing commits you to.
-- [Managing AEX-9 Tokens](/wallets/aex9-tokens) — how token balances are discovered, sale address versus token address, and allowances.
-- [Troubleshooting](/wallets/troubleshooting) — symptom, cause and fix.
+- [Choosing a Wallet](/wallets/choosing-a-wallet): every option compared on custody, platform, recovery model, hardware support and agent suitability.
+- [Browser Extension](/wallets/superhero-wallet-extension): install for Chrome, Brave, Opera and Firefox, first-run setup, and the connect handshake on desktop.
+- [Mobile App](/wallets/superhero-wallet-mobile): the two Superhero apps, the standalone wallet, and installing Superhero as a PWA.
+- [Web Wallet](/wallets/web-wallet): when superhero.com opens `wallet.superhero.com` automatically, and what a hosted wallet can and cannot do.
+- [The Built-In Wallet](/wallets/built-in-wallet): the in-app vault, including how it stores the seed, how it unlocks, and what clearing site data destroys.
+- [Connecting a Wallet](/wallets/connecting): wallet detection, the deep-link fallback, the transaction queue, account switching and disconnecting.
+- [Backup & Recovery](/wallets/backup-and-recovery): what to write down, how to verify it, and what cannot be recovered.
+- [Security Best Practices](/wallets/security): phishing, allowance hygiene, running an agent key safely, and what signing commits you to.
+- [Managing AEX-9 Tokens](/wallets/aex9-tokens): how token balances are discovered, sale address versus token address, and allowances.
+- [Troubleshooting](/wallets/troubleshooting): symptom, cause and fix.
## Related
-- [Create an Account](/getting-started/create-account) — the account-creation flow from the user's side.
-- [Accounts and Keys](/aeternity/accounts-and-keys) — what an `ak_...` address is at the protocol level.
-- [Agent Wallets and Keys](/agents/wallet-and-keys) — the raw-key model an unattended agent uses instead.
-- [Navigating the App](/getting-started/navigating-the-app) — which parts of superhero.com need a connected account.
-- [Superhero Wallet on the æternity docs hub](https://docs.aeternity.com/aeternity-user-tools-and-services/superhero-wallet) — the standalone wallet's own documentation.
+- [Create an Account](/getting-started/create-account): the account-creation flow from the user's side.
+- [Accounts and Keys](/aeternity/accounts-and-keys): what an `ak_...` address is at the protocol level.
+- [Agent Wallets and Keys](/agents/wallet-and-keys): the raw-key model an unattended agent uses instead.
+- [Navigating the App](/getting-started/navigating-the-app): which parts of superhero.com need a connected account.
+- [Superhero Wallet on the æternity docs hub](https://docs.aeternity.com/aeternity-user-tools-and-services/superhero-wallet): the standalone wallet's own documentation.
diff --git a/pages/wallets/security.mdx b/pages/wallets/security.mdx
index 5e27b65..65455ec 100644
--- a/pages/wallets/security.mdx
+++ b/pages/wallets/security.mdx
@@ -6,7 +6,7 @@ description: "Rules that keep your keys yours — phishing, approvals, agent key
# Wallet Security
Superhero is non-custodial. Nobody can freeze your account, and nobody can restore it either. These
-are the rules — for people typing in a browser and for agents running unattended — that keep a
+are the rules, for people typing in a browser and for agents running unattended, that keep a
self-sovereign account yours.
## The base rules
@@ -23,7 +23,7 @@ self-sovereign account yours.
anyone who reads it can redeem it. A link pasted into a public channel, a CI log or a commit is
already spent by someone else. Send them directly to the person you meant.
-**"Do not sign what you do not understand" is enforced, not just advised.** Superhero's built-in
+**"Do not sign what you do not understand" is enforced, as well as advised.** Superhero's built-in
wallet decodes every transaction before asking you, and **refuses to offer approval at all** when a
payload cannot be decoded. If a wallet you use offers "show raw bytes and sign anyway", treat that
button as a hazard.
@@ -45,25 +45,25 @@ The attack that empties accounts is not a broken cipher; it is a convincing page
- **Check the URL before the connect prompt, not after.** A wallet prompt tells you *what* is being
signed, not *who* asked.
- On the built-in wallet there is one extra signal: passkeys are pinned to a single Relying Party
- ID baked into the build. A clone on another domain cannot use your Superhero passkey — the
+ ID baked into the build. A clone on another domain cannot use your Superhero passkey; the
ceremony fails before it starts. That is a side effect of the design, not a substitute for
checking the URL.
## Approvals and allowances
AEX-9 tokens use an allowance mechanism: you grant another contract permission to move a specific
-amount of your tokens. Superhero uses it in two places — **DEX swaps** of non-AE tokens, and
+amount of your tokens. Superhero uses it in two places: **DEX swaps** of non-AE tokens, and
**vote locking** in DAO governance, where the allowance stops the same tokens being double-spent
across concurrent votes.
-- **Read the amount in the prompt.** The built-in wallet names these calls explicitly — "Lets
+- **Read the amount in the prompt.** The built-in wallet names these calls explicitly: "Lets
another account spend your tokens up to this amount" for `create_allowance`, "Increases or
decreases how many of your tokens another account may spend" for `change_allowance`, and
"Removes another account's permission to spend your tokens" for `reset_allowance`.
- **Amounts are shown in raw base units**, not scaled by the token's decimals. Count the digits.
- **Reset allowances you no longer need**, especially after you finish voting or stop using a
pool. `reset_allowance` exists for this.
-- AE itself needs no allowance — only AEX-9 tokens do.
+- AE itself needs no allowance; only AEX-9 tokens do.
## Running an agent's key safely
@@ -79,7 +79,7 @@ loop. That is a different threat model from a browser wallet.
```
- **Cap the balance.** Fund it with what you are willing to lose to a bug or a bad prompt, and top
- it up deliberately. There is no spending limit enforced anywhere in the stack — the balance *is*
+ it up deliberately. There is no spending limit enforced anywhere in the stack. The balance *is*
the limit.
- **Keep the key out of the process list and the shell history.** `export` in a shell, or a
secrets manager; never an argument on a command line, never a file in the repository.
@@ -92,7 +92,7 @@ loop. That is a different threat model from a browser wallet.
## What signing commits you to
- **Transactions are final.** There is no reversal and no chargeback.
-- **Gas is charged on top of the fee**, up to the gas limit — which is why a good prompt shows both
+- **Gas is charged on top of the fee**, up to the gas limit, which is why a good prompt shows both
a network fee and a "gas, at most" figure. A failed contract call still costs gas.
- **A bonding-curve trade carries a 1% spread** between buy and sell price, split 0.5% to the
community DAO and 0.5% to the affiliation system. That is a structural cost, not a fee you can
@@ -106,12 +106,12 @@ Double-check addresses and amounts before signing. Never risk funds you cannot a
For the built-in wallet, storage is part of your security model:
- The encrypted vault lives in this browser's IndexedDB for this origin. **Clearing site data
- deletes it**, and your passphrase and recovery code cannot bring it back — only the written
+ deletes it**, and your passphrase and recovery code cannot bring it back. Only the written
phrase or a syncing passkey can.
- The vault's confidentiality equals its **weakest enrolled factor**, because any one factor opens
it. A strong passphrase does not compensate for a weak one enrolled alongside.
- Choose a real passphrase. The app enforces a zxcvbn score of at least 3, rejects numeric-only
- strings, and offers a five-word generated phrase — take the generated one unless you have a
+ strings, and offers a five-word generated phrase. Take the generated one unless you have a
reason not to.
- Do not use a shared or public computer for a wallet you intend to keep.
@@ -119,7 +119,7 @@ For the built-in wallet, storage is part of your security model:
| Channel | Use it for |
| --- | --- |
-| `superherowallet@protonmail.com` | Security reports — say only that you have something to report until someone answers |
+| `superherowallet@protonmail.com` | Security reports. Say only that you have something to report until someone answers |
| [Bug report form](https://form.typeform.com/to/Kk3Zyjdr) | Non-sensitive wallet bugs; also linked from the wallet's More screen and About page |
| `chat.superhero.com` | Community chat |
@@ -127,9 +127,9 @@ A public issue tracker is the wrong place for an unfixed vulnerability. Use the
## Related
-- [Backup & Recovery](/wallets/backup-and-recovery) — what survives when something goes wrong.
-- [The Built-In Wallet](/wallets/built-in-wallet) — the enforcement mechanisms referenced above, in detail.
-- [Managing AEX-9 Tokens](/wallets/aex9-tokens) — allowances in practice, including the DAO voting case.
-- [Agent Safety](/agents/safety) — the unattended-execution rules that pair with the agent-key section.
-- [Token Risks](/tokens/risks) — the market-side risks signing exposes you to.
-- [Support](/resources/support) — every reporting route.
+- [Backup & Recovery](/wallets/backup-and-recovery): what survives when something goes wrong.
+- [The Built-In Wallet](/wallets/built-in-wallet): the enforcement mechanisms referenced above, in detail.
+- [Managing AEX-9 Tokens](/wallets/aex9-tokens): allowances in practice, including the DAO voting case.
+- [Agent Safety](/agents/safety): the unattended-execution rules that pair with the agent-key section.
+- [Token Risks](/tokens/risks): the market-side risks signing exposes you to.
+- [Support](/resources/support): every reporting route.
diff --git a/pages/wallets/superhero-wallet-extension.mdx b/pages/wallets/superhero-wallet-extension.mdx
index e92d416..8e74dae 100644
--- a/pages/wallets/superhero-wallet-extension.mdx
+++ b/pages/wallets/superhero-wallet-extension.mdx
@@ -3,7 +3,7 @@ title: "Superhero Wallet — Browser Extension"
description: "Install the Superhero Wallet browser extension, set it up, and connect it to superhero.com."
---
-# Superhero Wallet — Browser Extension
+# Superhero Wallet: Browser Extension
On a desktop browser the extension is the standard way to use Superhero: it holds your key, it
signs, and superhero.com only ever receives the signed result.
@@ -17,10 +17,10 @@ signs, and superhero.com only ever receives the signed result.
The Chrome extension ID is `mnhmmkepfddpifjkamaligfeemcbhdne`. superhero.com's connect dialog links
these two listings and shows you the one matching your browser. **Brave and Opera install the
-Chrome Web Store build** — there is no separate listing for them.
+Chrome Web Store build**; there is no separate listing for them.
-There is no Safari extension. On Apple platforms the wallet ships as the native iOS app instead —
-see [Mobile App](/wallets/superhero-wallet-mobile).
+There is no Safari extension. On Apple platforms the wallet ships as the native iOS app instead.
+See [Mobile App](/wallets/superhero-wallet-mobile).
After installing, pin the extension so its icon is visible; the detection step below needs an
unlocked wallet. On Chromium you can also dock it in the **side panel**, and on Firefox in the
@@ -35,12 +35,12 @@ you what you actually have.
## First run
-The extension is a multi-chain wallet — æternity plus Bitcoin, Ethereum and others — so its
+The extension is a multi-chain wallet (æternity plus Bitcoin, Ethereum and others), so its
onboarding is not Superhero-specific.
**Create a new wallet.** Choose to create a wallet and follow the prompts. The seed phrase is not
-shown during onboarding; go to **Settings → Seed phrase** and write it down — by hand, offline, in
-two places — before funding anything. That phrase is the only thing that restores this wallet on
+shown during onboarding; go to **Settings → Seed phrase** and write it down by hand, offline, in
+two places, before funding anything. That phrase is the only thing that restores this wallet on
another machine. See [Backup & Recovery](/wallets/backup-and-recovery).
**Import an existing wallet.** Choose to import, and enter the seed phrase of an account you
@@ -48,14 +48,14 @@ already hold. Superhero's built-in wallet, the mobile app and this extension all
from the same path, so the same phrase gives you the same addresses in all of them.
Either way, set a wallet password. It unlocks the extension on this machine; it is not a backup
-and does not restore anything elsewhere. **The password can be changed later** — Settings → Secure
+and does not restore anything elsewhere. **The password can be changed later.** Settings → Secure
Login has a change-password form, an auto-lock interval (immediately, 1, 5, 15 or 30 minutes of
inactivity) and a switch to turn password protection off. Changing it re-encrypts the stored seed;
the account and its addresses are untouched.
**Hardware accounts.** Add account → **Add Ledger accounts** imports æternity accounts from a
Ledger over WebUSB, either by discovering accounts with existing activity or by deriving one at an
-index you type. This button is hidden on Firefox, which does not implement WebUSB — use a Chromium
+index you type. This button is hidden on Firefox, which does not implement WebUSB; use a Chromium
browser or the hosted web wallet. **Import AirGap accounts** has no such restriction. Both are
covered in [Choosing a Wallet](/wallets/choosing-a-wallet).
@@ -70,7 +70,7 @@ covered in [Choosing a Wallet](/wallets/choosing-a-wallet).
Underneath, the app opens a browser message connection and runs the SDK's wallet detector for **4
seconds**. If the extension announces itself in that window, an RPC session opens and the app
subscribes to your address. If nothing answers and the page is not framed inside a wallet, the app
-opens `wallet.superhero.com` instead — so *"it opened a web page instead of my extension"* means
+opens `wallet.superhero.com` instead, so *"it opened a web page instead of my extension"* means
the detector timed out.
After a page reload, the app tries to re-establish the session silently, with a longer
@@ -80,14 +80,14 @@ already booted.
## What the connection grants
The extension keeps the key. Connecting lets the app read your address, your account list and
-your balances, and lets it **request** signatures — each of which you approve individually in the
+your balances, and lets it **request** signatures, each of which you approve individually in the
extension. There is no blanket spending approval and no session token. Full detail in
[Connecting a Wallet](/wallets/connecting).
## Switching accounts
With a live connection, account changes made in the extension are pushed to the app and the active
-account follows your selection. Without one — a restored read-only session after a refresh — the
+account follows your selection. Without one (a restored read-only session after a refresh), the
app does not notice the switch. Press Connect again to get the live session back.
## Networks
@@ -112,9 +112,9 @@ More symptoms, including those specific to the built-in wallet, are in
## Related
-- [Connecting a Wallet](/wallets/connecting) — the handshake, the detection windows and the deep-link fallback in full.
-- [Choosing a Wallet](/wallets/choosing-a-wallet) — when the extension is the right choice.
-- [Backup & Recovery](/wallets/backup-and-recovery) — what to do with the seed phrase.
-- [Managing AEX-9 Tokens](/wallets/aex9-tokens) — how community tokens appear once you are connected.
-- [Web Wallet](/wallets/web-wallet) — the same wallet served as a page.
-- [Superhero Wallet on the æternity docs hub](https://docs.aeternity.com/aeternity-user-tools-and-services/superhero-wallet) — the wallet's own documentation.
+- [Connecting a Wallet](/wallets/connecting): the handshake, the detection windows and the deep-link fallback in full.
+- [Choosing a Wallet](/wallets/choosing-a-wallet): when the extension is the right choice.
+- [Backup & Recovery](/wallets/backup-and-recovery): what to do with the seed phrase.
+- [Managing AEX-9 Tokens](/wallets/aex9-tokens): how community tokens appear once you are connected.
+- [Web Wallet](/wallets/web-wallet): the same wallet served as a page.
+- [Superhero Wallet on the æternity docs hub](https://docs.aeternity.com/aeternity-user-tools-and-services/superhero-wallet): the wallet's own documentation.
diff --git a/pages/wallets/superhero-wallet-mobile.mdx b/pages/wallets/superhero-wallet-mobile.mdx
index e64c077..638a5f8 100644
--- a/pages/wallets/superhero-wallet-mobile.mdx
+++ b/pages/wallets/superhero-wallet-mobile.mdx
@@ -3,7 +3,7 @@ title: "Superhero Wallet — Mobile"
description: "The native apps, the built-in wallet, and installing Superhero as a PWA with no app store."
---
-# Superhero Wallet — Mobile
+# Superhero Wallet: Mobile
On a phone there are three ways to hold an account for Superhero: the Superhero app's built-in
wallet, the standalone Superhero Wallet app, and Superhero installed as a PWA.
@@ -28,11 +28,11 @@ a full-screen experience, an integrated wallet and push notifications.
**Safari only.** Chrome and Firefox on iOS cannot install a PWA.
1. Open [superhero.com](https://superhero.com) in Safari.
-2. Open the page menu — the **⋯** menu in the top right, or the **Share** button on older iOS
+2. Open the page menu: the **⋯** menu in the top right, or the **Share** button on older iOS
versions.
3. Scroll and tap **Add to Home Screen**.
4. Tap **Add** in the top right. The icon appears on your home screen.
-5. **Launch it from the home-screen icon**, not from Safari — the extra capabilities only exist in
+5. **Launch it from the home-screen icon**, not from Safari. The extra capabilities only exist in
standalone mode.
### Android
@@ -50,7 +50,7 @@ On desktop, the same install is available from the install button in your browse
| Behaviour | Browser tab | Installed app |
| --- | --- | --- |
| Create a built-in wallet (passkey or new phrase) | Yes | Yes |
-| **Import** an existing seed phrase or private key | No — Connect instead | **Yes** |
+| **Import** an existing seed phrase or private key | No, Connect instead | **Yes** |
| In-page signing by the built-in wallet | Not installed as the signer | **Yes** |
| Token community chat entry points | Hidden | **Shown** |
| Location sharing on iOS | Not available | Available |
@@ -64,7 +64,7 @@ installed app does not come back cleanly, which is why the installed app takes t
Tapping **Connect** in the installed app offers a passkey option first. On a phone that means Face
ID, Touch ID, a fingerprint or your device PIN, and it creates a real æternity account in one
-ceremony — no seed-phrase screen, because the seed is *derived* from the passkey rather than stored
+ceremony. There is no seed-phrase screen, because the seed is *derived* from the passkey rather than stored
beside it.
**That is a backup only if the passkey syncs** (iCloud Keychain, Google Password Manager). There is
@@ -74,10 +74,10 @@ survive.
## Push notifications
-Push is standard Web Push (VAPID), opt-in, and enabled from a control in the app — the permission
+Push is standard Web Push (VAPID), opt-in, and enabled from a control in the app. The permission
prompt requires a tap, so it never appears on load.
-- **Exactly one permission is requested** — the browser's notification permission. No location, no
+- **Exactly one permission is requested**: the browser's notification permission. No location, no
contacts, no background-refresh grant. Subscriptions are `userVisibleOnly`, so the browser will
not deliver a push that does not show a notification.
- **It can be unavailable through no fault of yours.** If the server has no VAPID key configured,
@@ -94,7 +94,7 @@ Superhero Wallet app. An installed PWA is still the web build:
| | Installed PWA of the web wallet | Native app |
| --- | --- | --- |
| Where the seed lives | Site `localStorage`, encrypted under your password | OS keychain, accessible when unlocked, encrypted with a per-install key |
-| Unlock | Password (or none, if you turned protection off) | Biometrics — Face ID, Touch ID, fingerprint — or the device credential |
+| Unlock | Password (or none, if you turned protection off) | Biometrics (Face ID, Touch ID, fingerprint) or the device credential |
| Default auto-lock | 5 minutes of inactivity | **Immediately** |
| In-app dæpp browser | No | **Yes** |
| QR scanning | Browser camera | Native scanner |
@@ -103,8 +103,8 @@ Superhero Wallet app. An installed PWA is still the web build:
| Deep links | `https://wallet.superhero.com/...` only | Also the `superhero://` scheme, and universal links on `wallet.superhero.com` |
| Survives "clear site data" | No | Yes |
-**The native app is the stronger place to hold value on a phone** — keychain storage and
-biometrics — and the PWA is the convenient one. Neither changes your backup obligation, which is
+**The native app is the stronger place to hold value on a phone** (keychain storage and
+biometrics), and the PWA is the convenient one. Neither changes your backup obligation, which is
the seed phrase in both cases.
## Connecting the standalone Superhero Wallet app
@@ -116,9 +116,9 @@ app through the transaction queue route, described in [Connecting a Wallet](/wal
## Related
-- [The Built-In Wallet](/wallets/built-in-wallet) — what the "wallet built in" is, and where its keys live.
-- [Connecting a Wallet](/wallets/connecting) — the deep-link path mobile uses instead of extension detection.
-- [Choosing a Wallet](/wallets/choosing-a-wallet) — built-in versus standalone, decided by recovery model.
-- [Backup & Recovery](/wallets/backup-and-recovery) — especially the passkey-sync rule.
-- [Web Wallet](/wallets/web-wallet) — what an installed PWA of `wallet.superhero.com` can and cannot do.
-- [Superhero Wallet on the æternity docs hub](https://docs.aeternity.com/aeternity-user-tools-and-services/superhero-wallet) — the standalone wallet's documentation.
+- [The Built-In Wallet](/wallets/built-in-wallet): what the "wallet built in" is, and where its keys live.
+- [Connecting a Wallet](/wallets/connecting): the deep-link path mobile uses instead of extension detection.
+- [Choosing a Wallet](/wallets/choosing-a-wallet): built-in versus standalone, decided by recovery model.
+- [Backup & Recovery](/wallets/backup-and-recovery): especially the passkey-sync rule.
+- [Web Wallet](/wallets/web-wallet): what an installed PWA of `wallet.superhero.com` can and cannot do.
+- [Superhero Wallet on the æternity docs hub](https://docs.aeternity.com/aeternity-user-tools-and-services/superhero-wallet): the standalone wallet's documentation.
diff --git a/pages/wallets/troubleshooting.mdx b/pages/wallets/troubleshooting.mdx
index ba12209..9d40453 100644
--- a/pages/wallets/troubleshooting.mdx
+++ b/pages/wallets/troubleshooting.mdx
@@ -27,7 +27,7 @@ prompt, no Windows Hello dialog, no error dialog.
`VITE_WEBAUTHN_RP_ID`, or use a recovery phrase instead.
The app catches this exception and shows *"Passkeys aren't available on this domain (this build
-expects …). Use a recovery phrase instead."* — the name it prints is the RP ID the build was
+expects …). Use a recovery phrase instead."* The name it prints is the RP ID the build was
compiled with. The DOM exception name and message are also written to the browser console; include
them in any report.
@@ -46,7 +46,7 @@ offered on the "this device already has a wallet" screen.
### Tapping the passkey card opens an onboarding screen instead of a biometric prompt
-Your device has a wallet, but that wallet has **no passkey factor** — it unlocks with a passphrase
+Your device has a wallet, but that wallet has **no passkey factor**; it unlocks with a passphrase
and recovery code. The card hands off to the wallet screen, where your passphrase opens it. You
can enroll a device passkey from there.
@@ -63,7 +63,7 @@ Superhero scans for an injected wallet over a browser message connection with a
| Situation | Detection window |
| --- | --- |
| Desktop browser, user-initiated connect | 4 seconds |
-| Mobile or Safari, not framed | 100 ms — fails fast to the deep-link path |
+| Mobile or Safari, not framed | 100 ms, failing fast to the deep-link path |
| Silent reconnect after a page refresh | 15 seconds |
The reconnect window is longer because the extension's content script can be injected after the
@@ -71,7 +71,7 @@ app has already booted.
**Fix:** confirm the extension is installed *and enabled for this site*, unlock it, then reload the
page and use Connect again. If no wallet answers and the page is not framed, the app falls back to
-a deep link — `superhero://` on mobile, otherwise `wallet.superhero.com` in a new window.
+a deep link: `superhero://` on mobile, otherwise `wallet.superhero.com` in a new window.
### The app opened wallet.superhero.com instead of my extension
@@ -88,14 +88,14 @@ per page load, but only when both a previously active account and persisted wall
### The app spontaneously shows "disconnected" while the extension is open
A health check runs every five seconds and clears connection state when the SDK reports no
-accounts — a stale connection is treated as no connection. Reconnect.
+accounts. A stale connection is treated as no connection. Reconnect.
### Disconnect did not stick; it reconnected on refresh
Disconnecting clears the persisted session keys (`account:activeAccount`, `wallet:walletInfo`,
`wallet:balance`, `dex:recentActivities`, `liquidityPositions`), stops wallet detection and drops
the cached connection. If a reconnect still happens, check for a stale `?address=` query parameter
-in the URL — the app consumes that parameter to install a static account, then strips it.
+in the URL. The app consumes that parameter to install a static account, then strips it.
## Hardware accounts in Superhero Wallet
@@ -108,7 +108,7 @@ the surface is neither Firefox nor a mobile app:
| --- | --- |
| Chrome, Brave, Opera extension | Shown |
| `wallet.superhero.com` in a Chromium browser | Shown |
-| Firefox (extension or web) | **Hidden** — Firefox does not implement WebUSB |
+| Firefox (extension or web) | **Hidden**; Firefox does not implement WebUSB |
| iOS or Android app | **Hidden** |
| A non-æternity account selected | **Hidden** |
@@ -140,7 +140,7 @@ a non-AirGap account for it.
Superhero builds are **network-pinned at build time** through `VITE_NETWORK`. The app offers only
the network its bundle was built for; there is no in-app network switcher.
-**Fix:** switch networks in your wallet to match the build — `ae_mainnet` on superhero.com. For
+**Fix:** switch networks in your wallet to match the build: `ae_mainnet` on superhero.com. For
testnet work, use a testnet build and see [Using Testnet](/getting-started/testnet).
## Balances and signing
@@ -155,7 +155,7 @@ max = balance − balance × (slippage + 1) / 100 − 0.001 AE
```
With the default 1% slippage that is a 2% reserve plus 0.001 AE. Separately, **gas is charged on
-top of the transaction fee**, up to the gas limit — which is why the signing prompt shows a "Gas,
+top of the transaction fee**, up to the gas limit, which is why the signing prompt shows a "Gas,
at most" row as well as "Network fee". A balance that exactly covers the amount will not cover the
amount plus fee plus gas.
@@ -181,7 +181,7 @@ action.
### "derived key does not match the expected account address — refusing to sign"
The signer derived a key that does not produce the address it was installed for, and refused. The
-device's wallet changed underneath a live session — a restore or import replaced it — or an
+device's wallet changed underneath a live session (a restore or import replaced it), or an
address and index pair drifted apart.
**Fix:** reload the page so the account list is rebuilt from the current vault, then retry.
@@ -194,14 +194,14 @@ The encrypted vault lives in this browser's IndexedDB for this origin. Clearing
it, and Safari's Intelligent Tracking Prevention can evict it after roughly seven days without
interaction.
-**Neither your passphrase nor your recovery code can bring it back** — both need the deleted
+**Neither your passphrase nor your recovery code can bring it back**, because both need the deleted
record to unwrap anything. What survives is the written recovery phrase, or a **syncing** passkey
if the wallet was created by the passkey path. The full matrix is in
[The Built-In Wallet](/wallets/built-in-wallet#what-clearing-site-data-destroys).
### My wallet unlocks but the app does not know my address
-The address list in `localStorage` was cleared while the encrypted vault in IndexedDB survived — a
+The address list in `localStorage` was cleared while the encrypted vault in IndexedDB survived. This is a
normal outcome of some "clear site data" variants.
**Fix:** open the wallet screen and unlock once; addresses are re-derived from index 0 upward and
@@ -223,7 +223,7 @@ Importing a seed phrase or private key is offered **only in the installed app**
Screen / installed PWA). In a plain browser tab, "I already have a wallet" means Connect, which
never asks for your secret.
-### Nothing persists at all — private browsing
+### Nothing persists at all (private browsing)
In Safari private mode and with site data blocked, storage reads can fail. The app treats an
unreadable address list as "no wallet on this device" and an unreadable vault probe as unknown
@@ -235,7 +235,7 @@ rather than claiming you have no wallet.
| What | Where |
| --- | --- |
-| App, mobile app or PWA bug | [github.com/superhero-com/superhero/issues](https://github.com/superhero-com/superhero/issues) — the same destination as the in-app "Send Feedback" button |
+| App, mobile app or PWA bug | [github.com/superhero-com/superhero/issues](https://github.com/superhero-com/superhero/issues), the same destination as the in-app "Send Feedback" button |
| API, indexer or a wrong figure in a response | [github.com/superhero-com/superhero-api/issues](https://github.com/superhero-com/superhero-api/issues) |
| Superhero Wallet (extension, app, web wallet) bug | The wallet's own **Report a bug** entry, at [form.typeform.com/to/Kk3Zyjdr](https://form.typeform.com/to/Kk3Zyjdr), or [github.com/superhero-com/superhero-wallet/issues](https://github.com/superhero-com/superhero-wallet/issues) |
| Security report, legal, privacy or data protection | `superherowallet@protonmail.com` |
@@ -256,8 +256,8 @@ Never include a private key, a seed phrase, or a screenshot showing either.
## Related
-- [The Built-In Wallet](/wallets/built-in-wallet) — the vault, factor and storage model these symptoms come from.
-- [Connecting a Wallet](/wallets/connecting) — the detection and handshake the connection failures happen inside.
-- [Backup & Recovery](/wallets/backup-and-recovery) — what to do before any of this bites.
-- [Using Testnet](/getting-started/testnet) — the network-pinning that causes mismatch symptoms.
-- [Support](/resources/support) — every reporting route in one place.
+- [The Built-In Wallet](/wallets/built-in-wallet): the vault, factor and storage model these symptoms come from.
+- [Connecting a Wallet](/wallets/connecting): the detection and handshake the connection failures happen inside.
+- [Backup & Recovery](/wallets/backup-and-recovery): what to do before any of this bites.
+- [Using Testnet](/getting-started/testnet): the network-pinning that causes mismatch symptoms.
+- [Support](/resources/support): every reporting route in one place.
diff --git a/pages/wallets/web-wallet.mdx b/pages/wallets/web-wallet.mdx
index 9942b3d..2857e1f 100644
--- a/pages/wallets/web-wallet.mdx
+++ b/pages/wallets/web-wallet.mdx
@@ -12,13 +12,13 @@ having chosen it.
## Which build this is
-It is the web build of Superhero Wallet — the same wallet as the browser extension and the native
+It is the web build of Superhero Wallet: the same wallet as the browser extension and the native
apps, served differently. Three consequences of "it is a web page":
- Its storage is `localStorage` on the `wallet.superhero.com` origin, with the seed phrase
encrypted under a key derived from your wallet password. Clearing site data for that origin
removes the wallet from this browser; your seed phrase brings it back.
-- It is installable as a PWA. Installing it does not change what it can do — an installed PWA is
+- It is installable as a PWA. Installing it does not change what it can do. An installed PWA is
still the web build.
- It is the deep-link endpoint every other Superhero surface points at.
@@ -54,7 +54,7 @@ bnb, avalanche, polygonPos and dogecoin. In particular you can:
| --- | --- | --- | --- |
| Announce itself to any æpp page automatically | Yes, via a content script | **No** | No |
| Be embedded by an æpp in an iframe | Not applicable | **Yes** | No |
-| Be addressed by an æpp over the `x-success` deep-link API | No — an extension has no public URL | **Yes**, this is the canonical endpoint | Yes, via `superhero://` and universal links |
+| Be addressed by an æpp over the `x-success` deep-link API | No, an extension has no public URL | **Yes**, this is the canonical endpoint | Yes, via `superhero://` and universal links |
| Ledger over WebUSB | Chromium only | **Yes** (Chromium only in practice) | No |
| AirGap Vault pairing and signing | Yes | **Yes** | Yes |
| Unlock with biometrics | No | **No** | Yes |
@@ -64,7 +64,7 @@ bnb, avalanche, polygonPos and dogecoin. In particular you can:
The first row is the one that matters. **A hosted page cannot inject itself into someone else's
site.** The extension runs a content script on every page that proxies AEX-2 messages between the
-æpp and the wallet, so an æpp finds the extension simply by listening. The web build can only be
+æpp and the wallet, so an æpp finds the extension by listening. The web build can only be
reached two ways:
- **Embedded as an iframe.** When it detects a parent window, it opens a message connection to the
@@ -78,7 +78,7 @@ Biometric unlock and the dæpp browser are native-only features.
### AirGap works here
-Cold signing from an AirGap Vault is available in the web build, not only in the installed
+Cold signing from an AirGap Vault is available in the web build as well as in the installed
surfaces. Pairing and signing are QR-based, and every screen that shows a QR code also accepts the
`airgap-wallet://?ur=…` string pasted by hand, so it works in a browser with no camera. Set AirGap
Vault to **QR code V3**; V2 payloads will not deserialize. AirGap accounts can sign transactions
@@ -117,13 +117,13 @@ Both need no install:
on every signature.
If you want one wallet used by several æpps, take the web wallet. If you want the shortest path
-into Superhero on a device you will keep using, take the built-in wallet — after reading what its
+into Superhero on a device you will keep using, take the built-in wallet, after reading what its
storage does and does not survive in [The Built-In Wallet](/wallets/built-in-wallet).
## Related
-- [Connecting a Wallet](/wallets/connecting) — the fallback chain that lands you here, and the callback route that brings results back.
-- [Choosing a Wallet](/wallets/choosing-a-wallet) — the full comparison.
-- [Browser Extension](/wallets/superhero-wallet-extension) — the install-once alternative on desktop.
-- [Claim Your .chain Name](/getting-started/claim-name) — the sponsored claim, and where extra names are claimed.
-- [Superhero Wallet](https://wallet.superhero.com/) — the wallet itself.
+- [Connecting a Wallet](/wallets/connecting): the fallback chain that lands you here, and the callback route that brings results back.
+- [Choosing a Wallet](/wallets/choosing-a-wallet): the full comparison.
+- [Browser Extension](/wallets/superhero-wallet-extension): the install-once alternative on desktop.
+- [Claim Your .chain Name](/getting-started/claim-name): the sponsored claim, and where extra names are claimed.
+- [Superhero Wallet](https://wallet.superhero.com/): the wallet itself.
diff --git a/scripts/lint-mdx.py b/scripts/lint-mdx.py
index 237f49f..d3c9ec8 100644
--- a/scripts/lint-mdx.py
+++ b/scripts/lint-mdx.py
@@ -129,7 +129,8 @@ def check_meta(report):
except Exception as exc: # noqa: BLE001
report(meta_path, 1, "META", f"invalid JSON: {exc}")
continue
- present = {f[: -len(".mdx")] for f in files if f.endswith(".mdx")}
+ present = {f.rsplit(".", 1)[0] for f in files
+ if f.endswith((".mdx", ".tsx"))}
present |= {d for d in os.listdir(root)
if os.path.isdir(os.path.join(root, d))}
for key, value in meta.items():