makerdao / spells-mainnet

Staging repo for MakerDAO weekly executive spells
GNU Affero General Public License v3.0
107 stars 43 forks source link

Add `_checkTransferrableVestMkrAllowance` check #317

Closed naszam closed 1 year ago

naszam commented 1 year ago

Description

naszam commented 1 year ago

Tests PASS:

./scripts/test-dssspell-forge.sh match="" block=""
Using DssExecLib at: 0x8De6DDbCd5053d32292AAA0D2105A32d108484a6
[⠢] Compiling...
[⠢] Compiling 3 files with 0.8.16
[⠒] Solc 0.8.16 finished in 2.92s
Compiler run successful

Running 2 tests for src/test/starknet.t.sol:StarknetTests
[PASS] testStarknet() (gas: 885714)
[PASS] testStarknetSpell() (gas: 2346)
Test result: ok. 2 passed; 0 failed; finished in 5.40s

Running 19 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testAuth() (gas: 9223371487102099566)
[PASS] testAuthInSources() (gas: 9223371487099270971)
[PASS] testBytecodeMatches() (gas: 2132378)
[PASS] testCastCost() (gas: 731151)
[PASS] testChainlogValues() (gas: 8964162)
[PASS] testChainlogVersionBump() (gas: 3177003)
[PASS] testContractSize() (gas: 8984)
[PASS] testDeployCost() (gas: 2118676)
[PASS] testFailNotScheduled() (gas: 14375)
[PASS] testFailTooEarly() (gas: 13607)
[PASS] testFailTooLate() (gas: 13606)
[PASS] testFailWrongDay() (gas: 13607)
[PASS] testGeneral() (gas: 35642960)
[PASS] testLineAdjustment() (gas: 744591)
[PASS] testLineMom() (gas: 859694)
[PASS] testNextCastTime() (gas: 353614)
[PASS] testOnTime() (gas: 726790)
[PASS] testPSMs() (gas: 2196271)
[PASS] testUseEta() (gas: 352343)
Test result: ok. 19 passed; 0 failed; finished in 37.93s