-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: stake migration refund package is not correctly handled (#151)
- Loading branch information
1 parent
cb2e80a
commit 0ac8642
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/binance/dex/api/client/crosschain/content/StakeMigrationRefund.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.binance.dex.api.client.crosschain.content; | ||
|
||
import com.binance.dex.api.client.crosschain.*; | ||
import com.binance.dex.api.client.encoding.message.common.Bech32AddressValue; | ||
import com.binance.dex.api.client.encoding.message.common.EthAddressValue; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
|
||
@Getter | ||
@Setter | ||
public class StakeMigrationRefund extends Content { | ||
|
||
private EthAddressValue operatorAddress; | ||
private EthAddressValue delegatorAddress; | ||
private Bech32AddressValue refundAddress; | ||
private UnsignedNumber amount; | ||
|
||
@Override | ||
protected void setHrp(String hrp) { | ||
this.refundAddress.setHrp(hrp); | ||
} | ||
} |