We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f50d60b commit 894cff7Copy full SHA for 894cff7
1 file changed
contracts/stream_contract/src/lib.rs
@@ -176,6 +176,7 @@ impl StreamContract {
176
/// # Errors
177
/// - `InvalidAmount` — `amount` ≤ 0.
178
/// - `InvalidDuration` — `duration` is 0.
179
+ /// - `InvalidRate` — `net_amount / duration` rounds to zero.
180
/// - `InvalidTokenAddress` — `token_address` is not a token contract.
181
pub fn create_stream(
182
env: Env,
0 commit comments