Contract reference
This appendix documents the key external functions and events of the BarkSwap contracts. It is a
reference, not an exhaustive NatSpec dump — for full signatures, read the source under
bark_contracts/ve3/contracts/ (ve(3,3)) and bark_contracts/contracts/src/ (the AMM).
| Contract | Role | Page |
|---|---|---|
VoterV4 | Vote tallying, gauge registry, emission routing | Voter |
GaugeV2_NFT / GaugeFactoryV2_NFT | Custody staked CL positions, stream emissions | Gauge |
VotingEscrow / VeToken | Lock BARK → veNFT, BARK ERC-20 | VotingEscrow |
MinterUpgradeable | Weekly BARK emission schedule | Minter |
Bribes / BribeFactoryV3 / RewardsDistributor | Bribes and the rebase | Bribes & Rewards |
| AMM core & periphery | Pools, swaps, positions | AMM |
Heritage & trust model
BarkSwap's ve(3,3) layer is a THENA fork. Most contracts are byte-identical to THENA upstream; the custom surface is concentrated in:
GaugeV2_NFT/GaugeFactoryV2_NFT— net-new NFT-custody gauges that wrap concentrated-liquidity positions and delegate reward accounting to theEternalFarmingcontract.VoterV4— persistent voter with gauge management adapted for the NFT gauges.
The concentrated-liquidity contracts are deployed from an established, audited upstream
implementation with only cosmetic NFT-branding edits in periphery. See bark_contracts/README.md
for the full audit brief and line counts.
Roles
Privileged actions are gated by PermissionsRegistry roles: GOVERNANCE, VOTER_ADMIN,
GAUGE_ADMIN, and BRIBE_ADMIN. On testnet these are all held by the deployer.