With the launch of Starpath V2, the new incarnation of Star Atlas’ referral program, we thought it would be good to have a referral link for our guild, Aephia Industries.
Before we go any further, we encourage everyone to click the referral link of the actual person who got them into Star Atlas. However, we want to provide a backup option that may help build out our guild’s treasury.
Now, it was clear from the outset that referral kickbacks should not end up in the wallet of any one person. Instead, they should end up in a multi-sig, preferably the one we use for our Guild Treasury.
However, as official support for DACS (Star Atlas guilds) is not yet live, there currently is no support for such a feature from the team. If we wanted to get this done, we had to find a different path.
So, we reached out to Squads, the most popular multi-sig solution on Solana, and Buddy Link, the providers of the new referral system.
Now, it just so happens that the Squads team is on the verge of launching a completely overhauled new multi-sig solution: version 4. As our treasury still runs on version 2 of Squads, we were due for an upgrade.
With help from both teams, we were able to conjure up a (command-line) script, that does two things:
- Create a brand new Squad V4 MultiSig
- Create a Buddy Link referral account and hook it up to the Squad, ensuring kickbacks will flow to the Squad’s Vault
Squads V4 is not officially live yet. However, the programs are already deployed to mainnet!Furthermore, Squads V4 is about to go live any day now. The team assured us that they are releasing V4 this month (September).
We Are Star Atlas
Now, we do not want to keep this script just to ourselves. Other guilds and organizations in the Star Atlas community may want to create a referral link in a similar fashion.
For that reason, we have open-sourced our code base and provided instructions to make sure you can set this up in a similar fashion as well!
One additional perk of running this script: you get to choose your own referral link 😉
You can find the source and instructions on our GitHub!
There currently is no way to claim rewards (come again?! Yep..). The short-term goal is to extend the script so you can choose to create multi-sig proposals to claim your pending rewards. This should not be too much work, but there simply was not enough time left.– Update October 14th: this has been resolved since then. See the README.md. for instructions!
- The script requires you to pass along the private key of one of your accounts. The account only needs 0.07 SOL, but as with all 3rd party software, best to walk through the code and have a good look before trusting it. And, of course, make a brand new account with only 0.07 SOL!
Major thanks go to the Squads and BuddyLink teams for dedicating their time and brains to help this solution come to fruition! Work went on day and night, even though both teams are/were in crunch mode to get V4 and the setup for Star Atlas out of the door at the very same time. Without their help, we would not have made it in time, or even gotten close!
Special thanks go to:
- Valentin (Squads)
- Jo (Buddy Link)
- Danny (Buddy Link)
Check these projects out here: