hackquest logo

Super Salary

dApp to allow companies to delegate employees the cash of their salaries every period.

Videos

Description

Super Salary App

Super Salary App is a decentralized application (dApp) that allows companies to securely and automatically delegate periodic token transfers (specifically USDC) to their employees' wallets as part of their salary compensation. The application uses MetaMask Smart Accounts Kit technology to enable automated transactions with advanced permissions.

Features

  • Secure MetaMask connection: The application connects to the company's wallet through MetaMask.

  • Smart Accounts: Support for upgrading regular accounts to Smart Accounts for advanced features.

  • Token delegation: Companies can delegate permissions to transfer USDC to employees periodically.

  • Flexible configuration: Companies can configure the amount, frequency, and duration of transfers.

  • Blockchain transparency: All transactions are recorded on the blockchain for transparency.

  • Base Sepolia network: The application operates on the Base Sepolia network (chainId 84532).

  • USDC token: Default use of USDC as the token for salary delegations.

Requirements

  • MetaMask Flask (version 13.5.0 or higher)

  • Modern web browser

  • User account with sufficient funds on Base Sepolia

How to use the application

1. Initial setup

  1. Make sure you have the MetaMask Flask extension installed in your browser

  2. Open the application in your browser (by default at http://localhost:3000)

  3. Connect your company wallet using the "Connect MetaMask" button

2. Upgrade to Smart Account (if needed)

  1. After connecting your wallet, verify if it's already a Smart Account

  2. If not, click "Check Status" to confirm

  3. If your account is not a Smart Account, click "Upgrade to Smart Account"

  4. Follow the instructions in MetaMask to complete the upgrade

  5. Wait for the transaction to be confirmed

3. Configure token delegation

  1. Navigate to the "USDC Delegation for Employees" section

  2. Enter the employee's wallet address in "Employee Wallet Address"

  3. Specify the amount of USDC to transfer in "Amount per Period (USDC)"

  4. Select the transfer frequency in "Period (seconds)"

  5. Select the total duration of the permission in "Duration (seconds)"

  6. Click "Delegate USDC" to start the process

4. Permission management

  • You can revoke permissions at any time through the MetaMask interface

  • The application does not have direct access to your funds, only acts with granted permissions

  • All permissions have an expiration date as configured

Progress During Hackathon

I built this proof of concept for the hackathon, validating the opportunity with some employers.

Tech Stack

Next
Web3
Node
Team Leader
Nnescampos
Sector
DeFi