This file contains hidden or 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
int32[] memory ticks = new int32[](1); | |
uint128[] memory relativeLiquidityAmounts = new uint128[](1); | |
ticks[0] = -1; | |
// all liquidity into one tick | |
relativeLiquidityAmounts[0] = 1e18; | |
uint256 maxAmountA = 1e18; | |
// see documentation: https://docs.mav.xyz/technical-reference/maverick-v2/v2-contracts/maverick-v2-supplemental-contracts/interfaces/imaverickv2poollens#addparamsspecification | |
IMaverickV2PoolLens.AddParamsSpecification memory addSpec = IMaverickV2PoolLens.AddParamsSpecification({ | |
slippageFactorD18: 0.01e18, |
This file contains hidden or 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
int32[] memory ticks = new int32[](1); | |
uint128[] memory relativeLiquidityAmounts = new uint128[](1); | |
ticks[0] = -1; | |
// all liquidity into one tick | |
relativeLiquidityAmounts[0] = 1e18; | |
uint256 maxAmountA = 1e18; | |
// see documentation: https://docs.mav.xyz/technical-reference/maverick-v2/v2-contracts/maverick-v2-supplemental-contracts/interfaces/imaverickv2poollens#addparamsspecification | |
IMaverickV2PoolLens.AddParamsSpecification memory addSpec = IMaverickV2PoolLens.AddParamsSpecification({ | |
slippageFactorD18: 0.01e18, |
This file contains hidden or 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
javascript:(function(){ | |
if (!window.location.toString().match("^https://dashboard.tenderly.co/")) { | |
throw new Error("Potential phishing detected. Url doesn't match dashboard tenderly") | |
} | |
var aTags = document.getElementsByTagName("span"); | |
var searchText = "encodeTransactionData"; | |
var encDataElement; | |
for (var i = 0; i < aTags.length; i++) { | |
if (aTags[i].textContent == searchText) { |
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 16 columns, instead of 8 in line 3.
This file contains hidden or 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
,action,action_mix,pre_pool_0,pre_pool_1,before_pool_0,before_pool_1,pre_vault,before_vault,before_otoken,pool_before_check_balance,after_pool_0,after_pool_1,after_vault,after_otoken,pool_after_check_balance | |
0,checkBalance,-1.0,50404822629676069580924,61665613047767922978486,50404822629676069580924,61665613047767922978486,62629094379125364028049443,62629094379125364028049443,57628980682074191609491287,111167517140187695089976,152082182814939917,5061165613047767922978486,72629094379125364028103150,72629094379125364028049443,111167517140187695143683 | |
1,checkBalance,-0.95,50404822629676069580924,61665613047767922978486,50404822629676069580924,61665613047767922978486,62629094379125364028049443,62629094379125364028049443,57628980682074191609491287,111167517140187695089976,177040363655438645,4811190613047767922978486,72629094379125364028099212,72629094379125364028049443,111167517140187695139745 | |
2,checkBalance,-0.9,50404822629676069580924,61665613047767922978486,50404822629676069580924,61665613047767922978486,6262909 |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
{ | |
"data": { | |
"gauges": [ | |
{ | |
"id": "0x016889e5e0f026c030d28321f3190a39206120ad", | |
"pool": null, | |
"ichiVault": { | |
"id": "0x1a89f32b3140e9fb8636054de7a90069635f268e", | |
"depositToken": { | |
"id": "0xb1e25689d55734fd3fffc939c4c3eb52dff8a794", |
This file contains hidden or 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
javascript:(function(){ | |
if (!window.location.toString().match("^https://dashboard.tenderly.co/")) { | |
throw new Error("Potential phishing detected. Url doesn't match dashboard tenderly") | |
} | |
var aTags = document.getElementsByTagName("span"); | |
var searchText = "encodeTransactionData"; | |
var encDataElement; | |
for (var i = 0; i < aTags.length; i++) { | |
if (aTags[i].textContent == searchText) { |
This file contains hidden or 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
javascript:(function(){ | |
var aTags = document.getElementsByTagName("span"); | |
var searchText = "encodeTransactionData"; | |
var encDataElement; | |
for (var i = 0; i < aTags.length; i++) { | |
if (aTags[i].textContent == searchText) { | |
encDataElement = aTags[i]; | |
break; | |
} | |
} |
This file contains hidden or 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
[ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "_bribeContractOS", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", |
This file contains hidden or 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
[[0xe3a66f679a1b8aE03D3f1e5fA296cCd8Aeea4366] | |
[0x21e87907866c3C73E930Fc813cF4AB851432eB7d] | |
[0xD9B79b2e8Ad6370d7286056144f01110aFb70c9E] | |
[0xfc00Dc14d523dD58E8519B543ED81d6599E7B489] | |
[0x4DC10904F551a6ab1a4201de54635AA37f8bC008] | |
[0x2c0367f518f91E634d7FD2Bd2C9bEC1Ba286DaB5] | |
[0xB5eeDa63ae856a8e5E5f7Bc24874697cf38a49ae] | |
[0xc7EDC9ba2759D07023835bC388a852b379adF843] | |
[0x4C6d92569ED8e74a7ae605BddaAef86a6a4B0Ee6] | |
[0x52b8aa1DA04126c6dF52E5b8d877E8C8f487aA3B] |
This file contains hidden or 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
// SPDX-License-Identifier: BUSL-1.1 | |
pragma solidity >=0.8.4; | |
import { SafeMath } from "@openzeppelin/contracts/utils/math/SafeMath.sol"; | |
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | |
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; | |
import { UV3Math } from "./lib/UV3Math.sol"; |
NewerOlder