Comments (5)
I like this split, emergency vs system
from gammaprotocol.
For me I wrote it that way thinking that a paused system, is when user can settle their vaults/exercise and a shutdown is when all system is not functional.
But just to make sure I understand, the functions names u wrote are not functions, they are just events.
So currently there are two privileged addresses:
pauser
terminator
Functions:
setSystemPaused
by pauser (pause functions only settle/exercise)setEmergencyShutdown
by terminator (shutdown all functions). I think we can update this tosetSystemShutdown
and change the event name also fromEmergencyShutdown
toSystemShutdown
.
from gammaprotocol.
Yeah, so there were a couple things that maybe I wasn't so clear about.
- Its clear to me that pauser corresponds to the person that can setSystemPaused. Its not clear to me that the terminator corresponds to the setEmergencyShutdown. Not sure if there is a better name for the terminator role or if we call the function setSystemTerminated
- I agree that we should unify the names for system/emergency shutdown to be one or other across variables, functions/events.
- I equate pause with a temporary disruption in the protocol. I equate systemShutdown or emergencyShutdown with a more permanent shutdown of the protocol. Currently pausing is a permanent shutdown (wait till expiry and withdraw proceeds only). Currently emergency/system shutdown is a temporary freeze of all protocol functionality (likely to deploy a fix) before the protocol is resumed. The naming just seems reversed with what I would naturally think a pause is (temporary, no functionality) vs shutdown (more permanent).
Happy to go with whatever people think is best though.
from gammaprotocol.
Yeah, so there were a couple things that maybe I wasn't so clear about.
- Its clear to me that pauser corresponds to the person that can setSystemPaused. Its not clear to me that the terminator corresponds to the setEmergencyShutdown. Not sure if there is a better name for the terminator role or if we call the function setSystemTerminated
- I agree that we should unify the names for system/emergency shutdown to be one or other across variables, functions/events.
- I equate pause with a temporary disruption in the protocol. I equate systemShutdown or emergencyShutdown with a more permanent shutdown of the protocol. Currently pausing is a permanent shutdown (wait till expiry and withdraw proceeds only). Currently emergency/system shutdown is a temporary freeze of all protocol functionality (likely to deploy a fix) before the protocol is resumed. The naming just seems reversed with what I would naturally think a pause is (temporary, no functionality) vs shutdown (more permanent).
Happy to go with whatever people think is best though.
Yeah I got u, happy to go with either also. For me I got the opposite thinking for pause and shutdown. Yeah better to make it clear, also in both cases I think none of them is permanent action, as both just temporary until deploying a fix, but the usage differ based on where the error/bug is.
from gammaprotocol.
I like the slack decisions we made
from gammaprotocol.
Related Issues (20)
- Check short != long for a vault
- Update USDC pricer and Oracle module HOT 1
- Ensure tokens with > 27 decimals are not supported in the system HOT 1
- Rename CompoundPricer to CTokenPricer
- Check that returned value from getTimestamp in Chainlink pricer is greater than zero HOT 1
- Add a Core folder HOT 1
- Rename tests file
- Integrate v2 with curve (and maybe uniswap) via a callee to enable arbitrary stablecoin (or crypto) premium payment HOT 1
- [Before release] Refactor Call argument HOT 1
- Fix Trade0x Callee HOT 1
- Remove AddressBook from MarginCalculator HOT 4
- Modify getExcessCollateral() visibility HOT 1
- Refactor _getExpiredCashValue() to remove external Otoken calls
- Merge _isMarginableLong() and _isMarginableCollateral() HOT 1
- Refactor MarginCalculator external calls to Otoken contract HOT 2
- Remove upgradeability from MockCUSDC.sol
- Rename all test files HOT 1
- Rename variable timeToExpiryValue to be more informative HOT 1
- Withdraw collateral after expiry HOT 1
- Remove FixedPointInt256 library from YearnPricer HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gammaprotocol.