kitblake
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    #### [HackFS-2021](https://showcase.ethglobal.co/hackfs2021) Project User Story # Filament Finance In the third decade of the 21^st^ century the global financial system went through a cataclysm. Inflation had gone negative. People had to pay a bank to hold their savings. Money had gone digital. People began storing their cash in their own digital wallets and managing their investments themselves. This is how it worked. This story has four roles: 1. **The Employer** is a big tech company that pays salaries in cryptocurrency. 2. **The Employee**, Emmy, is a worker, barely scraping by, but has some savings. 3. **The Lender** is a somewhat nefarious service that provides bridge loans. 4. **The DeFi Site** is a nimble startup pushing the envelope of finance. When Emmy got hired her Employer created a contract. It wasn’t on paper, it was a ‘smart contract’, a software agreement that codifies terms and executes preprogrammed actions. Emmy digitally signed it using her cryptocurrency wallet. Then the contract sent her an NFT. That token acts as an anchor for her incoming salary. Her income streams to the NFT using [Superfluid](https://superfluid.finance/) technology. ## Filament Dapp Emmy uses the Filament app, which is kinda like Zapper or Zerion but works more like a bank. It provides a view on her main Ethereum address and makes managing cash flows simple. Emmy has worked for awhile but right now she needs some urgent cash so she goes to the Lender and requests a loan for a few weeks. The Lender says: > “Ok, you look pretty trustworthy. You have a proven income from an established company so we’re confident that you can pay us back. We’re gonna draw up a contract.” The Lender needs some sort of collateral. If the Employee has a track record that’s good and makes it a low-risk loan but still, the Employee could end up in financial trouble or get fired and default on the loan. So the Lender says to Emmy: > “Hey, we need something to guarantee the loan. Ya know, anything could happen. Tomorrow you could get hit by a bus. We gotta have some collateral. Can you give us a Swiss watch or something?” Emmy says: > “Well, I don’t have a Swiss watch. But I do have an NFT! It’s the anchor for my incoming salary. What I’ll do is send that NFT to your contract. As long as it’s there, my salary will stream in. When the loan & interest is repaid the contract can send the NFT back to me.” The Lender figures that’s sort of an advance escrow and feels secure as the risk of the loan is thereby much lower: > “Ok. We got a deal.” Using a template, the Lender created the contract and deployed it. When Emmy sent her salary anchor to the contract, the contract made the loan to Emmy. Time went by. The Lender kept a wary eye on the streaming payments but there were no surprises so no action was required. When the loan got paid off the contract executed the closing clauses, sent the anchor NFT back to Emmy, and gave both parties a Trust Point. ### Payments Emmy received a notice from the city. It was tax time. As usual, the value of her place had gone up and the tax with it. She grumbled while launching the Filement app. Checking the overview, she saw that last year’s tax payment was still flowing but it would halt next month. She tapped *New Streamer*, imported the parameters from the tax bill, and checked the end date. When Emmy tapped the *Create* button an alert popped up: :::info Are you sure you want to`content:JSON.stringify(metadata)`? ::: Wtf. Emmy snorted, muttered “Friggin beta version”, and hit *Don’t ask me this again*. Then the app minted an NFT into her wallet. The new token’s visual asset and metadata were stored on IPFS via [nft.storage](https://nft.storage). That ensured it was both immutable and universally accessible. Emmy sent the NFT to the city’s address. The token would anchor her streaming payment throughout the next year. She got a discounted rate because the city likes streaming money. ### Finances In the Filament dashboard Emmy noted that the APY (annual percentage yield – Yield is compounded while Rate is not) on one of her savings deposits had dropped. She decided to move the tranche to another DeFi platform her girlfriend had told her about that offered insane rates. She went to the site, logged in with her wallet, and got a message: > “Welcome to our service! We just need you to do KYC.” She sighed and switched to ipfs.id. This was another crypto wallet but instead of holding currencies it stored her identity info. She chose to create a subset record, selected the attributes the DeFi site had requested, encrypted it using the site’s public key, and saved the record on [web3.storage](https://web3.storage). Then she went back to the service and input the record’s URI. > “Thanks for identifying Emmy! Welcome on board!” Just to be sure, Emmy went and checked the record. The DeFi site was indeed following best practice, operating under the assumption it would inevitably get hacked and not storing any customer data on its systems. The site had negotiated a Filecoin contract to preserve the record. It now had a TTL (time to live) of 7 years to fulfill the regulatory obligation. Good. Emmy began paging thru the offerings. She decided to invest her $[DOUGH](https://www.coingecko.com/en/coins/piedao-dough-v2) in the [Metaverse NFT Index](https://www.piedao.org/#/staking/play-dough) and then provide liquidity. The index was loaded with up & coming gaming tokens and its farm had an APR of 151%. That’s, like, pretty damn good. She made a screenshot, put the image in her collection at [myspace.storage](https://myspace.storage), and shared it with her girlfriend: ![vfat.tools PieDAO stats](https://i.imgur.com/DEzh4Fa.png) **Woohoo!** :moneybag::grin: Emmy watched the produce from the farm streaming in. Not bad. Then she noticed a new token in her Filament app. It was yet another NFT. With the DeFi site logo. Oh, credentials. Nice. Just to be sure, she inspected the token. Image and metadata on IPFS? Yup. She went to the metadata URI and examined the raw JSON. The key-value pairs contained only hashes. Check. Good going guys. Emmy wondered if the DeFi site had any openings for her skillset... *[DeFi]: Decentralized Finance *[NFT]: Non-Fungible Token *[IPFS]: InterPlanetary File System *[APY]: Annual Percentage Yield *[APR]: Annual Percentage Rate *[KYC]: Know Your Customer *[URI]: Uniform Resource Identifier *[TTL]: Time To Live *[JSON]: JavaScript Object Notation

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully