Skip to main content

Source Code and Versions

Repositories​

Live versions​

Each contract's version on chain is listed on Contract Addresses. This table maps the live contracts to their source in astroport-core:

ContractCrateSourceLive version
Factoryastroport-factorycontracts/factoryTerra 1.8.0, Neutron 1.9.0
Router 2.0astroport-routercontracts/router2.0.0
Makerastroport-makercontracts/tokenomics/maker2.0.0
ASTRO burnerastroport-astro-burnercontracts/tokenomics/astro_burner1.0.0 (Neutron)
yASTROastroport-yastrocontracts/tokenomics/yastro1.0.0 (Terra)
Incentivesastroport-incentivescontracts/tokenomics/incentivesTerra 1.5.0, Neutron 1.4.0
Vestingastroport-vestingcontracts/tokenomics/vesting1.4.0
Exit-only poolsastroport-pair-exit-onlycontracts/pair_exit_only1.0.0 (Neutron)
ASTRO converter poolsastroport-pair-convertercontracts/pair_astro_converter1.1.0
Native coin registryastroport-native-coin-registrycontracts/periphery/native_coin_registry1.1.0
Neutron Treasuryastroport-whitelistcontracts/whitelist2.0.0
xASTRO staking (retired)astroport-stakingcontracts/tokenomics/staking2.3.3 (Neutron)
xASTRO payout (finished)astroport-xastro-payoutcontracts/tokenomics/xastro_payout1.0.0

Router 1.3.1 and older pool versions come from earlier releases of astroport-core.

Checking a deployed contract​

  • Version: every Astroport contract stores its name and version under the cw2 key contract_info. Query it as raw contract state, for example neutrond query wasm contract-state raw <address> 636F6E74726163745F696E666F (the hex of contract_info), or through any explorer's contract page.
  • Code: neutrond query wasm contract <address> (or terrad) returns the code ID and the wasm admin. query wasm code-info <code_id> returns the code's checksum, which you can compare with the SHA-256 of a wasm built with the optimizer from the tagged source.