-
-
Notifications
You must be signed in to change notification settings - Fork 14
IRS module #707
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
base: develop
Are you sure you want to change the base?
IRS module #707
Conversation
Senna46
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented on the points of concern. If it is OK, I will fix it.
proto/ununifi/irs/tx.proto
Outdated
| uint64 tranche_id = 2; | ||
| TrancheType tranche_type = 3; | ||
| cosmos.base.v1beta1.Coin token = 4 [(gogoproto.nullable) = false]; // Underlying token to be spent | ||
| cosmos.base.v1beta1.Coin required_yt = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the argument required for Withdraw. Not required for Deposit
For Withdraw
token and required_yt are difficult to understand
I think the array is still better. And the variable name amount is better.
proto/ununifi/irs/tx.proto
Outdated
|
|
||
| string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; | ||
| uint64 tranche_id = 2; | ||
| TrancheType tranche_type = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Withdraw does not require this enum. If there is an array Amount, we can handle the behavior of Withdraw.
| string name = 3; | ||
| string description = 4; | ||
| uint64 max_maturity = 5; // e.g. 180 days | ||
| uint64 cycle = 6; // e.g. 90 days |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think seconds are better. same as gov voting_period
x/irs/keeper/abci.go
Outdated
| } | ||
| vaults := k.GetAllVault(ctx) | ||
| for _, vault := range vaults { | ||
| if int64((vault.Cycle*86400)+vault.LastTrancheTime) < ctx.BlockTime().Unix() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment on proto
* feat: irs test * feat: vault & tranche * feat; register irs module * feat: tranche * feat: stripping error * fix: maturity * feat: wip test * fix: mint perm * fix: update pool info * fix: amm & test * chore: totalshare * revert changes for amm.go discussed --------- Co-authored-by: Senna46 <29295263+Senna46@users.noreply.github.com> Co-authored-by: jununifi <jun.ununifi@outlook.com>
DeputyDepositToTranche via IBC-hooks
… liquidity implementation
Merge Develop changes into irs_module
fix: pt mint conflict
fix: stATOM/ATOM rate
No description provided.