Skip to content

Commit

Permalink
Merge pull request 0xSplits#2 from SweetmanTech/sweets/distributeETH
Browse files Browse the repository at this point in the history
I fix docs for distributeETH method.
  • Loading branch information
wminshew authored Apr 16, 2022
2 parents b088c61 + 820e286 commit 15822b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions pages/flow-of-funds.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ Splits may receive funds via two paths:

1. Simply send funds to the Split's address via `send`, `transfer`, or `call`.
These funds will be flushed to `SplitMain` the next time
`distributeETH(address)` is called.
[`distributeETH`](/smartcontracts/overview#distributeethaddress) is called.
1. If the Split is itself a Recipient of another Split, it will receive funds
when `distributeETH(address)` is called on the upstream Split.
when [`distributeETH`](/smartcontracts/overview#distributeethaddress) is
called on the upstream Split.

### Distributing Funds

Once funds have arrived at `SplitMain`, funds may be distributed by any third
party willing to pay the gas to call `distributeETH(address)`. This function
party willing to pay the gas to call
[`distributeETH`](/smartcontracts/overview#distributeethaddress). This function
only needs to be called once in order for all Recipients to
[withdraw](/core-concepts#withdraw) their share of the
[balance](/core-concepts#balance). The party who calls this function will
Expand All @@ -33,10 +35,10 @@ for paying the gas needed to execute the function.
### Withdrawing Funds

Once funds have been distributed, they are now able to be withdrawn by users by
calling `withdraw(address)`. A user can call this function via the web app,
or any third party can call this on the account's behalf. This is necessary,
since Recipients can be smart contracts which can't execute the `withdraw`
function themselves (they must, however, still be able to receive funds).
calling `withdraw(address)`. A user can call this function via the web app, or
any third party can call this on the account's behalf. This is necessary, since
Recipients can be smart contracts which can't execute the `withdraw` function
themselves (they must, however, still be able to receive funds).

### Summary

Expand Down
2 changes: 1 addition & 1 deletion pages/smartcontracts/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ can read their audit report

Create a new [`SplitProxy`](#splitproxy)

### `distributeETH(address)`
### `distributeETH`

Split ETH for Split `address` which allows Recipients to withdraw

Expand Down

0 comments on commit 15822b4

Please sign in to comment.