applyAccruedFundingTest
├── it should call _updateFundingIndex
└── when funding index changes
├── it should emit AccruedFundingApplied event
├── it should update the lastFundingIndexApplied
├── when position is long
│ ├── when funding index is greater than lastFundingIndexApplied
│ │ └── it should increase the entry price
│ └── when funding index is less than lastFundingIndexApplied
│ └── it should decrease the entry price
└── when position is short
├── when funding index is greater than lastFundingIndexApplied
│ └── it should decrease the entry price
└── when funding index is less than lastFundingIndexApplied
└── it should increase the entry price
should error when scaffolding since we can't generate duplicated test names -- that's not valid solidity syntax. Right now, we scaffold and silently dedup the conditions.
The following tree:
should error when scaffolding since we can't generate duplicated test names -- that's not valid solidity syntax. Right now, we scaffold and silently dedup the conditions.