Skip to content

Instantly share code, notes, and snippets.

@nican0r
nican0r / echidna-runner.yml
Created July 22, 2024 12:21
Echidna GitHub CI Action
name: Echidna Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
FOUNDRY_PROFILE: ci
@nican0r
nican0r / cloudexec.toml
Last active July 23, 2024 13:14
CloudExec Config
# 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
@nican0r
nican0r / GlpStrategy.t.sol
Created May 14, 2024 23:17
GlpStrategy Tests
// 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)