Comments (5)
We scale deposits as an optimization. We scale on the way in and the way out, rather than updating all validator deposits at each epoch depending on gains/losses. We use m
as the unit deposits are scaled against. This extra unit helps with type checking when dealing with wei vs scaled wei
from casper.
Thanks, so currently you use m
even though it means meter because you need to use some unit right?
I believe when VIP 752 (github.com/vyperlang/vyper/issues/752) will be implemented it will be better to use a custom unit for this case.
from casper.
Correct. Is there a unit currently that might make more sense?
from casper.
I don't think so, maybe currency
or currency1
will sound more generic but I don't think it will help. This are the current units in Vyper: currency, wei, currency1, currency2, sec, m, kg
.
I was thinking about adding some generic unit (e.g. unit
or so) but if we are going to implement VIP 752 it won't be necessary.
from casper.
Heard that. Closing until the feature is released in vyper
from casper.
Related Issues (20)
- ubuntu install issue HOT 4
- Can't call `init` and `initialize_epoch` at same block number HOT 1
- Contract warmup period HOT 1
- next_validator_index comment is misleading HOT 2
- `slash` when validator has deposited but not yet reached `start_dynasty` HOT 4
- `assert msg.sender == NULL_SENDER` in `vote` HOT 3
- Port testing to `eth-tester` HOT 2
- Exposing `validate_vote_signature` and `votable`
- Add vyper compiling instructions to README HOT 12
- Getting ready for the Vyper's beta launch HOT 4
- Suggestion: rename the repo to Casper-FFG HOT 5
- Create `voting_period` and seal off vote data HOT 1
- Deploy PURITY_CHECKER and MSG_HASHER with via compile in testing HOT 4
- Collective reward/penalties are opaque HOT 1
- Tests take too long
- Gas cost profiling, optimization, and management HOT 1
- Purity checker does not filter STATICCALL opcode HOT 7
- pytest tests error
- Intertwine Casper with lightning network
- Depracte the repo HOT 1
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 casper.