Skip to content

Commit

Permalink
Merge pull request #71 from zhangcongcobo/main
Browse files Browse the repository at this point in the history
add babylon drop interface
  • Loading branch information
CoboZhu authored Aug 14, 2024
2 parents 96dd837 + 6b81e4e commit d3e5ad0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions MPCClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,21 @@ function babylonReplaceStakingFee(string $requestId, string $relatedRequestId, s
return $this->request("POST", "/v1/custody/mpc/babylon/replace_staking_fee/", $params);
}

function babylonDropStaking(string $requestId, string $relatedRequestId, string $feeRate, BigInteger $maxStakingFee = null)
{
$params = [
"request_id" => $requestId,
"related_request_id" => $relatedRequestId,
"fee_rate" => $feeRate,
];

if ($maxStakingFee) {
$params = array_merge($params, ["max_staking_fee" => $maxStakingFee]);
}

return $this->request("POST", "/v1/custody/mpc/babylon/drop_staking/", $params);
}

function babylonBroadcastStakingTransaction(string $requestId)
{
$params = [
Expand Down

0 comments on commit d3e5ad0

Please sign in to comment.