| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Cooked.MockChain.Automation.AutoFilling.Withdrawals
Description
This module exposes a function to automatically fill the withdrawn amounts
of a TxSkel based on the current state of the blockchain.
Synopsis
- autoFillWithdrawalAmounts :: Members '[MockChainRead, Tweak, MockChainLog] effs => Sem effs ()
Documentation
autoFillWithdrawalAmounts :: Members '[MockChainRead, Tweak, MockChainLog] effs => Sem effs () Source #
Goes through all the withdrawals of the input skeleton and attempts to fill out the withdrawn amount based on the associated user rewards. Does not tamper with an existing specified amount in such withdrawals. Logs an event when an amount has been successfully auto-filled.