SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. describe("when the stream did start but not end", function() {
  2.   beforeEach(async function() {
  3.     await advanceBlockAtTime(
  4.       now
  5.         .plus(STANDARD_TIME_OFFSET)
  6.         .plus(5)
  7.         .toNumber(),
  8.     );
  9.   });
  10.  
  11.   describe("when the withdrawal amount is within the available balance", function() {
  12.     const amount = new BigNumber(5).multipliedBy(1e18).toString(10);
  13.  
  14.     it("makes the withdrawal", async function() {
  15.       const balance = await this.token.balanceOf(recipient);
  16.       await this.sablier.withdraw(streamId, amount, opts);
  17.       const newBalance = await this.token.balanceOf(recipient);
  18.       balance.should.be.bignumber.equal(newBalance.minus(amount));
  19.     });
  20.   });
  21. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top