Inspiration

It takes a lot of time, money and resources to bring a drug to market to treat a disease.

What it does

Pay For Success(PFS) is a new financial model for re-purposing off-patient medicines for developing new therapy without requiring to obtain regulatory approval for large clinical trials, financial burden and decades of clinical trials, testing and manufacturing.

How we built it

We have a Solidity smart contract that lists the Payors who deposit the fund to the contract. The fund stays in the Escrow account of the Contract. The payer is issued a PFC NFT. This NFT minting uses Chainlink VRF to create an image associated with NFT as per the contribution so that each NFT is unique.

The payor can pay using ETH or PFC Token (ERC20).

The other side of the project, there is an impact investor who funds Clinical Research for off-patent drugs for its efficacy to treat new diseases.

It uses Superfluid to send money from impact investor to the research organization.

When the result is available, the research organization uploads artifacts to the IPFS/Filecoin storage. This event triggers an off-line validation of the test result by a group of validators chosen by the Validator DAO contract.

The validator sign the transaction validating the test result.

This event triggers payout to investors from Payor's Escrow account into the IP-NFT which may have fractionalized owners.

The UI was implemented using React, Moralis SDK.

Challenges we ran into in completing the UI for all the scenarios. We have completed the Smart contract side of the project.

Accomplishments that we're proud of creating smart contract, writing test cases in hardhat, using Chainlink VRF for generating random images for minting NFT, storing NFT images in IPFS/Filecoin.

What we learned how to stores files in decentralized storage, code smart contracts in Solidity, and use Moralis SDK for React UI, integrate with Superfluid APIs

What's next for Pay For Success

We will complete the remaining UI aspect of the project and trying to raise money for this.

Built With

Share this project:

Updates