Contracts
All contracts are on the NEAR Protocol. The source code of Ref Finance can be found on Github.
Find below the list of all accounts that have directly managed or currently manage the affairs of Ref Finance.
Mainnet Contracts
v2.ref-finance.near
Exchange Contract
Manage the Automated Market Maker functions; Swap and Provide Liquidity
Yes
ref-finance.sputnik-dao.near
boostfarm.ref-labs.near
Farming Contract
Manage liquidity incentives
Yes
ref-finance.sputnik-dao.near
ref-ve.ref-labs.near
Vetokenomics Contract
Manage Vote-Escrowed Token (veToken)
No (In Progress)
ref-dev-team.near
xtoken.ref-finance.near
Staking Contract
Mint and burn xREF, and Distribute time-based rewards
Yes
ref-finance.sputnik-dao.near
dclv2.ref-labs.near
Concentrated Liquidity Contract (Ref v2)
Manage concentrated liquidity and limit order functions
No (In Progress)
ref-dev-team.near
ref-finance.sputnik-dao.near
Sputnik DAO Contract
Ensure the success of Ref by taking strategic decisions (incl. smart contract amendments)
Yes
ref-community-board.sputnik-dao.near
Sputnik DAO Contract
Manage and allocate funds to specific community contributors
Yes
dao.ref-dev-team.near
Sputnik DAO Contract
Execute the Strategy and Roadmap
Yes
ref.ref-dev-fund.near
Vesting Contract
Manage REF vesting contracts of Dev DAO members
Yes
dao.ref-dev-team.near
s01.ref-airdrop.near
Airdrop Contract
Manage first REF airdrop
Yes
N/A
ref-bug-bounty-1.near
Simple Address
Manage one-time bug bounty payments
N/A
N/A
N/A
token.v2.ref-finance.near
$REF Fungible Token Contract
Mint REF token
Yes
N/A
ref-finance.near
Exchange Contract
v1 (obsolete) - Manage the Automated Market Maker functions; Swap and Provide Liquidity
No
N/A
token.ref-finance.near
Fungible Token Contract
v1 (obsolete) - Mint REF token
Yes
N/A
N/A
v2.ref-farming.near
Farming Contract
v2 (obsolete) - Manage liquidity incentives
Yes
ref-finance.sputnik-dao.near
dcl.ref-labs.near
Concentrated Liquidity Contract (Ref v2)
Beta (obsolete) - Manage concentrated liquidity and limit order functions
No
ref-dev-team.near
refchef.near
Simple Address
Manage inter-account transactions
N/A
N/A
N/A
ref-farm-reward-proxy.near
Simple Address
Manage third-party deposits for liquidity incentives
N/A
N/A
N/A
a4b55d572d5f41c0dbbb88fd1317ebff87edcc75cad5d8705c55e94c48993926
Simple Address
Manage Protocol Revenue Conversion - REF buyback (Q2 2022)
N/A
N/A
N/A
28d262719c5d97e3c570a5a71a817820300a97bd086136923e44812193ef6c4d
Simple Address
Manage Protocol Revenue Conversion - REF buyback (Q3 2022)
N/A
N/A
N/A
ref-dev-teller.near
Simple Address
Manage inter-account transactions
N/A
N/A
N/A
0x102d7FaD37A4e0266A0AFDcDc90A04408F9ac091
Simple Address (Ethereum)
Manage TRI<>REF Liquidity Provision on Tri Solaris
N/A
N/A
N/A
0x45d76fa8498239ed5fc4dcd7377f92beec5c48d6
Simple Address (Ethereum)
N/A
N/A
N/A
0x04dFb979Ffa1Fb08B6e6EF626377161CBB085Cf1
Aggregator Contract-Stargate-Rainbow(Aurora)
Manage Stargate - Rainbow Bridge Asset
N/A
Testnet Contracts
ref-finance-101.testnet
Exchange Contract
v2.ref-finance.near
boostfarm.ref-finance.testnet
Farming Contract
boostfarm.ref-labs.near
v010.refve.testnet
Vetokenomics Contract
ref-ve.ref-labs.near
xref.ref-finance.testnet
Staking Contract
xtoken.ref-finance.near
dclv2.ref-dev.testnet
Concentrated Liquidity Contract (Ref v2)
dclv2.ref-labs.near
ref.fakes.testnet
$REF Fungible Token Contract
token.v2.ref-finance.near
Timelock
Timelocks are a smart contract feature that states that some actions will only be performed after a certain period of time rather than immediately.
Ref Finance does not use/have a timelock feature. Ref contracts are directly upgraded from the DAO (ref-finance.sputnik-dao.near), thus providing time to users, via the voting period of the associated proposal, to protect their funds in case they identify suspicious activities.
DAO proposals usually take from 48 to 72 hours either to get approved or rejected.
Frozen List
The Ref Finance Exchange contract (v2.ref-finance.near) has a 'Frozen List' feature, which was deployed on version 1.6.0+.
The feature enables the owner and/or Guardians of the contract to freeze any token listed on the exchange. When frozen, any action (Swap, Add/Remove liquidity, Deposit, Withdraw, etc.) on the corresponding token will fail, resulting in a 'panic error' at the contract level.
The owner and/or Guardians can use the following commands to freeze/unfreeze any token:
To get the Frozen List, anyone can query the following command:
Motivation
The Frozen List feature has been designed to mitigate the impact of any attack or hack associated to a specific token and its potential contagion within the ecosystem.
The feature can also be activated as a preventive measure. For example, in November 2022, Metapool identified a critical bug on its contract. Ref Finance was informed and immediately froze the STNEAR token, preventing users from any associated action (trading and pooling) on Ref, thus reducing the severity of the impact (trading losses, extreme volatility, etc.) that such a bug could have caused to traders and LPs.
Last updated