Remove TODOs that will not be addressed
This commit is contained in:
parent
f6b6619c08
commit
e34b1f2f8b
@ -60,7 +60,7 @@ contract MixinExchangeWrapper is
|
|||||||
// Call `fillOrder` and handle any exceptions gracefully
|
// Call `fillOrder` and handle any exceptions gracefully
|
||||||
assembly {
|
assembly {
|
||||||
let success := call(
|
let success := call(
|
||||||
gas, // forward all gas, TODO: look into gas consumption of assert/throw
|
gas, // forward all gas
|
||||||
exchange, // call address of Exchange contract
|
exchange, // call address of Exchange contract
|
||||||
0, // transfer 0 wei
|
0, // transfer 0 wei
|
||||||
add(fillOrderCalldata, 32), // pointer to start of input (skip array length in first 32 bytes)
|
add(fillOrderCalldata, 32), // pointer to start of input (skip array length in first 32 bytes)
|
||||||
|
@ -81,7 +81,7 @@ contract MixinWrapperFunctions is
|
|||||||
// Delegate to `fillOrder` and handle any exceptions gracefully
|
// Delegate to `fillOrder` and handle any exceptions gracefully
|
||||||
assembly {
|
assembly {
|
||||||
let success := delegatecall(
|
let success := delegatecall(
|
||||||
gas, // forward all gas, TODO: look into gas consumption of assert/throw
|
gas, // forward all gas
|
||||||
address, // call address of this contract
|
address, // call address of this contract
|
||||||
add(fillOrderCalldata, 32), // pointer to start of input (skip array length in first 32 bytes)
|
add(fillOrderCalldata, 32), // pointer to start of input (skip array length in first 32 bytes)
|
||||||
mload(fillOrderCalldata), // length of input
|
mload(fillOrderCalldata), // length of input
|
||||||
|
@ -246,7 +246,6 @@ contract LibMath is
|
|||||||
numerator,
|
numerator,
|
||||||
denominator
|
denominator
|
||||||
);
|
);
|
||||||
// TODO: safeMod
|
|
||||||
remainder = safeSub(denominator, remainder) % denominator;
|
remainder = safeSub(denominator, remainder) % denominator;
|
||||||
isError = safeMul(1000, remainder) >= safeMul(numerator, target);
|
isError = safeMul(1000, remainder) >= safeMul(numerator, target);
|
||||||
return isError;
|
return isError;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user