v2: discount

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2025-03-17 14:59:40 +03:30
parent 1bca5f3c0c
commit f523644804
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F
2 changed files with 15 additions and 2 deletions

View File

@ -79,7 +79,6 @@ message Asset {
AssetPrice price = 34;
}
message AssetPrice {
string updated_at = 1;
double market_price = 2;
@ -485,3 +484,15 @@ message LockAssetReq{
auth.v1.InternalIAM iam = 3;
optional auth.v1.TFA tfa = 4; // if request is not internal
}
message AssetDiscountReq {
string code = 1;
string asset_id = 2;
}
message AssetDiscountRes {
string code = 1;
string expires_at = 2;
double static_amount = 3;
double percentage = 4;
}

View File

@ -50,4 +50,6 @@ service WalletService {
rpc LockAsset(LockAssetReq) returns (base.v1.StatusRes);
rpc ReleaseAsset(LockAssetReq) returns (base.v1.StatusRes);
rpc AssetDiscount(AssetDiscountReq) returns (AssetDiscountRes);
}