mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Updated connector id for Fee connector
This commit is contained in:
parent
e474c4abd2
commit
b53d5bd12c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user