HackMD
    • Create new note
    • Create a note from template
    • Sharing 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
    • Commenting & Invitee
    • Publishing
      Please check the box to agree to the Community Guidelines.
      Everyone on the web can find and read all notes of this public team.
      After the note is published, everyone on the web can find and read this note.
      See all published notes on profile page.
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions and GitHub Sync
    • Transfer ownership
    • Delete this note
    • Note settings
    • Template
    • Save as template
    • Insert from template
    • Export
    • Dropbox
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Dropbox
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Note settings Sharing Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Transfer ownership Delete this note
Export
Dropbox Google Drive Export to Google Drive Gist
Import
Dropbox Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing 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
Comment & Invitee
Publishing
Please check the box to agree to the Community Guidelines.
Everyone on the web can find and read all notes of this public team.
After the note is published, everyone on the web can find and read this note.
See all published notes on profile page.
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with GitHub
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# 💧 Osmotic Funding - An evolutionary step towards project sustainability [![](https://i.imgur.com/KKVzPij.jpg)](https://www.flickr.com/photos/146824358@N03/36677091156/in/photostream/) **Osmotic Funding** is a protocol built on top of Superfluid Finance and Conviction Voting to create and regulate project funding streams based on the amount of interest a community gives them. Community preference is revealed continuously, since tokenholders are able to update their preferences (change their stake) at any moment. A community of tokenholders (DAO) can use Osmotic Funding to decide which parts of the DAO should receive funding and how much. Funding proposals need a minimum amount of support to start receiving funds. Once the flow is open, they can grow or shrink over time, depending on the stake with which the token holders are supporting the proposals. ## Mechanism We have prepared a desmos for displaying the different parameters and calculations the algorithm uses to distribute funds. **[>> Please go ahead and play along with it <<](https://www.desmos.com/calculator/uximezgfvq)**. Depending on the distribution of staked tokens and the available funds in the pool, we can calculate which will be the rate of each proposal with: $$r_\infty(i) = B · \left ( 1 - \sqrt{\frac{T}{max(T, s_i)}} \right ) \\ \textrm{where}\ T = \gamma · (s_0 + s_1 + ... + s_n) + T_0\\\textrm{ and }\ B = b · \beta$$ 1. The target rate ($r_\infty$) of a proposal ($i$) is the amount of funds a project should be receiving per second in the future. 2. The pool balance ($b$) is the amount of funding tokens that can be transmitted to grants. It will keep diminishing if there are no inflows that fund the contract at the same rate. 3. Max spending ratio ($\beta$) is the max percentage of the pool balance that one proposal can spend per second. 4. Threshold ($T$) is the minimum amout of staked tokens a proposal needs to start getting funded depending on amount staked on the rest of the proposals. - Threshold ratio ($\gamma$) determines the increse in the threshold for each new token staked on any proposal. - Min threshold ($T_0$) is the minimum amount of tokens required to fund a proposal when no other proposal is being funded. - Total staked tokens ($s_0 + s_1 + ... + s_n$) are the amount of tokens that are actively voting in the protocol. It plays against a proposal if new tokens are staked on other proposals. 6. Staked tokens ($s_i$) are how many tokens are staked on the proposal which we calculate the rate for. When the staked amount on a proposal ($s_i$) changes, the rate changes over time following the following formula: $$r_{t}(i) = \alpha^t · r_{0}(i) + (1-\alpha^t) · r_{\infty} (i)$$ 1. The current rate ($r_t$) of a proposal ($i$) is the amount of funds per second a proposal receives in a particular instant of time ($t$). 2. The last rate ($r_0$) 3. The exponential decay base ($\alpha$) is a number from 0 to 1 that determines the speed in which the current rate is going to reach the target rate. As you can see the formula has two parts. The first part starts with last rate and ends at zero over time. The second part starts at zero and grows up to target ratio over time. Every time the target ratio changes (due to a change in token staking), we define the current ratio as the last ratio, so the rate over time can still be a continuous formula, and we reset the timer ($t$) to zero. In order to know the amount of funds a proposal has accrued since the last time there was a stake change, we can calculate the definite integral of the current rate ($r_t$) formula over time: $$f_{t}(i) = \int_{0}^x r_t(i)\ dt= \int_{0}^x \left[\alpha^t · r_{0}(i) + (1-\alpha^t) · r_{\infty} (i) \right]dt$$ $$f_{t}(i) = \frac{\left(1-\alpha^{x}+x\ln\alpha\right) · r_\infty(i)-\left(1-\alpha^{x}\right) · r_0(i)}{\ln\alpha}$$ Because the target rate formula ($r_\infty$) does not depend on the time, we can treat it as a constant in the integral, which makes it not-so-difficult to calculate. It calculates is the area below the curve defined by the current rate formula over time, which correspond to the amout of funds, or what is the same, the average rate (of all variations of $r_t(i)$ over the period of time) multiplied by time ($t$). # Appendix ## Some research on botany We have done some research in botany in order to understand how plants distribute their resources. We hope you can * [Vascular tissue](https://en.wikipedia.org/wiki/Vascular_tissue) - plants have different types of conducting tissues: * [Xylem](https://en.wikipedia.org/wiki/Xylem) - transports water and minerals from the roots upwards. Types: * [Tracheid](https://en.wikipedia.org/wiki/Tracheid) - primitive tissue, produces softwood. * [Xylem vessel](https://en.wikipedia.org/wiki/Vessel_element) - present in most flowering plants, produces hardwood. * [Phloem](https://en.wikipedia.org/wiki/Phloem) - transports products of photosynthesis to various parts of the plant. * [Vascular bundle](https://en.wikipedia.org/wiki/Vascular_bundle) - Joins many tissues, including xylem and phloem. * [Stele](https://en.wikipedia.org/wiki/Stele_(biology)) - central part of the root or stem of a plant, which contains vascular tissue. * Most seed plant stems primary vascular tissue are vascular bundles. * [Photo gallery](https://www.flickr.com/photos/146824358@N03/35914299553/in/photostream/). * [Osmosis](https://www.biologyonline.com/tutorials/water-in-plants) - why water moves from the root to the leaves. > The presence of vessels in xylem has been considered to be one of the key innovations that led to the success of the flowering plants. ## Screenshot ![](https://i.imgur.com/cLPmZsA.png)

Import from clipboard

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 lost their connection.

Create a note from template

Create a note from template

Oops...
This template is not available.


Upgrade

All
  • All
  • Team
No template found.

Create custom template


Upgrade

Delete template

Do you really want to delete this template?

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

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

Tutorials

Book Mode Tutorial

Slide Mode Tutorial

YAML Metadata

Contacts

Facebook

Twitter

Discord

Feedback

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

Versions and GitHub Sync

Sign in to link this note to GitHub Learn more
This note is not linked with GitHub Learn more
 
Add badge Pull Push GitHub Link Settings
Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

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. Learn more

       Sign in to GitHub

      HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.

      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
      Available push count

      Upgrade

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Upgrade

      Danger Zone

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

      Syncing

      Push failed

      Push successfully