Splits Payer

SNOWETHERC20SplitsPayer contracts make it easy to route funds to a group of splits from other contracts or within inheriting contracts. This is useful for routing funds to a number of Snowcone project treasuries and other addresses within other contracts such as an NFT marketplaces.

The SNOWETHERC20SplitsPayer can be inherited from any contract to facilitate internal transactions to split groups in AVAX or any ERC-20, assuming the projects in the split group are using a payment terminal that accepts the tokens. They can also be deployed as standalone splits payer copies using SNOWSplitsPayerDeployer.

Inheriting SNOWSplitsPayer

Inheriting from SNOWETHERC20SplitsPayer will give a contract access to a public SNOWSplitsPayer.pay(...) function, a public SNOWSplitsPayer.addToBalanceOf(...)function, and two functions SNOWSplitsPayer._payToSplits(...) and SNOWSplitsPayer._payTo(...). These can be used from within the contract to route funds to a group of splits while specifying where leftover funds should go. Use the internal function if the inheriting contract has already handled receiving the funds being forwarded.

Follow instructions in Getting started to import the SNOWSplitsPayer files into a project.

Last updated

SnowconeDAO