jmonteer
    • 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

      This note has no invitees

    • 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
    • Note Insights New
    • Engagement control
    • Make a copy
    • 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 Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy 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

    This note has no invitees

  • 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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Protocol Due Diligence: [ Notional Lending ] ## Overview + Links - **[Site](https://notional.finance/)** - **[Team](https://notional.finance/about/)** - **[Gov](https://notional.finance/governance)** - **[Docs](https://docs.notional.finance/notional-v2/)** - **[Open Zeppelin protocol audit - December 2020](https://blog.openzeppelin.com/notional-audit/)** - **[ABDK protocol audit - September 2021](https://github.com/notional-finance/contracts-v2/blob/master/audits/ABDK%20-%20Notional%20V2%2C%20Sept%201%202021.pdf)** - **[Code4rena protcol report - October 2021](https://code4rena.com/reports/2021-08-notional/)** - **[ABDK protocol audit - November 2021](https://github.com/notional-finance/contracts-v2/blob/master/audits/ABDK%20-%20Notional%20V2%20Fixes%2C%20Nov%201%202021.pdf)** - **[Certora final report - November 2021](https://github.com/notional-finance/contracts-v2/blob/master/audits/Certora%20-%20Formal%20Verfication%20Report%2C%20Nov%201%202021.pdf)** - **[Open Zeppelin governance audit - November 2021](https://blog.openzeppelin.com/notional-v2-audit-governance-contracts/)** ## Rug-ability **Multi-sig:** Gnosis multi-sig owned by Teddy Woodward and Jeff Wu, the main personalities related to the protocol, acting as CEO and CTO **Number of Multi-sig signers / threshold:** 3/ 5, 2 internal to the protocol (Teddy Woodward and Jeff Wu) and 3 investors (Regan Bozman of Lattice Capital, Richard Chen of 1Confirmation, and Getty Hill from GFX Labs) **Upgradable Contracts:** Yes, UUPS Proxy implemented redirecting the to implementations of the contracts containing: - VIEWS - ACCOUNT ACTIONS - TRADE ACTIONS - GOVERNANCE ACTIONS - ERC1155 ACTIONS - INITIALIZE MARKETS - LIQUIDATE MARKETS - LIQUIDATE FCASH - NTOKEN ACTIONS - NTOKEN REDEMPTIONS **Decentralization:** Governance is done via the NOTE token (ERC20), used for proposing upgrades and voting proposals. Proposals can be canceled by the guardian for any reason, the guardian is intended to disappear by abdication. There is no timelock between upgrades. ## Misc Risks - The strategy is ever-winning as it's a fixed rate APY but incurs in losses if the positions are closed before maturity (needs to pay (i) the cost of borrowing which may be higher than the APY as IRs may have moved and (ii) the Notional fee: 0.3% APY), therefore, position in the withdrawal queue is critical to avoid closing active positions unnecessarily ### Audit Reports / Key Findings - **[ABDK's final audit](https://github.com/notional-finance/contracts-v2/blob/master/audits/ABDK%20-%20Notional%20V2%20Fixes%2C%20Nov%201%202021.pdf)** found 92 issues, 88 Minor, 1 Moderate and 3 Major - **[Certora's final report](https://github.com/notional-finance/contracts-v2/blob/master/audits/Certora%20-%20Formal%20Verfication%20Report%2C%20Nov%201%202021.pdf)** identifies 1 high severity issue, 6 medium severity issues and 6 low severity issues. Additionally they make 13 optimization recommendations - **[Code4rena's findings & analysis report](https://code4rena.com/reports/2021-08-notional/)** describes 38 unique vulnerabilities, 10 with HIGH severity, 7 with MEDIUM severity and 21 with LOW severity. They also found 13 non-critical recommendations and 8 gas optimizations The **Notional CTO** confirms that all Major/ High severity issues have been corrected and incuded in the latest codebase ### Anything else The protocol represents a great add for yVaults as it adds a constant APY to a % of the yVault's funds, reducing the exposure to extreme volatilities of the crypto markets - The strategy implements a boolean toggle to explicitly realize losses instead of liquidating positions as soons as the vaults asks for debt payment - If the strategy's position is close to maturity, there is a harvest with increased funds for the strategy (higher debtRatio or more deposits) and there is a minTimeToMaturity for investing, the current position is rolled into the next market and thus profits are locked for another 3M at least. So ideally profit-taking harvests should happen right after position maturities (late Decemeber, late March, late June and late September) # Path to Prod ## Strategy Details - **Description:** Allocate a percentage of the vault's assets to a fixed rate lending market to obtain a fixed APY - **Strategy current APR:** 2%+ for crypto, 10%+ for stables - **Does Strategy delegate assets?:** TBC - **Target Prod Vault:** WETH, WBTC, DAI and USDC - **BaseStrategy Version #:** 0.4.3 - **Target Prod Vault Version #:** 0.4.3 ## Testing Plan ### Ape.tax - **Will Ape.tax be used?:** - **Will Ape.tax vault be same version # as prod vault?:** - **What conditions are needed to graduate? (e.g. number of harvest cycles, min funds, etc):** ## Prod Deployment Plan - **Suggested position in withdrawQueue?:** Last, the key for this strategy is to leave positions until maturity as closing positions before maturity incurs in a fee - **Does strategy have any deposit/withdraw fees?:** Yes, Notional keeps a 0.3% APY per position, plus exiting a position before maturity adds the cost of borrowing - **Suggested debtRatio?:** 10-40% depending on the vault's APY - **Suggested max debtRatio to scale to?:** 50% ## Emergency Plan - **Shutdown Plan:** - **Things to know:** - **Scripts / steps needed:** - **Is it safe to...** - call EmergencyShutdown - remove from withdrawQueue - call revoke and then harvest

    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