How to Find Out Unstake Fee
LBTC
https://etherscan.io/address/0x8236a87084f8b84306f72007f36f2618a5634494#readProxyContract

Unstake fee calculation depends on what is destination if unstake operation:
BTC -> unstake fee is a sum of "redeem fee" and "to native commission"
BTC.b -> unstake fee equals to "redeem fee"
Below is information about how to get both "redeem fee" and "to native commission":
Function: 12. getRedeemFee (0xc6d98f1a) Returns: amount of LBTC to be taken as redeem fee

Function: 28. toNativeCommission (0xb743ab4f) Returns: amount of LBTC to be taken as "to native commission"

Also there is a function that tells what is the mi amount (after paying fee) that can be redeemed
Function: 13. getRedeemForBtcMinAmount (0x1beda7e3) Returns: amount of LBTC to be taken as redeem fee

BTC.b
https://etherscan.io/address/0xB0F70C0bD6FD87dbEb7C10dC692a2a6106817072#readProxyContract

Unstake fee is calculation: unstake fee is a sum of "redeem fee" and "to native commission"
Below is information about how to get both "redeem fee" and "to native commission":
Function: 20. getRedeemFee (0xc6d98f1a) Returns: amount of LBTC to be taken as redeem fee

Function: 35. toNativeCommission (0xb743ab4f) Returns: amount of LBTC to be taken as "to native commission"

Also there is a function that tells what is the mi amount (after paying fee) that can be redeemed
Function: 21. getRedeemForBtcMinAmount (0x1beda7e3) Returns: amount of LBTC to be taken as redeem fee

AssetRouter
In general absolutely the same information can be collected from AssetRouter contract:
https://etherscan.io/address/0x9ece5fb1ab62d9075c4ec814b321e24d8ea021ac#readProxyContract

Function: 24. toNativeCommission (0x5698732f) Returns: amount of LBTC to be taken as "to native commission"

Function: 25. tokenConfig (0xfe136c4e) Returns: basic configuration for selected token, redeem fee, minimal redeemForBTC amount and redeem enabled flag

Last updated