sablier-labs / flow

🍃 Smart contracts of the Sablier Flow protocol.
Other
8 stars 0 forks source link

test: polish fork tests #189

Closed smol-ninja closed 2 months ago

smol-ninja commented 3 months ago

Spent my weekend in understanding each line of this PR. I think a few checks are redundant and there were some changes in the natspecs so I created this feedback PR to address my suggestions. It was easier that way then commenting in this PR.

Feel free to comment in this PR if you disagree with any changes.

Some changes:

  1. In Base.t.sol, I've combined create and label assets in one function: createAndLabelAssets
  2. Removed boundAddress and replaced its usage with makeAddr(vm.toString(abi.encodePacked(params.sender, i))); which is more bespoke
  3. Some Natspec changes to make the descriptions more clear
  4. Allow sender same as recipientincheckUsers`
  5. Refactoring variable and function names
  6. Remove seed variables. And use less number of variables.