[REDACTED] Online Hackathon workshop w Meta Pool
Nothing is loaded from YouTube until you press play, and then without tracking cookies.
About this video
Meta Pool x.com/meta_pool metapool.app
Stake NEAR, ETH, SOL, AURORA & Q tokens. Receive a liquid token to simultaneously accrue staking rewards and unlock liquidity to participate in DeFi activities
Register for Online hackathon redacted.devpost.com
Live DevRel and Community Support: NEAR Dev Support Channels (Telegram): t.me/neardev DevHub Announcements: t.me/NEARDevHub
Final Submissions Due:October 31th, 2024 Judging Oct 31 - Nov 8th
Meta Pool Bounty Prize: $2,000 (3 winners)
Integrate Meta Pool’s SDK into a valuable use case.
Transcript
4,478 wordsCaptions as YouTube publishes them, usually machine-generated, so product and people names can be misheard.
- 0:03
m want
- 1:22
n m o
- 2:36
and we are live again back here with another redacted Workshop uh I'm super excited uh this is a a little bit of a redo after some technical issues last week but we are here with metap pool uh thanks Owen for joining again how's it going on your side of the world oh good you uh scared me a bit there no warning launched me on screen let just we're just going we're just going now yeah no we wented I wanted to make
- 3:08
sure we jumped into it um super quick let's just kind of set the stage here uh so metap pool has a bounty with three winners uh it's about integrating their SDK so most people probably know metap pool as a liquid Sak provider but we have Danny here to walk us through what that s is and how it all works together and everything else like that so let's not waste any more time and we'll jump
- 3:32
right into it uh Danny thanks for joining us today hey thank you for meting me here for me for letting me here sorry yeah yeah no thanks so much um metapo is really well known in the near Community um and obviously for the liquid saking piece of it but I know there's a lot more that's going on there um and I think it would be nice to just before we jump into the Bounty part of it just kind of set the stage real quick high level like what all the things that
- 4:02
are happening at at metap pool as best as possible you can kind of summarize uh right now yes as you said we are mostly a liquid sing platform but we are developing more things right now H we are working on a borrow and lending functionality uh considering everything we have the all the staking token liquid staking tokens we have ER and trying as well to deploy our own ER stable token nice our stable coin as
- 4:34
well stable coin very cool um definitely some Alpha for people if they don't know already so very good I did not know that yeah uh so Denny let's talk a little bit about this bounty here so there is uh it's related to your SDK um if you don't mind kind of just like what is the SDK for a liquistic provider what does that look like and then if you want to share your screen than welcome to you as well
- 5:08
yes I know I think uh if you like look on M's website I love like the like the Dow governance page and like the validator page um I looked at it for the first time the other day and it was a lot more more built up than I thought um it's being you guys have been building in the ecosystem for a long long time cool stuff uh well here is for example a presentation I made using this SDK ER we
- 5:43
have our own mpm package all M liquid taking SDK that everyone can download on their project ER and users with this can do anything calling contract it has functions for e in for making it easier to call the contract contract functions so they can either stack their tokens or make a liquid and stake or delayed on stake and also they can check some contract data to know the state of the
- 6:14
contract for example so is this an example where uh I can have my users directly stake here and I can check like if they've actually you know have X amount of near Stak through metapo exactly also this could help if anyone is doing their own app the they for example they want they found a strategy that they are sure they're going to make them a more tokens they that they can win tokens with near so H if you do that with Destin year you will earn even more tokens or even what could happen is that
- 6:53
maybe you think near is going up and it it end UPS going down so if you are an S if you hold s tokens instead of near tokens either near goes up or down you'll be better after time passes MH and is this mainly is this mainly like a front end integration or can you call like the metap pool contracts or the SDK from a near contract it can be done from both I either it's it's mostly no it's mostly for back endend more than front end uh because you're going to have a
- 7:35
transaction er done for example I can run in this case and this is what's going to be run here it's obviously on deset it's going to take your credentials from the user I sure for example let's say this user ER and it's going to connect get the account instantiate a mple class and and this case I'm going to St I'm going to suppose I have two near and I'm going to St it stake all of it first I'm going to display the
- 8:08
balance and er then stake it like this so in this case we call mp. stake we can see your my initial balance is this so my initial balance at first is this so after I stake my balance from the contract getting from this uh ft balance off H I can see this increases in this case I can see if time passes esate price increases in comparison to near token so at first I have this and if I want to recover my near tokens plus my rewards I can call Liquid stake with my balance and I get back my
- 8:50
near year immediately paying a small fee H or if I don't want to pay this fee I can call met doesn't stake with my balance and I'll get my near back after up to six days with no fee at all I know I can withdraw these tokens calling this in stake ER calling get account info with my user and looking at property called can withdraw nice so what are some different things that you see are you're looking to see people build using this SDK do you have some some
- 9:31
ideas in mind that you're hoping people go with us not particularly anything they do is fine either something related to tokens maybe something with gaming ER maybe they can use instead of using new tokens to use S new tokens it would be best H because it will be a better investment for either themselves or the users since yeah price yes I I feel like a good use case would be sort of like
- 10:05
lockup contracts where you just have like a big pool of of near there acting for for whatever reason and instead you can just like hold the S there so it's actually doing something I suppose yes with only with just uh staking near tokens interest in year not only you can uh win more more money more USD over time but also you are contributing to the network ER so since there can be more validators or the near will be distributed over many validators so the network should be safer at the
- 10:44
same time nice is this something where I can say I can like designate that you know my app uh initiated this this uh these amount of tokens I know that like through my app users uh staked 100 tokens whatever it might be like a referral fee or something yeah like even even not even fee attachment just even the fact of a referral and I'm sorry I understand the question select the referral or yeah am I are you able to kind of track referrals through the SDK as
- 11:23
well ER that would be not for the SDK maybe the developer should do the the referral system on the r got it so do you have like a referral built into the protocol um like rather than then like you say you don't have it in the SDK but is it something you have like in the metol contracts you know uh no no on the contract we don't have referral for staking not anything or anything er maybe a user can build something like
- 12:00
this but right now I'm I can think of a good use case for referral on this uh right now the so the referral program that you guys have is separate from the SDK that's a whole that's a separate process yes got it cool oh so what is the uh what's the referral program then I must be uh must be oblivious to this I I'm was not in charge of developing this referral program so I'm not
- 12:38
quite I I was on other things so I I can't really answer sorry I think I'll I'll have to do some some separate research then sorry uh I also saw that uh along with the uh near SDK you also show a sticking SDK is that live too uh yes nice and so in uh does that behave the same way uh yes it's mostly the same it's like a copy paste changing just uh eum for near 4 yes near 43 and like if um if you have any like developers we see any developers that are building on
- 13:28
this I know it's there's only a few couple of days left of the hackathon but this seems I mean we we we got through it pretty quick so it seems like something you can Implement really rapidly uh is there like someone they can reach out to for assistance or like a developer group chat where you can get support with this or where can developers like find this documentation uh documentation it's on docs. metap
- 13:59
AP uh and you can find it on our website as well metapa ER and there should be anything also I believe the repo is public but I can if asked over Discord we should be able to share it as well cool so like Discord is the the best place for developers to get in contact would you say yes cool nice let me here I can you guys can see my screen uh so yeah so it looks like you do have a link to to the GitHub
- 14:41
here uh there's again so oh and if you want to do some little more research here about like the referrals it's up here in the middle uh but yeah there's some you know again looks like your your eth SDK is here as well so uh yeah looks look looking you can do a few things here uh what are do you guys have anything coming on on your road map that you can talk about that maybe would affect uh developers in building on top of this no I don't think so nothing that
- 15:23
could affect them okay and I see like you have I have see we we're clicked on near Network right now but we also have ethereum there I wonder if anything can be done with like multi-chain here um maybe maybe you can stake like uh because I think you have do you have liquid Stak ethereum is that correct yes we have near eum Q token Aurora ER ICP not sure if I'm forgetting anything so maybe someone can Sal as well maybe someone could do something
- 16:08
interesting where they like use chain signatures to like stake ethereum with with metol um yes and and different ones maybe they can like I think this would be bit more difficult but like aggregate these these uh these these liquid state tokens but I think that's that's my mind going wild a bit though yeah well sounds good sounds a good project yes inde is this something that actually live here on the screen here um these API end
- 16:48
points ER I'm not sure about all of them the first two should be and The Meta ster I'm not sure because we changed it to MP the name right maybe that we should be upgraded a little bit what kind of data is this just all just price data H yes that's price data perfect well like uh Oracle or H like what sorry like you said prize data Joe do you know what like uh what prize data is
- 17:23
this like Oracle you can use or uh yes first one for example is the exchange rate for Ester near the second one is between EST and US USD sick sick so yeah so let's um you know uh one more time I'll give you the screen back here to just kind of high level for people who just kind of may have joined uh I'll remove my screen uh if you want to show your screen one more time Danny here just kind of talk about again uh just the the mpm package just adding it in and the calls that you can
- 18:02
make um from there yes the mpm package is this one metol at metol SL liquid sing SDK and we have many functions here we can also get in here so first we have to instantiate the class metol H with the account we want to call and maybe the contract that can be different for test net and Main net and from there we have H functions that interest us the most are ft balance off to get the balance of an account next near H the stake method that will stake
- 18:41
my near tokens the near tokens I share here so I will get Ester tokens back once I want to get those EST back to near I can call liquid and stake sharing my ER the I I have in Yos so with the 24 decb and I have to share as well the minimum expected deos in near I I'd like to receive and doing the by doing this I will get the near seconds pack with the rewards I have over time ER except for a little fee that we charge because this is liquid this is the moment H we can also
- 19:30
have well if you want to know for example how to do how to find out this parameter you can use this get near amount sell in here we have also some contract in from State and params here that maybe it's not fully necessary but someone may might find something interesting here uh this would be the number of accounts holding AER that's for metrics not not very relevant a account info to know information about
- 20:02
your own account or if a or if a developer has some users H they can know something as well here also we have unstake H sharing the amount of Ester you have ER or unstake all that will not request this parameter and will unstake all the Ester you have and after H this will get to your near back H but instead of having a fee with like liquid liquid and stake we will have to wait a couple of days to get it
- 20:35
without any fees H once these uh near tokens are one this s near is on state ER you can call you can periodically periodically call get account info to know that and once you get from here that you can withdraw you can call withdraw to get to actually get your near tokens back another possibility users have as well is the liquidity that this is for the liquid and stake part that they can add add near tokens to liquidity and they get they will get uh
- 21:14
some part of some share of the liquid and stake fee or also they can remove the liquidity as well nice great yeah so I like how you um like it's really quite abstract this SDK so you don't have to really deal with like well it doesn't seem like you have to particularly deal with like near API GS or or stuff that much you just sort of use these methods um so it's like nice nice how you've done it and it should be good good developer experience I could see this being like quite a good
- 21:53
Bounty for for someone relatively new to there um see like one someone can pick up quite quite easily because it it's so like abstracted um thank you yeah perfect uh yeah Danny I I appreciate you coming on kind of walking us through that um if people here uh if you haven't already seen the uh the Bounty uh through the redacted hackathon again going through the 31st here so there
- 22:24
still is time to integrate medol you can integr you know just join period uh if you want to hack the next about 48 hours or so and really here there's a lot of opportunities to stack bounties as well so if you're doing some of something else you want to now add in the metap pool feature you can stack a bounty and go from there uh as well uh I really appreciate thanks for coming on today
- 22:48
Danny thank you very much you good to see you D take care good to see it take all right so uh let's take a little bit of time here uh Owen and I just want to uh walk through some of the other stuff that goes on here on metap pool not not Financial advice yeah this is not Financial advice this is just the service um by no means are we saying that go use this but I think it's good
- 23:19
to know that these are this is what's available here in the ecosystem and Med is actually doing something a little bit unique and different than um a just a standard uh liquid saking provider so there are a couple different parts and if you are a validator you can actually apply to actually get additional funding towards your validator through the liquid saking process so you can you know they automatically will distribute it but they actually have ways through
- 23:48
their voting feature that yeah I think this this dashboard is so cool yeah it's pretty neat and so you can if you own metap pools token it gives you voting power and you can vote on a diff your own validator if you have one or somebody else's and you can essentially sign those votes and based off of that they take a certain percentage of their tokens to then you get a little bit distributed a little bit extra from
- 24:15
there and so you can see who actually uh is getting some stuff and it's all kind of in real time uh each uh epic that actually will re you know redistribute tokens Accord ly and you can see like how many total votes different validators have uh so it's a nice little feature there too they also also done on like performance there as well so yes I mean it's it's it's kind of it can be difficult to get enough amount of near
- 24:47
to make your validator like profitable um to start with like any other EO system so if you've got like a you got a boss ass set up and You' got no time then you can get some some near through this um delegated so it's it's a cool um it's a cool cool system yeah it's it's it's a really nice opportunity it's a nice way to activate a community as well um so if you have a community around that uh they also have grants that so
- 25:19
again they use the rewards that are coming from the liquid staking to actually provide some grants which again I think is uh a really pretty cool setup here as well that gives you an opportunity to again reach out we can look at some of the different grants here you can see what it looks like and again it's all about engaging the community because you actually have to go and get votes and people have to contribute back to it so it's not just
- 25:42
like I apply and if they like it they'll do it you actually have to have people who own um some of the voting token to actually go in and put their vote towards what you're doing and uh it's a NE approach I would say like this is one of like the most undervalued projects from like a technical perspective like they're they one of the first if not the first and probably the largest like stake weighted
- 26:15
voting system on on there yeah yeah it totally is great use case you can see where you know it can work and and you can see how some of stuff goes um they do some different like reaking stuff with some different chains they are on multiple chains as you can see here um so it's not just near but they do actually support other chains you know obviously there's the standard staking feature here which is you can you can use what you know
- 26:47
however you want to do that um and it's really fairly straightforward and it's all all permissionless uh they really have done a nice job you can read through they explain how everything kind of of Works how the token works and all all the different parts of it um all their audits are here uh they're very transparent about how all of this works and they're really focused on really you
- 27:11
know providing tools that are not just liquid staking but actually really building a a community and building being part of an ecosystem as well so uh pretty pretty neat stuff um you know I it's I definitely want to encourage um people that you know if you are looking to add something into your project like you know an opportunity for you users to stake um like Danny showed you can use the SDK really easily uh
- 27:42
again combine it with different things if you want to track how people donate you make your own referral system however you want to do stuff uh I think you could do this pretty quickly because that was pretty straightforward SDK I don't think that would be too hard to do yeah yeah sure yeah I think it's a a great one to start on definitely yeah yeah and um and again if you want to see you know if you want to provide liquidity you can see what the different rates are um you know and so all this
- 28:12
stuff they make everything out in front they don't hide any of the different numbers it's all clear right here of what it all looks like uh what's going to happen what does it mean uh so they really try to educate as well as you go through all of this stuff it's not just about like hey go do this it's what does this mean and how is this going to work uh and from like a developer perspective as well I think most if I I don't know
- 28:42
about like the voting contracts and stuff but I know this like the staking contract is open source so um like I know I I've seen reviews there's a YouTube video somewhere reviewing and like going through how the staking contract works I do believe um so it's like a great repo to look at if you're getting into you like you want to build something with defi right um it's it's always easier to I I'm
- 29:16
unsure of the license so if it's if it's not fully open source don't take my advice but it's always easier to Fork than to start again they they are are very big on um doing things open source and so uh I'm sure it is and if it's not it's going to be soon maybe it just needs like an audit or something um let's we can kind of wrap here but I I do want to highlight um we have crossed the 1500 participant number
- 29:49
here for redacted which is awesome um that that prize number there over $700,000 in prizes you have until till October 31st uh the actual time I don't know the actual oh here you go 5:00 p.m. eastern time so whatever time zone you're in it should show up what that looks like but so about a little less than three days uh you know to get there I would also say again go through the different bounties you can stack bounties there might be little things here and there
- 30:21
like we just saw how easy it was to include metap pool take a second go through hey how can I do that you know easy prizes right here um we've had most of these partner uh bounties here come on and do Workshop check out the YouTube channels for for devhub uh on your protocol there's amas there's uh workshops everything is here for you to really maximize uh what you want to build and
- 30:50
if you are stuck please please come ask questions all the resources are right here at the top here of the tab and you can jump in here's the different telegram channels where you can jump in and start asking questions yeah that the the telegram will come in useful for sure definitely uh so don't hesitate take your chance a lot of money's up for grabs a lot of cool stuff uh and then uh
- 31:15
redacted itself is coming up uh as well so the IRL event which is going to be great so uh looking forward to what seeing what people build uh we have an actual another Workshop today uh in little under about 30 minutes uh we have proximity coming back on to talk about building on top of Bitcoin uh using chain abstraction oh really so uh that's in about 28 minutes from now uh make sure you come back to these channels uh it's going to be a
- 31:50
good time pretty cool stuff and they're going to give some real good examples about how to actually start building a uh pretty intelligent layer on top of Bitcoin so look forwarding looking forward to that uh but until then we'll see you in about 30 minutes and I keep building thanks all in a bet we're still live hold on all right till then byebye