Denver Lift-Off 11: Rocket Sweep | Rocket Pool DAO Event 03 March 2024

Denver Lift-Off 2024 · March 2024 · 12:32

A Rocket Pool node operator and software engineer presents Rocket Sweep, a read-only dashboard and claiming tool for node operators. The talk shows how to monitor rewards, distribute minipools and batch claims through a Safe multisig, with typical gas savings of 20 to 30 percent. It also covers security considerations of hosting a wallet-connected front end, the open source and IPFS options, and how Megapools will change the tool.

Topics

From Denver Lift-Off 2024, hosted by Rocket Pool.

Transcript

um before I get started I'll talk a little bit about me I guess he just kind of did that I'm going to move quickly just because time has been flowing um my background I'm a software engineer I'm a node operator uh most of my background is in more traditional Tech stupy stuff and consumer product mostly so whereas like Romana is like teaching machines to talk to machines and prove themselves to each other I'm a lot more familiar with building products for humans to use and then kind of Bridging the Gap with the computer um rocket sweep at a high level is a tool for node operators to help like look at their rewards and claim them um it was kind of me scratching a lot of my own itches at first the two

big ones were uh it's fun to have a little thing you can bookmark and check how your no's doing like I wanted to see the number going up as it was accumulating rewards I wanted to see that that top image is what AI gives you when you say stressfully check your phone for something this is what it spits out um the other big issue was once you start having a lot of mini pools if you're lucky enough to have that problem um it's hard to manually distribute all of them and so doing that in like an organized way and ideally in a gas efficient way was kind of like the other big problem I was trying to solve so I'm going to now show you how to use rocket site which is this website that I created to solve these two problems for myself and then decided to

share with the rest of you um first you can view your rewards so this is the the sort of one card View and I like a mobile phone this is how it'll show so when you find your node on the site this will you'll have this will be on the left- hand side or on the phone it'll be the whole screen and I recommend just bookmarking this on your phone or wherever and that's what you can just load up and be like cool still going numbers going up um if you Mouse over a bunch of stuff there's all sorts of neat little hints and things it can show you um you can see the split with re e and yours and how that's all going through um so one of my goals here was to sort of teach a little bit about how it works for people who don't

necessarily get in the weeds of how the flows come in and how it gets divvied up there's also this nice little overlay if you hover on the um the RPL and like what the current ratio is and how you're doing and if you need to top it up or not I also I was just like most of you I assume don't have cards that would look quite this um lovely uh so that's that's I think for a lot of people that's going to be one of the main uses of the rocket sweep it's just kind of a nice you don't have to log in you don't have to connect to wallet you can do it on devices you don't trust whatever it's it's not really doing anything it's just read only it's only pulling data from a a blockchain provider I'll get there's a slide later

where I'll talk a little bit about some of the Safety and Security things around this this but at this point what I've shown you is I think for a lot of people what they'll just use it for just seeing what's going on um but you can also use rocket sweep to claim rewards um again this will be on the right hand side of the page when you're looking at your node these are like all on at the top are the periodic rewards which are like every 28 days or so you get a bunch of stuff and then at the bottom are the continuous things it's like as the beacon chain issues things this is where it'll show up um so for people for most for some people you can just one by one go through your mini pools and distribute them um you can also claim individual

claim Andor stake individual reward epics uh and this is sort of I I'll call this like one by one claiming um I'll get to in a second the thing called sweeping which is what the name's for which lets you kind of do them in a set but for some people if you or if you had like one if you just want to grab one of your mini pools you can do that one by one in here the top right you can't see it but there's a connect your wallet and then you can just click on each one and distribute them it also does nice little things to sort of show you I can't really see it but you see down there like when you hover over the distribute button it tries to give you a little bit of a hint of like here's what you're

going to get based on gas here's probably the efficiency of doing that now versus waiting for later um there's other things in here that as as you kind of go through it um if you start using it you'll start seeing like if you find if as you're finalizing a mini pool if you sort of have to shut it down it kind of helps you go through that process too um so sweeping so in a world where again you have the happy problem of way too many mini pools to like do the bookkeeping and the Haring of like oh which one should I do next and how do I pick which mini pools are ready to be swept or claimed from um and how do I organize it in a way that's sort of sensible that's what sweeping is so again let me go back for a second at the

top there you see there's that weird sweep button with a little like settings little widget to the left of it if you tap on that little widget you'll see something that looks like this so this is letting you across all of your mini pools there's different kinds of things you can do to claim against it and sometimes you this is this is like the most complicated view you can possibly see in rocket sweep so this can be scary the first time you see it but as you start pulling those dials around and checking the boxes it kind of explains on the right hand side what you're creating what you're creating is this batch of transactions that you're going to execute which is distribute a bunch of these claim these intervals um if you have nodes that need to be finalized it'll finalize those so

like there's all these different things that you can you may want to do in a set so if you're operating against larger batches of mini pools this can be really helpful there's some cleverness in that consensus one where there's the threshold and batch size so this is uh Thomas's I think and so he's he's got that the happy problem where you can't actually do 800 or so mini pools in a single transaction just get the gas limits get problematic so which 200 do you do first and so it does like sensible things like sorting the most profitable ones to the top and letting you set the batch size um there is some strategy around and like actually if you go into trading there's people have all sorts of theories about when and how you

should claim or compound your gains um there's a whole theory that you don't need to do any of this just wait for the one e threshold to hit and you don't have to touch this and that's totally a valid strategy um an upside to this is you can claim more frequently if you're going across enough and the gas is friendly in that way um this does some of the same stuff as the other one where when you're about to issue this sweep it'll say in the top like roughly what's going to happen what you should expect to receive and so this kind of lets you give give a little confidence about what's going to happen um should have said this first a huge caveat to this is is your withdrawal address needs to be a safe to use rocket sweep for batch

transactions so you can do this you can use the claiming or sorry the viewing just looking at your node seeing how it's doing regardless of your setup you can be on all nodes you can be running in your basement you can have your withdrawal address set to a weird split contract you can still pull up the note address and just see what's sitting there um but to actually issue a sweep what this is doing is it's going to batch up the transactions and then send it off to the safe transaction service which is what your the nosis safe uses to propose a transaction to your multisig um which then has like its own neat nice tooling I have no affiliation with them but they they let you simulate the transaction confirm that I'm not full of when I say all this stuff on here there's nice things there so

there's like if if you are familiar with safes and multi- sigs then this is a great tool to use if you're not uh consider getting familiar with saf before trying to do anything like this just cuz it's its own kind of thing to get your head around like create one on a L2 that's cheap and just play around with some stuff um this is a little bit of a obviously this is your your mini pool so you don't want to like screw around with it anyways but um so yeah so to actually sweep you do need a safe that wasn't clear um some facts and I'm happy to take questions in a second but some facts about this are people some common questions are what are the gas Savings of doing this like what do I save by

like batching them all um my rule of thumb is like 20 to 30% if you have enough mini pools to make it make sense if you have less than 10 it doesn't always make sense if you have less than three it almost certainly doesn't make sense it does theoretically like if you kind of look through it but some people like to use it even if they have like five or so because it still is just like a bookkeeping single transaction execute it can just be nice for keeping things organized um but you'll see the biggest gains the more you have and in terms of like comparing it to Mega pools Mega pools are going to be awesome this this if this gives you say like best case 30% savings this Mega pools will give you 98 to 99% savings so it's it's just a totally different thing

so um one obn obious next iteration for Rocket sweep will be I'm not going to change the name but the sweeping will probably be less relevant in a mega pool world so whatever features need to be sort of built into this to support that although the transition might be slow um so this is a slide again I asked yeah like talk about safety and so this is what it kind of spit out but so some of the things to think about and I've my habit with crypto stuff is when I'm playing with a protocol I tend to make my own little interfaces to things to kind of get my head around the protocol and how it works and things like that so this when I happen to share and publish but there is I it's very nerve-wracking to put out a website that people and you

encourage people to connect their wallet to issue high value transactions against because one if I screw up that sucks and like there's real liability and and other things there two it makes me a Target personally someone like compromises me or my security stuff they can infect the front end of Rocket sweep and that's something that you all should be concerned about um and then there's also things of like the RPC provider I'm using to pull data from is another like kind of a attack Vector to be concerned about um as I the first time I came out with this I got a couple like anonymous messages like hey how are you doing this is there something way I can do like basically asking for all of those things to be sort of addressed so it's all open Source I would actually encourage you to try checking out the source code and

running it yourself locally um all it needs is an RPC provider which is in the environment file you can set your own um it the other sources of data are when the reward epics are published uh they go to ipfs sometimes um lately there have been some issues so and so there's like some it has to pull the the the rewards files it uses the data on chain to verify that they're good so there is some trust there or there's some verification there um there's another oh and also U patches and invis have like a ongoing rewards tree for the current epic that it's using to give you that little preview if you've ever used it it gives you a little preview of the upcoming one

um I'm not generating any of that data uh and then last of all there's also a hosted version of this on ipfs itself so like rocket sweep itself lives on Rocket sweep. e. link I think um the only downside is I don't have it automatically publishing there every time we do changes so I think it's a couple versions old um having other security things I think that's it um the last slide I was going to just talk a little bit about like my hit list of things that are on my backlog that I'd like to get to eventually um It's relatively short mostly there's a there's a big performance refactor that I've just been putting off until there's more compelling reasons to work on it um it for most people it doesn't matter

but if you have hundreds of mini pools it does take a couple seconds to load um so there's ways to make that much faster uh there's reacting to all the cool stuff coming in h Houston I don't know where we landed on that depends if you're in New York uh and then there's so one of my goals for this talk was also to get some feedback from everybody about what they their wish list for features and things on but I'll take a round of applause first f

Related talks