{
    "Function": "_repay",
    "File": "contracts/lybra/pools/base/LybraEUSDVaultBase.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "Iconfigurator",
        "IEUSD"
    ],
    "Internal Calls": [
        "_saveReport"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _repay(address _provider, address _onBehalfOf, uint256 _amount) internal virtual {\n        uint256 amount = borrowed[_onBehalfOf] >= _amount ? _amount : borrowed[_onBehalfOf];\n\n        EUSD.burn(_provider, amount);\n        try configurator.refreshMintReward(_onBehalfOf) {} catch {}\n\n        borrowed[_onBehalfOf] -= amount;\n        _saveReport();\n        poolTotalEUSDCirculation -= amount;\n        emit Burn(_provider, _onBehalfOf, amount, block.timestamp);\n    }"
}