Updated connector id for Fee connector

This commit is contained in:
Thrilok Kumar 2020-12-17 19:55:09 +05:30
parent e474c4abd2
commit b53d5bd12c

View File

@ -46,10 +46,10 @@ contract Setup is DSMath {
}
/**
* @dev Connector ID and Type. TODO: change.
* @dev Connector ID and Type
*/
function connectorID() public pure returns(uint _type, uint _id) {
(_type, _id) = (1, 37);
(_type, _id) = (1, 67);
}
}
@ -59,6 +59,11 @@ contract FeeResolver is Setup {
/**
* @dev Calculate fee
* @param amount token amount to caculate fee.
* @param fee fee percentage. Eg: 1% => 1e17, 100% => 1e18.
* @param getId Get token amount at this ID from `InstaMemory` Contract.
* @param setId Set total amount at this ID in `InstaMemory` Contract.
* @param setIdFee Set only fee amount at this ID in `InstaMemory` Contract.
*/
function calculateFee(uint amount, uint fee, uint getId, uint setId, uint setIdFee) external payable {
uint _amt = getUint(getId, amount);