Lets say i have contract that has couple functions which i want to call them by my other contracts, so i add some modifiers which help to doing this and.
For interacting with my contract i use interface, But the question is that inside interface there is no modifiers, if someone called functions of my contract using interface, do modifiers revert this function or not??? here is my function in contract:
function updateUserBalances(uint256 amount, address userAddress, address tokenAddress) external onlyPair{
_updateUserBalances(amount, userAddress, tokenAddress;
}
and here function in interface:
function updateUserBalances (uint256 amount, address userAddress, address tokenAddress) external;