Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Council fixes #12

Merged
merged 8 commits into from
Feb 7, 2019
Merged

Council fixes #12

merged 8 commits into from
Feb 7, 2019

Conversation

mnaamani
Copy link
Member

@mnaamani mnaamani commented Feb 7, 2019

No description provided.

@mnaamani mnaamani requested a review from siman February 7, 2019 10:19
@siman siman merged commit a4a6c32 into master Feb 7, 2019
Copy link
Contributor

@siman siman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good refactoring, only a few comments on Stake struct

@@ -7,32 +7,20 @@ use runtime_primitives::traits::{SimpleArithmetic};
pub struct Stake<Balance>
where Balance: Copy + SimpleArithmetic,
{
pub refundable: Balance,
pub new: Balance,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I like the word new in this case, it could be a little bit confusing when using Stake struct on the JavaScript side. I remember we discussed extra as well.

@@ -7,32 +7,20 @@ use runtime_primitives::traits::{SimpleArithmetic};
pub struct Stake<Balance>
where Balance: Copy + SimpleArithmetic,
{
pub refundable: Balance,
pub new: Balance,
pub transferred: Balance,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about renaming of transferred to reused? I remember you used this word to describe the purpose of this field of stake struct.

@mnaamani mnaamani deleted the council-fixes branch February 8, 2019 13:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants