[DeFi] Marma J Foundation DeFi Management

This topic is meant to serve as an overview of the Marma J Foundation’s DeFi Landscape

Ref-Finance - Native DEX on NEAR Blockchain
The Marma J Foundation has LP on ref in various pools:

This liquidity is currently being managed by marmaj.near with the goal of the marmaj DAO eventually managing these assets

sputnikDAO contracts still need to be audited before we call complex functions with high value attached).

MetaPool - Liquid Stakign Solution on NEAR
The Marma J Foundation has deposited 1000 NEAR into Metapool.

  • marmaj.near now holds 997.25943 STNEAR.
    • These funds are meant to stake until an opportunity comes along that marmaj.near would like to invest into for the Marma J Foundation.
  • The $META tokens that marmaj.near recieves for this investment will be allocated to marmaj <-> META LP on app.ref.finance when this is available (transfers are currently locked for the META token until UNIX timestamp 1637668800 - GMT: Tuesday, November 23, 2021 12:00:00 PM)

The marmaj.near also has >10k NEAR staking through delegation to various validators. This NEAR is considered in “long term lockup” and there is no plan to withdraw these funds in the short/medium term. (to be used for eventual marmaj validator)

5 Likes

Using the above “multicall” contract, we will attempt to manage our DAO treasury (to swap from $NEAR → $marmaj)

target - marmaj.multicall.near

deposit - 10.5 (extra NEAR can be redeemed from the marmaj.multicall.near contract - need to query contract)

{
“account_id”:“marmaj.multicall.near”,
“amount”:“HOW_MUCH_SER”
}

method - sequential

JSON for 10 NEAR swap:

{
“schedule”: [
{
“addr”: “wrap.near”,
“func”: “near_deposit”,
“args”: “{}”,
“gas”: “4000000000000”,
“depo”: “10000000000000000000000000”
},
{
“addr”: “wrap.near”,
“func”: “ft_transfer_call”,
“args”: “{“receiver_id”:“v2.ref-finance.near”,“amount”:“10000000000000000000000000”, “msg”:”"}",
“gas”: “40000000000000”,
“depo”: “1”
},
{
“addr”: “v2.ref-finance.near”,
“func”: “swap”,
“args”: “{“actions”:[{“pool_id”:11,“token_in”:“wrap.near”,“amount_in”:“10000000000000000000000000”,“token_out”:“marmaj.tkn.near”,“min_amount_out”:“1”}]}”,
“gas”: “20000000000000”,
“depo”: “1”
},
{
“addr”: “v2.ref-finance.near”,
“func”: “get_deposits”,
“args”: “{“account_id”:“marmaj.multicall.near”}”,
“gas”: “5000000000000”,
“depo”: “0”
},
{
“addr”: “marmaj.multicall.near”,
“func”: “withdraw_from_ref”,
“args”: “{“ref_address”:“v2.ref-finance.near”,“tokens”:[“wrap.near”,“marmaj.tkn.near”],“receiver_id”:“marmaj.sputnik-dao.near”,“withdrawal_gas”:“55000000000000”,“token_transfer_gas”:“4000000000000”}”,
“gas”: “95000000000000”,
“depo”: “0”
}
]
}

Data is too large for a ledger.

2 Likes

There is now a new pair on ref.finance for the $marmaj token

There is also a “just-for-fun” pair for marmaj <-> paras

For the marmaj <-> stNEAR pair, since stNEAR tracks closely to the price of NEAR (but with additional staking rewards), it would be beneficial to both the marmaj and general NEAR community to add additional LP.

To kick off utility for the pool, 2119 marmaj is to be added to the liquidity pool to support the community. A little over 3000 stNEAR will also be contributed to the pool from marmaj.near.

Screen Shot 2021-10-03 at 10.19.39 AM

Have fun trading :smiling_face_with_three_hearts:

1 Like

Chole , good work around the MJF…!

3 Likes

There is still ~355 stNEAR balance in ref for marmaj.near.

This proposal is to withdraw the necessary NEAR from the marmaj DAO to provide LP to the stNEAR <-> wNEAR pair (360 NEAR)

Screen Shot 2021-10-03 at 2.33.20 PM

The REF tokens earned from this pair will (in part) be used to purchace $marmaj tokens on the marmaj <-> REF pair to then be deposited back to the marmaj DAO (marmaj.sputnik-dao.near) on a weekly basis. (~7 $marmaj a week)

The transactions will be added to this post.

Week 1: 4.7 marmaj: NEAR Explorer | Transaction

Week 2: 3.57 marmaj: NEAR Explorer | Transaction
Week 3: 6.6 marmaj: NEAR Explorer | Transaction

2 Likes

While this experiment was educational, it does not seem like it was economically viable to support the marmaj DAO. For that reason, I will be unwinding the stNEAR <-> marmaj pair on ref.finance: Ref Finance.

The marmaj tokens from the pool will be sent back to the DAO address for now. The stNEAR will be used for other purposes to support the Marma J Foundation.

First txn of 1052.84139 marmaj back to DAO: https://explorer.mainnet.near.org/transactions/3Tx655dRMyf5mMfjmmN4dkwP2EA2FWX9toREQBBEN5Js

We will watch the pool to see if we will keep the LP level here or completely close the pool.

Second txn of 1055.74087 marmaj back to DAO: https://explorer.mainnet.near.org/transactions/AkM46wWzVUTjbycMC3aDugjY3H31p1RJSvaRc8wW4vS3

1 Like