makerdao / spells-mainnet

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

PE-622 August 6th Executive Spell #175

Closed talbaneth closed 3 years ago

talbaneth commented 3 years ago

Description

Contribution Checklist

Checklist

WilfredTA commented 3 years ago

I want to do a sanity check regarding the synchronization of debt, auto line, and the ilk's line + global Line in the Vat. Especially upon initial adjustment from spell deployment, I want to be sure that the collection of updates are atomic. E.g., does purely adjusting via the autoline ensure that this is rational given current debt and given the ilk-specific & global lines in the Vat?

talbaneth commented 3 years ago

Tests pass on my side:

Running 15 tests for src/DssSpell.t.sol:DssSpellTest [PASS] testFail_notScheduled() (gas: 4662) [PASS] test_auth_in_sources() (gas: 281473904032281) [PASS] test_use_eta() (gas: 315915) [PASS] test_core_unit_budgets() (gas: 1236983) [PASS] testOnTime() (gas: 1203183) [PASS] test_nextCastTime() (gas: 316855) [PASS] testFailTooEarly() (gas: 3662) [PASS] test_bytecode_matches() (gas: 2144181) [PASS] test_auth() (gas: 281473906920886) [PASS] testSpellIsCast_GENERAL() (gas: 8040161) [PASS] testFailWrongDay() (gas: 3640) [PASS] testCastCost() (gas: 1204488) [PASS] testNewChainlogValues() (gas: 1207308) [PASS] testNewIlkRegistryValues() (gas: 1397350) [PASS] testFailTooLate() (gas: 3639)

kmbarry1 commented 3 years ago

RWA DC tests here if we want to merge them in: https://github.com/makerdao/spells-mainnet/pull/176

Can always merge them later though if we don't want to hold this spell up.

talbaneth commented 3 years ago

RWA DC tests here if we want to merge them in: #176

Can always merge them later though if we don't want to hold this spell up.

yeah, let's do that later.

talbaneth commented 3 years ago

Tests pass on my side with the deployed spell:

Running 15 tests for src/DssSpell.t.sol:DssSpellTest [PASS] testFail_notScheduled() (gas: 12281) [PASS] test_auth_in_sources() (gas: 281473904117019) [PASS] test_use_eta() (gas: 327795) [PASS] test_core_unit_budgets() (gas: 1297521) [PASS] testOnTime() (gas: 1265105) [PASS] test_nextCastTime() (gas: 328659) [PASS] testFailTooEarly() (gas: 8523) [PASS] test_bytecode_matches() (gas: 1714961) [PASS] test_auth() (gas: 281473906953866) [PASS] testSpellIsCast_GENERAL() (gas: 9407647) [PASS] testFailWrongDay() (gas: 8655) [PASS] testCastCost() (gas: 1266697) [PASS] testNewChainlogValues() (gas: 1269475) [PASS] testNewIlkRegistryValues() (gas: 1549265) [PASS] testFailTooLate() (gas: 8831)

brianmcmichael commented 3 years ago

Tests passing locally here.

dapp-test: rpc block: latest
Running 15 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testFail_notScheduled() (gas: 12281)
[PASS] test_auth_in_sources() (gas: 281473904117019)
[PASS] test_use_eta() (gas: 327795)
[PASS] test_core_unit_budgets() (gas: 1297751)
[PASS] testOnTime() (gas: 1265335)
[PASS] test_nextCastTime() (gas: 328659)
[PASS] testFailTooEarly() (gas: 8523)
[PASS] test_bytecode_matches() (gas: 1714961)
[PASS] test_auth() (gas: 281473906953866)
[PASS] testSpellIsCast_GENERAL() (gas: 9407877)
[PASS] testFailWrongDay() (gas: 8655)
[PASS] testCastCost() (gas: 1266927)
[PASS] testNewChainlogValues() (gas: 1269705)
[PASS] testNewIlkRegistryValues() (gas: 1549495)
[PASS] testFailTooLate() (gas: 8831)
kmbarry1 commented 3 years ago

Got through the following tests before hitting an RPC error:

[PASS] testFail_notScheduled() (gas: 12281)
[PASS] test_auth_in_sources() (gas: 281473904117019)
[PASS] test_use_eta() (gas: 327795)
[PASS] test_core_unit_budgets() (gas: 1297856)
[PASS] testOnTime() (gas: 1265440)
[PASS] test_nextCastTime() (gas: 328659)
[PASS] testFailTooEarly() (gas: 8523)
[PASS] test_bytecode_matches() (gas: 1714961)
[PASS] test_auth() (gas: 281473906953866)
talbaneth commented 3 years ago

Currently waiting for merge of Kurt's RWA DC tests before getting approvals and archiving. Otherwise those tests will be limboed out of the archive.