Split Money (WIP)
This feature is introduced in Fundme.js v0.1.7.
Fundme.js can reuse revenue sharing weights established beforehand to split a fixed amount of number. For example, when a page calls fund()
that share among five payment pointers with the same weight, splitting 100
amount will return an array with five objects, each contains 25
(100 divided by 5 payment pointers) point each.
import { fund, splitFund } from "fundme";
fund([
"$wallet.example.com/test-1",
"$wallet.example.com/test-2",
"$wallet.example.com/test-3",
"$wallet.example.com/test-4",
"$wallet.example.com/test-5"
]);
// sometimes later on
splitFund(100);
Last updated
Was this helpful?