This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To: | |
0xEf1...BF6B | |
Value: | |
50000000000000000 | |
Data: | |
0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000006411d7db00000000000000000000000000000000000000000000000000000000000000020b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000003fd602c000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uint token0Decimals; // token0 decimals | |
uint token1Decimals; // token1 decimals | |
int24 currentTick; // Current price of 1 token w.r.t to other | |
int24 lowerTick; // Price of 1 token w.r.t to other at lower tick | |
int24 upperTick; // Price of 1 token w.r.t to other at upper tick | |
The token0 & token1 depends on the token address hex value. In case of USDC & WETH, USDC comes first & In case of INST & WETH, WETH comes first. | |
to calculate current price, assuming USDC & ETH pair here: | |
x = 1.0001 ** currentTick; // 1.0001 ** 198841 = 431641466 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.6.0; | |
contract Checkkk { | |
struct Test { | |
uint64 _one; | |
uint64 _two; | |
uint64 _three; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.5.11; | |
import "ds-math/math.sol"; | |
import { SaiTubLike, OtcLike } from "./Interfaces.sol"; | |
interface ScdMcdMigration { | |
function swapDaiToSai(uint daiAmt) external; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
/** | |
* @dev because math is not safe | |
*/ | |
library SafeMath { | |
function add(uint256 a, uint256 b) internal pure returns (uint256) { | |
uint256 c = a + b; | |
require(c >= a, "math-not-safe"); |