# OpenSea - Smart contract - Split Revenue

**URL:** <https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369>\
**Category:** Developer Wanted\
**Created:** [January 25, 2022, 1:45pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369 "2022-01-25T13:45:59Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fatih](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/fatih/32/12646_2.png) [@Fatih](https://forum.openzeppelin.com/u/Fatih)\
**Post date:** [January 25, 2022, 1:45pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/1 "2022-01-25T13:45:59Z")

</div>

Hello Everyone,  
We are a graphic design studio and we have a client who wants us to mint his design works to the OpenSea as NFTs and share the revenue when NFTs sold. (80-20%)  
So, we are willing to find a solution to split the revenue in two different addresses (one address will receive 80% of the revenue and the other address will receive 20%) automatically. Is this possible, or anyone is willing to do this job for us?

---

<div class="post-metadata">

**Author:** ![Fatih](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/fatih/32/12646_2.png) [@Fatih](https://forum.openzeppelin.com/u/Fatih)\
**Post date:** [January 25, 2022, 2:17pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/3 "2022-01-25T14:17:29Z")

</div>

Thank you for the answer. I'd appreciate if I could get more ideas from the community.

---

<div class="post-metadata">

**Author:** ![asmel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/asmel/32/11994_2.png) [@asmel](https://forum.openzeppelin.com/u/asmel)\
**Post date:** [January 25, 2022, 3:57pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/4 "2022-01-25T15:57:05Z")

</div>

I do not see any problem in the division of payments, since if both have access to the wallet that will receive the ether from openSea, the division can be done manually since everything is registered in the blockchain

---

<div class="post-metadata">

**Author:** ![asmel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/asmel/32/11994_2.png) [@asmel](https://forum.openzeppelin.com/u/asmel)\
**Post date:** [January 25, 2022, 3:58pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/5 "2022-01-25T15:58:02Z")

</div>

but if it is your own marketplace for your company, if you can make a contract that divides those commissions

---

<div class="post-metadata">

**Author:** ![Fatih](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/fatih/32/12646_2.png) [@Fatih](https://forum.openzeppelin.com/u/Fatih)\
**Post date:** [January 25, 2022, 4:12pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/6 "2022-01-25T16:12:38Z")

</div>

I'm not sure, but seems like "multi-signature wallets" are best to solve this problem. So "the safe box wallet" will receive the revenue from OpenSea, then the both parties will calculate the share and make a transfer, if both of them agrees and approves it from multisig wallet... Is this mentality correct?

---

<div class="post-metadata">

**Author:** ![asmel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/asmel/32/11994_2.png) [@asmel](https://forum.openzeppelin.com/u/asmel)\
**Post date:** [January 25, 2022, 4:34pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/7 "2022-01-25T16:34:54Z")

</div>

that would be the best option to your problem

this service is a good option  
[https://gnosis-safe.io/](https://gnosis-safe.io/)

---

<div class="post-metadata">

**Author:** ![fortunesoft](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/fortunesoft/32/12684_2.png) [@fortunesoft](https://forum.openzeppelin.com/u/fortunesoft)\
**Post date:** [January 27, 2022, 4:15am UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/8 "2022-01-27T04:15:05Z")

</div>

For the best smart contract development

> **[Top Smart Contract Development Company | Build Smart Contract Applications](https://www.fortunesoftit.com/smart-contract-development-company/)**
>
> We are a leading smart contract development company. Our smart contract development services leverage the power of leading tech stacks and innovation in the Blockchain world to deliver highly secure and reliable smart contracts. Build smart contract...

---

<div class="post-metadata">

**Author:** ![ihorbond](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/ihorbond/32/12863_2.png) [@ihorbond](https://forum.openzeppelin.com/u/ihorbond)\
**Post date:** [February 2, 2022, 5:15am UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/9 "2022-02-02T05:15:52Z")

</div>

alternatively, the payout address could be a payment splitter smart contract contract

> **[Payment - OpenZeppelin Docs](https://docs.openzeppelin.com/contracts/2.x/api/payment)**

---

<div class="post-metadata">

**Author:** ![Fatih](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/fatih/32/12646_2.png) [@Fatih](https://forum.openzeppelin.com/u/Fatih)\
**Post date:** [February 2, 2022, 7:28am UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/10 "2022-02-02T07:28:24Z")

</div>

Thank you @ihorbond for your helpful reply. Can you do this contract on behalf of us and give us a quotation?

---

<div class="post-metadata">

**Author:** ![ihorbond](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/ihorbond/32/12863_2.png) [@ihorbond](https://forum.openzeppelin.com/u/ihorbond)\
**Post date:** [February 2, 2022, 6:14pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/11 "2022-02-02T18:14:31Z")

</div>

Sure, I've done it for one of my clients before. Please reach out

- telegram: @ibodnarchuk
- discord: ihorbond#5688
- email ihor at [codespaceinc.co](http://codespaceinc.co)

---

<div class="post-metadata">

**Author:** ![eric\_ny](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/eric_ny/32/12861_2.png) [@eric\_ny](https://forum.openzeppelin.com/u/eric_ny)\
**Post date:** [February 2, 2022, 7:25pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/12 "2022-02-02T19:25:10Z")

</div>

Just wondering why the need for an extra splitter contract? Can one just make sure the contract knows of the other party's address and include this logic inside the withdraw function?

Some pseudo code for example:

```auto
withdraw() public payable onlyOwner {
  payable(owner()).transfer( .2 * balance );
  payable(<some other party's address>).transfer( remainder of balance );
}

```

Then when the owner conducts a withdrawal both parties get the proper amounts. Or maybe augment this where either party can initiate a withdrawal.

---

<div class="post-metadata">

**Author:** ![ihorbond](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/ihorbond/32/12863_2.png) [@ihorbond](https://forum.openzeppelin.com/u/ihorbond)\
**Post date:** [February 4, 2022, 9:53pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/13 "2022-02-04T21:53:02Z")

</div>

This could work of course. What I don't like about this approach is that with onlyOwner one person would be in control of withdrawal, what if they refuse ? or lose access to wallet or get hacked ? In case we use AccessControl and assign each party role to be able to do the withdrawal we now have to keep track and makr sure one party can't withdraw more than they should leaving the other party with nothing. Payment splitter is also nice for secondary marketplace royalties splitting since OpenSea for example only ever sends payments to a single address.

P.S. withdraw function shouldn't be payable, it doesn't receive any ether and probably external (unless called from smart contract code somewhere which would be rare)

---

<div class="post-metadata">

**Author:** ![zaccaro80](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/zaccaro80/32/14247_2.png) [@zaccaro80](https://forum.openzeppelin.com/u/zaccaro80)\
**Post date:** [April 3, 2022, 10:10am UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/14 "2022-04-03T10:10:30Z")

</div>

@ihorbond i was thinking the same but my doubt is, what about the initial public purchase?  
will the "split smart contract address" be used also for the initial purchase of the NFT?

---

<div class="post-metadata">

**Author:** ![avi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/avi/32/15238_2.png) [@avi](https://forum.openzeppelin.com/u/avi)\
**Post date:** [June 7, 2022, 12:11pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/15 "2022-06-07T12:11:29Z")

</div>

@ihorbond Thanks for sharing your insights on this topic. I am a dev myself, and I am implementing a payment splitter for OpenSea royalties.

I am not using the `PaymentSplitter` module by OpenSea.

Instead, I plan to create a `withdraw` function that splits and withdraws `ETH` and `WETH` balance to the parties in the correct proportion.

All parties will be able to access it as we will not use `onlyOwner`. Instead, we will just block access for everyone except the concerned parties using the following code.

```nohighlight
require(msg.sender == addr1 || msg.sender == addr2 || msg.sender == owner(), "Invalid sender");

```

What do you think about this approach? I don't see any problems with it.

---

<div class="post-metadata">

**Author:** ![LBargmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/lbargmann/32/15902_2.png) [@LBargmann](https://forum.openzeppelin.com/u/LBargmann)\
**Post date:** [August 2, 2022, 5:44pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/16 "2022-08-02T17:44:10Z")

</div>

@avi Is your split contract working? I am also having trouble to get OpenSea royalties split (I am implementing IManifold interface). Thanks!

---

<div class="post-metadata">

**Author:** ![comeonline](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/comeonline/32/7800_2.png) [@comeonline](https://forum.openzeppelin.com/u/comeonline)\
**Post date:** [August 3, 2022, 3:45am UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/17 "2022-08-03T03:45:41Z")

</div>

use splitter contract instead of wallet addy on opensea. so once you get any fund in your split contract, amount can be transferred as per the set parameters.

---

<div class="post-metadata">

**Author:** ![LBargmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/lbargmann/32/15902_2.png) [@LBargmann](https://forum.openzeppelin.com/u/LBargmann)\
**Post date:** [August 3, 2022, 4:20pm UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/18 "2022-08-03T16:20:08Z")

</div>

Looks like this is the only way right now. Thanks!

---

<div class="post-metadata">

**Author:** ![EVM\_DEV](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/evm_dev/32/15924_2.png) [@EVM\_DEV](https://forum.openzeppelin.com/u/EVM_DEV)\
**Post date:** [August 4, 2022, 11:17am UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/19 "2022-08-04T11:17:27Z")

</div>

Hello. I see you are looking for a professional developer for your open sea payment splitter, if you still need help **send a message to my telegram: @evm_dev**  
Regards!!

---

<div class="post-metadata">

**Author:** ![Roory](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/roory/32/21554_2.png) [@Roory](https://forum.openzeppelin.com/u/Roory)\
**Post date:** [October 4, 2024, 11:22am UTC](https://forum.openzeppelin.com/t/opensea-smart-contract-split-revenue/23369/20 "2024-10-04T11:22:38Z")

</div>

Hi Fatih,

We have developed a prototype of such a thing based on ERC1155:  
You initiate an ERC1155 nft and multiple accounts are the holders. The amount of NFT coins held by each then define the split factor.

> <https://github.com/open-compensation-token-license/octl/blob/main/contracts/projectfellows/Fellowships.sol>

In case your problem is still active- let me know and I will provide details howto use.

Best Roory
