This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Echidna Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| FOUNDRY_PROFILE: ci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set the directory to upload to the server. | |
| [input] | |
| jobName = "Create_Chimera_App test" | |
| directory = "." | |
| timeout = "1h" | |
| [commands] | |
| setup = ''' | |
| if ! command -v slither >/dev/null 2>&1; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Specification to test: | |
| // 1. tsGLP passed in on deposit is staked for GlpStrategy [x] | |
| // 2. GLP bought with weth rewards is staked for GlpStrategy (WIP) | |
| // 3. harvesting uses all the weth rewards balance if it's nonzero [x] | |
| // 4. only YieldBox can withdraw and deposit [x] | |
| // 5. depositing sGLP directly to strategy should fail [x] | |
| // 6. calling harvest with 0 rewards accumulated doesn't revert [x] | |
| // 7. user balance of tsGLP increases by amount on call to withdraw [x] | |
| // 8. GlpStrategy balance of sGLP decreases on withdrawal [x] | |
| // 9. YieldBox can always withdraw up to the full amount of GLP + weth rewards in the GlpStrategy (WIP) |