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

Active release unbonding #3102

Draft
wants to merge 22 commits into
base: refactor/guild-and-unbonding
Choose a base branch
from

Conversation

OnedgeLee
Copy link
Contributor

No description provided.

@OnedgeLee OnedgeLee self-assigned this Dec 26, 2024
@OnedgeLee OnedgeLee requested a review from s2quake December 26, 2024 01:40
@OnedgeLee OnedgeLee force-pushed the feature/active-release-unbonding branch from 31936f3 to 125ee60 Compare December 30, 2024 14:29
DelegateeAddress = delegateeAddress;
DelegateeAccountAddress = delegateeAccountAddress;
DelegationCurrency = new Currency(bencoded[2]);
RewardCurrencies = ((List)bencoded[3]).Select(v => new Currency(v)).ToImmutableSortedSet(_currencyComparer);
Copy link
Contributor

Choose a reason for hiding this comment

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

https://github.com/microsoft/referencesource/blob/51cf7850defa8a17d815b4700b67116e3fa283c2/mscorlib/system/stringcomparer.cs#L24
처럼 CurrencyComparer 클래스내에 정적 속성을 제공하고 그걸 사용할 수 있는 방법이 있습니다.
_currencyComparer 대신에 CurrencyComparer.Default 를 사용하는 것이지요

@OnedgeLee OnedgeLee force-pushed the feature/active-release-unbonding branch 5 times, most recently from 54b3d55 to 00e38d8 Compare January 5, 2025 10:45
@OnedgeLee OnedgeLee force-pushed the feature/active-release-unbonding branch 2 times, most recently from 212a054 to 47f75a3 Compare January 5, 2025 12:48
@OnedgeLee OnedgeLee force-pushed the feature/active-release-unbonding branch 4 times, most recently from b79275e to 10492ce Compare January 5, 2025 13:16
@OnedgeLee OnedgeLee force-pushed the feature/active-release-unbonding branch from 10492ce to 7028560 Compare January 5, 2025 13:27
@OnedgeLee OnedgeLee force-pushed the feature/active-release-unbonding branch from d596287 to 6328d39 Compare January 5, 2025 14:32
@OnedgeLee OnedgeLee requested a review from ipdae January 8, 2025 19:31
@OnedgeLee
Copy link
Contributor Author

OnedgeLee commented Jan 8, 2025

@ipdae 혹시 a2179b1 커밋에 대해서만 좀 디테일하게 리뷰 요청드려도 괜찮을까요?
다른 부분은 팀 내부적으로 리뷰하려 합니다.
해당 커밋은 기존의 LockupInterval 대신에 UnstakingInterval을 사용하기 위한 커밋이며,
UnstakingInterval은 기존의 LockupIntervalStaking의 증액 / 감액 양쪽 모두에서 트리거되었던 것과는 달리, 감액의 경우에만 트리거되어, 추가적인 감액을 방지합니다.

편의상, 증액을 Staking, 감액을 Unstaking이라 부릅니다.

  1. 기존
  • 10번 블록에서 Staking시 -> 11번 블록에서 Staking 가능, Unstaking 불가
  • 10번 블록에서 Unstaking시 -> 11번 블록에서 Staking 가능, Unstaking 불가 (Unstaking기간에 걸리지 아니함)
  1. 변경
  • 10번 블록에서 Staking시 -> 11번 블록에서 Staking 가능, Unstaking 가능
  • 10번 블록에서 Unstaking시 -> 11번 블록에서 Staking 가능, Unstaking 불가 (Unstaking기간에 걸림)

@OnedgeLee OnedgeLee force-pushed the feature/active-release-unbonding branch from 033d4d4 to a2179b1 Compare January 8, 2025 19:43
@OnedgeLee OnedgeLee force-pushed the feature/active-release-unbonding branch from a2179b1 to 0c6939d Compare January 9, 2025 01:53
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.

2 participants