There are two settable fees in the Materia protocol:
feeTo
), the default value is 1/6.This example changes the swap fee
and the Materia fee
for the pair WUSD-DAI.
function callOneTime(address) public {IMVDProxy dfoProxy = IMVDProxy(msg.sender);address daiToken = <daiAddress>;uint materiaFee = <materiaFee>;uint swapFee = <swapFee>;materiaOrchestrator.setFees(tokenDai,materiaFee,swapFee,);}
It’s also possible to set the default swap fee and Materia fee i.e. the fees that are automatically set when the Materia Factory deploys a new pair.
function callOneTime(address) public {IMVDProxy dfoProxy = IMVDProxy(msg.sender);materiaOrchestrator.setDefaultFees(5, //Materia fee3, //Swap fee);}