Skip to content

freddyblockchain/AffiliateLinkPoC

Repository files navigation

MIT License

Copyright (c) 2023 FREDERIK NIELSEN MILO SP

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

by Freddyblockchain & Milo SP

Demo

https://www.loom.com/share/68ac163985f64eca8831b43dd39d15c1

Application Location

https://freddyblockchain.github.io/AffiliateLinkPoC/

Problem We Are Solving

Algorand startup's have limited ways to accurately track the KPIs of Ambassador programs and do not know what users are driving growth on their platform. Moreover, existing users have limited incentives to refer new users; plus if they do share the websites URL online they have no way to see how many new users signed up to the platform and how much trading volume they did.

Solution

We wanted to create an on-chain affiliate referral tool to incentivise existing users to share their favourite algorand startups and receive lifetime commission on their trading volume, all guaranteed by smart contracts. All whilst simultaneously providing a high growth tool for founders to leverage their user's personal network and incentivise them to relentlessly share their startup online.

How it works:

The Flow

  1. Affiliate (existing user) generates the sharing link to the Website and shares it online.

  2. newUser clicks Affiliate's referral link and signs up to Website

This is then logged and added to the box indicating that newUser signed up thanks to the Affiliate

  1. newUser goes to checkout on the Website and makes payment.

Linkbox will then look up the box to see if the user came from an Affiliate link, if so they are then added to the payout.

  1. Payout - Affiliate and Linkbox is compensated. In the payment, the box storage application is called and the payout is handled by the contract. This guarantees the Affiliate is payed out, along with Linkbox for the solution.

If Linkbox is integrated into a platform - the Affiliate's commission would come out of the platform's fee. The platform can set the Affiliates's commission.

Technology used

  • React
  • Pyteal/Beaker
  • algosdk (algorand javascript sdk)
  • purestake
  • Chakra ui
  • Github pages

Roadmap

Integrate into Algorand projects and offer new Affiliate compensation schemes.

Demo

https://www.loom.com/share/68ac163985f64eca8831b43dd39d15c1

  • The smart contract is located in AffiliateLinkPoC/src/algorand/contracts/beakerContract.py.
  • The smart contract lives on the testnet, and the app-id is : 157625321

Linkbox can be easily integrated into a platform's existing smart contracts via a group transaction that handles the payment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published