This PR add an "overflow" feature to deputy accounts. When the deputy's on chain bnb balance gets higher than bnb_hot_wallet_overflow, coins above that amount are sent to a cold wallet address. It is expected that the deputy operator will move funds back to the hot wallet when they are needed. Note the low balance alert can be used for this.
Changes:
add SendAmount method to executor interface to send bnb coins to any address
add GetColdWalletAddr method to executor interface to get the deputy's cold wallet address
extend GetBalance executor method to get balance of any account
add Run<chain>HotWalletOverflow methods to deputy to calculate and move coins when over the overflow threshold.
add cold wallet address and hot wallet overflow parameters the config
Notes:
The ethereum and erc20 executor SendAmount method has not been implemented. This can be done in a future PR.
There are a lot of commits from merges on our fork, but their changes have already been included in Binance-Chain/bep3-deputy.
This PR add an "overflow" feature to deputy accounts. When the deputy's on chain bnb balance gets higher than
bnb_hot_wallet_overflow
, coins above that amount are sent to a cold wallet address. It is expected that the deputy operator will move funds back to the hot wallet when they are needed. Note the low balance alert can be used for this.Changes:
SendAmount
method to executor interface to send bnb coins to any addressGetColdWalletAddr
method to executor interface to get the deputy's cold wallet addressGetBalance
executor method to get balance of any accountRun<chain>HotWalletOverflow
methods to deputy to calculate and move coins when over the overflow threshold.Notes:
SendAmount
method has not been implemented. This can be done in a future PR.