Skip to main content

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).

ContractRolePage
VoterV4Vote tallying, gauge registry, emission routingVoter
GaugeV2_NFT / GaugeFactoryV2_NFTCustody staked CL positions, stream emissionsGauge
VotingEscrow / VeTokenLock BARK → veNFT, BARK ERC-20VotingEscrow
MinterUpgradeableWeekly BARK emission scheduleMinter
Bribes / BribeFactoryV3 / RewardsDistributorBribes and the rebaseBribes & Rewards
AMM core & peripheryPools, swaps, positionsAMM

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 the EternalFarming contract.
  • 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.

On this page
Jump to a section