GitXplorerGitXplorer
i

PaySplit

public
2 stars
1 forks
0 issues

Commits

List of commits on branch main.
Unverified
b114174173ed21990203ac0db1c5b0103d8ba525

stylistic changes

iipsavitsky committed a year ago
Unverified
df4cce8b2dd925b0bb97e999bcf6f37ada1cb2d4

fixed axelar integration(destination chain name)

vvovunku committed a year ago
Unverified
49b85ab6199209e87ac36027e4962b3964f6f1a8

small fix

vvovunku committed a year ago
Unverified
07e8c4ee5a239ce4bbdbaabda0f12b71a6a518fc

updated readme

iipsavitsky committed a year ago
Unverified
6f4b141af2e521c680c834aa4004ecb864277110

Merge branch 'dev/axelar-linea'

iipsavitsky committed a year ago
Unverified
1c6c7f4daddca005c9040eb6a16c2f2cbeb14a35

added readme and updated contract address

iipsavitsky committed a year ago

README

The README file for this repository.

🪓 PaySplit

Imagine if an employee of a web2-based company is trying to buy a ticket to a work conference and the company wants to reimburse a part of that cost to the employee. That would take submitting checks to the financial department, taking up valuable company time and would cause a the amount of paperwork would frustrate any person. Pay Split is a Safe{Protocol} plugin that allows the employer to set limits to financial reimbursement, and employees to choose where to spend them, saving both parties lots of paperwork and nerves.

We leverage the new Safe{Core} Protocols to automate every part of the process, of both accepting, calculating and rerouting assets. The limits are set as a parameter to the smart contract. An external call to a users wallet is made through a metamask boilerplate. We started considering and implementing crosschain interoperability through Axelar - so that plugin functionality can be accessed from any chain.

📊 Structure

  • contracts - contains plugin smart contracts, deployed through hardhat
  • web - contains web interface for the plugin, automatically deployed to github-pages. Deployed with yarn.
  • web/payer - contains a bolierplate metamask wallet connection to simulate a user wallet. Deployed with yarn.

🔗 Principal of work (single chain)

  1. The owner of the contract sets the reimbursement rate.
  2. The employee initiates the payment to a third party.
  3. Employees money accumulates on the plugin account.
  4. The requestet transaction is sent to the third party from the SAFE Wallet.
  5. All the funds from the plugin account can be "drained" to the SAFE Wallet on request of the owner.

🔗 Related Links

Linea Smart contract transaction path:

  1. sender on Linea
  2. axelar gateway
  3. the other side of the gateway
  4. plugin contract on gateway

https://goerli.etherscan.io/tx/0xd8295d845d0b94810dee5152dfe1e4a7e14eae71adbc43f319bd01007053c3fe - transaction to the plugin on the other side

Linea deployment RPC - a requirement for Linea bounty