Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

242 - TryFrom CurrencyId Implementations Contain Repeated Code #249

Conversation

b-yap
Copy link
Contributor

@b-yap b-yap commented Feb 9, 2023

No description provided.

@b-yap b-yap requested review from ebma and RustNinja February 9, 2023 15:51
@b-yap b-yap changed the title TryFrom CurrencyId Implementations Contain Repeated Code 242 - TryFrom CurrencyId Implementations Contain Repeated Code Feb 10, 2023
@b-yap b-yap mentioned this pull request Feb 10, 2023
6 tasks
@b-yap b-yap force-pushed the 242-fix-minor-issues branch from 8c6e85e to 476f84b Compare February 10, 2023 15:21
@b-yap b-yap force-pushed the 242-LIC-02_TryFrom_CurrencyId_Implementations_Contain_Repeated_Code branch from b0d720d to 6c41bc1 Compare February 13, 2023 10:23
@b-yap b-yap force-pushed the 242-LIC-02_TryFrom_CurrencyId_Implementations_Contain_Repeated_Code branch from 6c41bc1 to eca67b3 Compare February 13, 2023 11:53
Copy link
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

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

LGTM

@b-yap b-yap merged commit 30c5bdb into 242-fix-minor-issues Feb 14, 2023
@b-yap b-yap deleted the 242-LIC-02_TryFrom_CurrencyId_Implementations_Contain_Repeated_Code branch February 14, 2023 12:26
ebma added a commit that referenced this pull request Feb 16, 2023
* 242 removing unnecessary conversion of a vector (#247)

* fix weight for mint tokens in redeem pallet (#259)

* first iteration (#258)

* TryFrom `CurrencyId` Implementations Contain Repeated Code (#249)

* 242 - secret exposed in cli (#255)

* first iteration

* update the readme , for the `stellar_vault_secret_key_filepath`.

* add the example secret key file

* applying cargo fmt

* update the readme

* if conversion rate is too big for i64, set it to what its max is.

if the i64 value reaches negative, make it zero for u128

* Revert "if conversion rate is too big for i64, set it to what its max is."

This reverts commit 399f175.

* since DOT is already at 20, 20 should not fail. changed it to 30.

* 242 - unsafe integer cast for `BalanceConversion`'s `StaticLookUp` implementation (#256)

* if conversion rate is too big for i64, set it to what its max is.

if the i64 value reaches negative, make it zero for u128

* https://github.com/pendulum-chain/spacewalk/pull/256/files#r1105566371

* fix metadata-standalone.scale

* updated metadata scala

* TryFrom `CurrencyId` Implementations Contain Repeated Code (#249)

* Update metadata-standalone.scale

---------

Co-authored-by: B. Yap <2826165+b-yap@users.noreply.github.com>
Co-authored-by: cr4pt0 <102041955+cr4pt0@users.noreply.github.com>
ebma added a commit that referenced this pull request Feb 23, 2023
* 242 removing unnecessary conversion of a vector (#247)

* fix weight for mint tokens in redeem pallet (#259)

* first iteration (#258)

* TryFrom `CurrencyId` Implementations Contain Repeated Code (#249)

* 242 - secret exposed in cli (#255)

* first iteration

* update the readme , for the `stellar_vault_secret_key_filepath`.

* add the example secret key file

* applying cargo fmt

* update the readme

* if conversion rate is too big for i64, set it to what its max is.

if the i64 value reaches negative, make it zero for u128

* Revert "if conversion rate is too big for i64, set it to what its max is."

This reverts commit 399f175.

* since DOT is already at 20, 20 should not fail. changed it to 30.

* 242 - unsafe integer cast for `BalanceConversion`'s `StaticLookUp` implementation (#256)

* if conversion rate is too big for i64, set it to what its max is.

if the i64 value reaches negative, make it zero for u128

* https://github.com/pendulum-chain/spacewalk/pull/256/files#r1105566371

* fix metadata-standalone.scale

* updated metadata scala

* TryFrom `CurrencyId` Implementations Contain Repeated Code (#249)

* Update metadata-standalone.scale

---------

Co-authored-by: B. Yap <2826165+b-yap@users.noreply.github.com>
Co-authored-by: cr4pt0 <102041955+cr4pt0@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants