Introduction

    What is Ref Finance?

    Ref Finance is a decentralized finance (DeFi) platform that was initially created by Illia Polosukhin, which is also the co-founder of the NEAR Protocol. The platform scaled in operation when Proximity Labs, a NEAR-focused research and development company, received funding from NEAR Foundation to expand and strengthen the DeFi service. 

    Ref Finance is a DeFi marketplace for NEAR native tokens that leverages the power of NEAR’s low fees, ultra-fast finality, and WebAssembly-based runtime. 

    The platform allows users to trade tokens using its Automated Market Maker exchange, stake LP token into farms, and provide liquidity to the system. 

    One of REF Finance’s major goals is to partner with various NEAR projects and help them create market pairs on its platform and provide them with a better market presence. 

    Ref Finance Mechanism 

    Participants can either trade or become a liquidity provider (or both) in the platform by depositing an equivalent of each underlying token in exchange for LP tokens, also called “pool tokens.” Uniswap’s liquidity pools might be more popular than Ref Finance’s for the time being, but it doesn’t mean that Ref’s services are inferior in any way. 

    Ref Finance’s advantage over Uniswap is that its smart contract contains all pairs of liquidity pools, which comprise reserves of two or three NEP-141 tokens, kind of like the ERC-20 tokens of NEAR. 


    Source:

    db_img
    db_img

    Methodology

    Swap To/From Stablecoins

    In the first part we tried to calculate the amount volume of NEAR exchanged to or from stablecoins, and for that we used ==near.core.fact_receipts== table by filtering of ==receiver_id = 'v2.ref-finance.near'== and ==method_name== in Swap to find all transactions that executed by Ref-finance to swapping tokens.

    we chosen 4 stablecoin such as USDC, USDT, DAI and USN as native stablecoin of Near ecosystem.

    we also separated the following metrics on this section by months of year and shown the share of each metrics per month.

    Success/Fail Transactions on Ref finance

    For this part of research we excluded Success and Failed transactions by status_value column on ==near.core.fact_receipts== table and calculated Success transactions per minute over the last year and Failure rate over same time, and shown these on a DOT graphs for a hourly time frame on days of weeks.

    Staking On Ref Finance

    Finally, we decided to take a glance on Staking on Ref-Finance. We knew that xREF is the main staking contract (==xtoken.ref-finance.near==) on the platform. When you stake your REF, you effectively exchange your REF for xREF. Over time, you will always earn more REF by holding xREF tokens. So I excluded all transactions on ==near.core.fact_receipts== table by ==receiver_id = 'xtoken.ref-finance.near'== and calculated the amount of REF volume as Staked token and xREF volume as received token.

    General Statistics

    Loading...
    Loading...
    Loading...
    Loading...

    Swap On Ref Finance

    Swap TO Stablecoin On Ref Finance

    • The first high point in the volume of transactions occurred on October 5, 2021. However, beginning in early November 2021 and continuing until early March 2022, daily transaction volume fell to below 500. The most purchases were made with each stablecoin on May 12th. Initially, we aimed to exchange for USDT with a transaction count of at least 3 thousand.
    • The majority of unique swappers converted their NEAR to stablecoins, mostly more USDT, on October 4th, 2021.
    • That date also saw the highest volume of volume swaps.
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Findings

    • Cumulative transaction count and exchanged volume were increasing steadily up until the end of April, but suddenly, on that date, they began to increase at a much faster rate, and USDC overtook DAI to take the second place spot, after USDT.
    • The most unique swappers and the highest volume of switched goals have been achieved with USDT and USDC.

    Swap TO Stablecoin on Ref Finance on Months of Year

    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Findings

    • May was the month that had the highest number of Swapped transactions as well as volume overall.
    • The number of transactions, as well as the volume of swaps to and from USDT, placed it in first place, followed by USDC.
    • In the month of October, the majority of unique swappers moved their transactions to stablecoins. and a greater number of trades were made to assets denominated in USDT and DAI, respectively.

    Swap FROM Stablecoin On Ref Finance

    • The number of swaps reached its highest point on October 5th, 2021, marking the peak of the trading activity. But after that, the number of transactions per day fell below 500, beginning in November and continuing until early March of 2022. On May 9th, there was a rise in the total number of transactions that took place across all stablecoins. The first token to be used as a switching source was USDT, which had a transaction count of more over 2,000.
    • On October 5, 2021, the vast majority of one-of-a-kind swappers traded their Stablecoins for NEAR, which is equivalent to more USDT.
    • Since the end of April, 2022, there has been an increase in the amount of stablecoins being traded for NEAR. As a result, the volume of stablecoins being swapped for NEAR reached its maximum point on June 13th. Therefore, on this date, more over 1.3 million USDT was converted into NEAR via the Ref-Finance platform.
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Findings

    • Cumulative transaction count and swapped volume were increasing steadily up until the end of April, but suddenly, on that date, they began to increase at a much faster rate, and USDC overtook DAI to take second place, after USDT, as the previous part stated.
    • More than 172 thousand unique swappers moved more than 250 million stablecoins to NEAR, and USDC came in second position both in terms of the number of unique users and the volume of stablecoins switched.

    Swap From Stablecoin on Ref Finance on Months of Year

    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Findings

    • As was said in the previous section, the month of May had the highest number of Swapped transactions originating from stablecoins as well as volume overall.
    • The number of transactions, as well as the volume of swaps to and from USDT, placed it in first place, followed by USDC.
    • In the month of October, the majority of unique swappers moved their transactions to stablecoins. a greater number of assets denominated in USDT and DAI correspondingly were traded.

    Tokens TVL on Ref Finance

    Loading...
    Loading...

    Findings

    As expected the Stablecoins have had most Total Value Locked on Ref-Finance.

    So that USDT with about 37.9%, USN as native Stablecoin of Near ecosystem was the second place with 36.1% of Total Value Locked (TVL) on Ref-Finance.

    The third place are belongs to wNEAR with 10.6% of TVL.

    Success/Fail Transactions on Ref Finance

    Loading...
    Loading...
    Loading...
    Loading...

    Findings

    • Since September 1, 2021, the rate at which transactions fail has climbed from approximately 2% to a value that varies between 67% and 100%.
    • Because of the growing number of unsuccessful transactions, the number of successful transactions that occur each minute has decreased from 33 to 4.
    • According to the following graphic, it is possible to see that the daily count of successful transactions has fallen while the number of unsuccessful transactions has climbed over time. Therefore, by October 10th, 2021, more than 7% of transactions failed per day, and by July 14th, 2022, that number had increased to above 90%.
    • In the past year, the transaction success rate per minute for Ref-Finance using NEAR Protocol was 10.5, while the transaction failure rate per minute was 20.9%.

    Staking On Ref Finance

    Staking is the process of converting REF to xREF, with a percentage of trading fees used to buy back REF and send it to the xREF contract (xtoken.ref-finance.near). Over time, your xREF will give you more REF. Visit the xREF tab to have more details relating the rewards. More Info

    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Findings

    • As of the time of writing this section, it has been determined that on the first day of the introduction of staking, the biggest volume staked and the most transactions counted took place on January 12th, 2022. This date was chosen as the launch date.
    • Between the middle of April and the first ten days of May, the majority of transactions involving staking and volume took place.
    • August was the month that had the most total Staked volume and transactions count other than, with 4.8 million total Staked volume; May was the month that came in second.
    • On April 7th, there was a significant spike and rocketpull in the growth of Staking Volume.

    Conclusion

    Swap To Stablecoins

    > On October 5, 2021, transaction volume peaked. After that, daily transactions dropped to under 500 until March 2022. May 12 saw the highest stablecoin purchases. We had targeted for 3,000 USDT transactions. > > On October 4, 2021, most unique swappers switched NEAR to stablecoins, notably USDT. > > On that date, volume swaps peaked. > > The overall number of transactions and swaps grew consistently until late April, when they grew much quicker. The USDC overtook the DAI to become the second most commonly traded currency, behind only the USDT. > > Unique swappers and USDT and USDC volume. > > Swapped transactions and volume peaked in May. > > USDC followed USDT in volume and currency swaps. > > Most swappers use stablecoins in October. Swaps targeted USDT and DAI assets. > > On Oct. 5, 2021, swaps increased. From November 2021 to March 2022, daily transaction volume decreased below 500. On May 9, stablecoin transactions increased sharply. The first trading coin had around 2,000 USDT in transactions. > > On October 5, 2021, Stablecoins were converted to NEAR, more USDT.

    Swap From Stablecoins

    > Since late April 2022, more stablecoins have been exchanged for NEAR, with the most on June 13. On these dates, Ref-Finance converted over $1.3 million USDT to NEAR. > > The number of transactions and trading volume continuously increased until late April, when they suddenly surged and the USDC overtook the DAI to become the second most commonly traded currency, behind the USDT. > > 172,000 unique swappers shifted more than 250 million stablecoins to NEAR, putting USDC in second position for unique users and total swaps. > > May witnessed the largest volume and share of stablecoin Swapped transactions. > > USDC followed USDT in volume and currency swaps. > > Most swappers use stablecoins in October. USDT and DAI were traded for additional DAI.

    Tokens TVL on Ref Finance

    > The Stablecoins on Ref-Finance have attracted the largest share of the Total Locked Value. > > So, whereas USDT accounted for over 38% of Total Value Locked (TVL) on Ref-Finance, USN, the native Stablecoin of the Near ecosystem, ranked second with 36% TVL. > > With 10% of the TVL, wNEAR takes third place.

    Success/Fail Transactions on Ref Finance

    > Since September 1, 2021, transaction failure rates have risen from 2% to 67%. > > Increasing failure rates reduce successful transactions from 33 to 4 per minute. > > According to the next chart, daily Success transactions fell and Failed transactions increased. More than 7% of daily transactions failed on October 10, 2021, and more than 90% on July 14, 2022. > > Ref-Finance on NEAR Protocol has 10.5 successful transactions per minute and a 20.9% fail rate. Wednesday evening has the biggest positive signal (high sTPM and low TFR), whereas Friday morning has the opposite.

    Staking On Ref Finance

    > The first day of staking, January 12, 2022, saw the biggest volume staked and the most transactions. > > Most Staking trades and Volume happened in April and May. > > August had 4.8m Staked volume, followed by May. > > On April 7, Staking Volume rocketpulled.

    Metrics

    General Statistics

    • Total Number of Transactions on Ref Finance
    • Total Number of Users on Ref Finance
    • Total Transactions Fee on Ref Finance
    • Average Transactions Fee on Ref Finance

    Swap On Ref Finance

    Swap TO Stablecoin On Ref Finance

    • Daily Number of Transactions of Swaps to Stablecoins on Ref Finance
    • Cumulative Transactions of Swaps to Stablecoins on Ref Finance
    • Share Swaps Transactions Count to Stablecoins on Ref Finance
    • Daily Count of Unique Swapper of Swaps to Stablecoins on Ref Finance
    • Cumulative Count of Unique Swapper of Swaps to Stablecoins on Ref Finance
    • Share of Unique Users Count of Swappers to Stablecoins on Ref Finance
    • Daily Amount of Swaps Volume to Stablecoins on Ref Finance
    • Cumulative Amount of Swaps Volume to Stablecoins on Ref Finance
    • Share of Swapped Volume to Stablecoins on Ref Finance
    • Daily Amount of Swaps Volume in NEAR to Stablecoins on Ref Finance
    • Cumulative NEAR Amount Swaps Volume to Stablecoins on Ref Finance
    • Share of Swapped NEAR Amount to Stablecoins on Ref Finance
    • Total Count of Swaps TX vs. Unique Swappers to Stablecoins on Ref Finance
    • Total Amount of Swaps Volume to Stablecoins on Ref Finance

    Swap TO Stablecoin on Ref Finance on Months of Year

    • Total Transactions Count of Swaps to Stablecoins on Ref Finance Per Month
    • Share of Transactions Count of Swaps to Stablecoins on Ref Finance per month
    • Total Amount of Swapped NEAR to Stablecoins on Ref Finance per month
    • Total Count of Unique Swapper of Swapped to Stablecoins on Ref Finance per month
    • Share Amount of Swapped to Stablecoins on Ref Finance per month
    • Share Amount of Swapped NEAR to Stablecoins on Ref-Finance per month
    • Total Amount of Swapped to Stablecoins on Ref-Finance per month
    • Share Count of Unique Swapper of Swapped to Stablecoins on Ref-Finance per month

    Swap FROM Stablecoin On Ref Finance

    • Daily Transactions Count of Swaps From Stablecoins on Ref-Finance
    • Cumulative Transactions Count of Swaps From Stablecoins on Ref-Finance
    • Share Swaps Transactions Count From Stablecoins
    • Daily Count of Unique Swapper of Swaps From Stablecoins on Ref-Finance
    • Cumulative Count of Unique Swapper of Swaps From Stablecoins on Ref-Finance
    • Share of Unique Users Count of Swapper From Stablecoins
    • Daily Amount of Swaps Volume From Stablecoins
    • Cumulative Amount of Swaps Volume From Stablecoins
    • Share of Volume Swapped From Stablecoins
    • Daily Amount of Swaps Volume in NEAR From Stablecoins on Ref-Finance
    • Cumulative NEAR Amount Swaps Volume From Stablecoins
    • Share of NEAR Amount Swaps Volume From Stablecoins
    • Total Count of Swaps TX vs Swapper Count From Stablecoins
    • Total Amount Swapped NEAR Volume From Stablecoins

    Swap From Stablecoin on Ref Finance on Months of Year

    • Total Transactions Count of Swaps From Stablecoins on Ref-Finance per month
    • Share of Transactions Count of Swaps From Stablecoins on Ref-Finance per month
    • Total Amount of Swapped NEAR to Stablecoins on Ref-Finance per month
    • Total Count of Unique Swapper of Swapped From Stablecoins on Ref Finance per month
    • Share Amount of Swapped From Stablecoins on Ref-Finance per month
    • Share Amount of Swapped NEAR From Stablecoins on Ref-Finance per month
    • Total Count of Unique Swapper of Swapped From Stablecoins on Ref-Finance per month
    • Share Count of Unique Swapper of Swapped From Stablecoins on Ref-Finance per month

    Tokens TVL on Ref Finance

    • TVL Locked Per Token
    • TVL Locked Per Token - Percentage

    Success/Fail Transactions on Ref Finance

    • Success Transactions Per Minute On Ref Finance
    • Failure Transactions Rate On Ref Finance
    • Success TPM (Left Y-Axis) and TFR (Right Y-Axis) over time
    • Share of Success TPM and TFR over time

    Staking On Ref Finance

    • Stake Transaction Count and Unique Staker over time
    • Daily Ref Staked Volume and xRef Received Amount over time
    • Cumulative TX Count, Unique Stakers, Ref Staked & xRef Received over time
    • Total Amount of Ref Staked & xRef Received Volume per month
    • Total TX & Unique Staker Count Per Month
    • Share of Ref Staked TX Count Per Month
    • Share of Ref Staked Volume Per Month