Skip to content

Conversation

@jununifi
Copy link
Contributor

No description provided.

@jununifi jununifi marked this pull request as draft November 14, 2023 15:41
Base automatically changed from feat/iya_strategy_v1 to develop November 20, 2023 07:38
Copy link
Contributor

@Senna46 Senna46 left a 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.

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
Copy link
Contributor

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.

https://github.com/cosmos/cosmos-sdk/blob/079e122b8f37bf7aa190a0ea74b419f865096848/proto/cosmos/bank/v1beta1/tx.proto#L53


string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
uint64 tranche_id = 2;
TrancheType tranche_type = 3;
Copy link
Contributor

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
Copy link
Contributor

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

}
vaults := k.GetAllVault(ctx)
for _, vault := range vaults {
if int64((vault.Cycle*86400)+vault.LastTrancheTime) < ctx.BlockTime().Unix() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment on proto

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.

4 participants