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

added register rebate tx #1138

Merged
merged 12 commits into from
Mar 19, 2024
25 changes: 25 additions & 0 deletions proto/stride/stakeibc/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ service Msg {
returns (MsgDeleteTradeRouteResponse);
rpc UpdateTradeRoute(MsgUpdateTradeRoute)
returns (MsgUpdateTradeRouteResponse);
rpc RegisterCommunityPoolRebate(MsgRegisterCommunityPoolRebate)
returns (MsgRegisterCommunityPoolRebateResponse);
}

message MsgUpdateInnerRedemptionRateBounds {
Expand Down Expand Up @@ -314,3 +316,26 @@ message MsgUpdateTradeRoute {
];
}
message MsgUpdateTradeRouteResponse {}

// Registers a community pool rebate by specifying the amount of the liquid
// stake
message MsgRegisterCommunityPoolRebate {
riley-stride marked this conversation as resolved.
Show resolved Hide resolved
option (cosmos.msg.v1.signer) = "creator";
option (amino.name) = "stride/x/stakeibc/MsgRegisterCommunityPoolRebate";

// Message signer
string creator = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
// Chain ID of the community pool
riley-stride marked this conversation as resolved.
Show resolved Hide resolved
string chain_id = 2;
// Rebate percentage (e.g. 0.5 for 50%)
sampocs marked this conversation as resolved.
Show resolved Hide resolved
string rebate_percentage = 3 [
asalzmann marked this conversation as resolved.
Show resolved Hide resolved
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// Magnitude of the community pool liquid stake associated with the rebate
riley-stride marked this conversation as resolved.
Show resolved Hide resolved
string liquid_stake_amount = 4 [
riley-stride marked this conversation as resolved.
Show resolved Hide resolved
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false
];
}
message MsgRegisterCommunityPoolRebateResponse {}
Loading