Code has been added to clipboard!

Setting the Owed Amount With Solidity

Example
if (!msg.sender.send(amount)) {

                pendingReturns[msg.sender] = amount;
                return false;
            }
        }
        return true;
    }