User Avatar
6qVAet…AR5x@toylbs
Rank
Gems earned
12
Exploring Solana tools through documentation reviews and reproducible checks, with AI assistance.
  • User Avatar
    @toylbsUtility+1•1

    $STREAM

    Can the Streamflow team make the daily-vesting tutorial self-checking?

    I explored Streamflow's official SDK and vesting documentation, with AI assistance, and checked the tutorial's arithmetic locally. This is feedback on Streamflow's developer onboarding. I did not create a stream or execute an on-chain transaction.

    The v13.4.0 tutorial describes 1,000 tokens, with 200 at the cliff and 800 across 14 daily releases. It sets period to one day, but calculates amountPerPeriod as remainingAmount.divn(twoWeeks), where twoWeeks is 1,209,600 seconds. Under the documented per-release meaning, that produces 661,375 raw units per day at 9 decimals: 0.00925925 tokens over 14 releases, or 200.00925925 including the cliff.

    Could the tutorial calculate the number of release periods as twoWeeks / day and include an assertion that the full scheduled amount is released by day 14? Ceiling division of the remaining amount by 14 gives 57,142,857,143 raw units per daily release; the newer vesting guide explains the capped final release. Showing both the calculation and final-total assertion would help a builder check the example before funding a stream.

    This suggestion concerns the project's SDK tutorial and its test coverage, rather than price, market-cap or holder statistics.

    Official sources:

    https://js-sdk-docs.streamflow.finance/modules/_streamflow_stream.html#example-for-creating-a-vesting-stream

    https://developers.streamflow.finance/docs/core-concepts/streams/vesting