cooked-validators
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

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.