flashloan-rs 0.2.3

Minimal Multicall3 Flashloan Module
Documentation
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

import {Authority} from "../../../auth/Auth.sol";

contract MockAuthority is Authority {
    bool immutable allowCalls;

    constructor(bool _allowCalls) {
        allowCalls = _allowCalls;
    }

    function canCall(
        address,
        address,
        bytes4
    ) public view override returns (bool) {
        return allowCalls;
    }
}