masaun / social-impact-voucher

Social Impact Voucher (built on Union Finance)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Social Impact Voucher (built on Union Finance)

Overview

  • This is the smart contract for realizing social impact voucher that supporter members (who trust NPOs) can vouch for NPO members and NPO members can borrow vouched-amount of assets from their credit line.
    • Social Impact Voucher smart contract is built on Union Finance: https://docs.union.finance/protocol-overview/plain-english-overview
    • Social Impact Voucher smart contract bring alternative way of fundraising to NPOs (Non Profit Orginaizations).
      • This is not the way of using bond like SIB (Social Impact Bond) but the way of using voucher based on off-chain trust as SIV (Social Impact Voucher).
      • Once supporter members (who trust NPOs) vouch for NPO members, NPO members can borrow vouched-amount of assets from their credit line.
    • A use case of "Many -> 1" in use cases of Union Finance is used in this smart contract: https://docs.union.finance/protocol-overview/master

Workflow

  • NOTE:
    • Once a NPO user register as a NPO member, they receive a NPO NFT as a proof of NPO member.
      • Only NPO NFT holder can receive vouched-amount in uDAI (uToken).

  • Diagram of workflow workflow_social-impact-voucher

Installation

    1. Install modules
yarn

    1. Compile smart contracts
yarn compile

Test (Mainnet-forking test)

  • Scenario Test
yarn test-scenario:SocialImpactVoucher

Demo


Resources


About

Social Impact Voucher (built on Union Finance)


Languages

Language:JavaScript 51.7%Language:Solidity 48.2%Language:Shell 0.1%