package main
import (
"math/big"
"github.com/Gearbox-protocol/go-liquidator/config"
"github.com/Gearbox-protocol/go-liquidator/ethclient"
"github.com/Gearbox-protocol/sdk-go/core"
"github.com/Gearbox-protocol/sdk-go/log"
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 13 columns, instead of 4. in line 7.
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
Date,BlockNum,ezETH,wstETH,cbETH,rETH,USDe,WBTC,WETH,LINK,GMX,PENDLE,ARB | |
2024-07-05,228769400,1175499.127076,49989.925614,0.000000,726484.146254,1029876.729700,0.000000,435103.218160,0.000000,0.000000,0.000000,802.734900 | |
2024-07-06,229120406,7499186.808804,1222830.659530,0.000000,3745812.670699,2289303.841861,0.000000,3142866.735386,0.000000,0.000000,0.000000,698.332800 | |
2024-07-07,229496377,7689293.579819,1565618.423922,0.000000,3837807.466191,2531527.141096,0.000000,3716364.974346,0.000000,0.000000,0.000000,776.767455 | |
2024-07-08,229851421,7443161.897844,1511429.366945,0.000000,3705467.879320,3949927.629748,0.000000,4301545.145461,0.000000,0.000000,0.000000,741.922500 | |
2024-07-09,230206028,7621722.753994,2142821.093515,0.000000,3795221.994223,4440237.313473,0.000000,4938417.608178,0.000000,0.000000,0.000000,750.662633 | |
2024-07-10,230581596,10913742.442265,5969902.204290,0.000000,4602057.270761,6056447.147765,0.000000,5637009.971367,0.000000,0.000000,0.000000,793.927200 | |
2024-07-11,230961536,11491665.196070,62506 |
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
Jun 14 05:09:36 vmi1688476.contaboserver.net go[799149]: github.com/Gearbox-protocol/anvil-manager/manager.(*rpcProxy).proxyLogs | |
Jun 14 05:09:36 vmi1688476.contaboserver.net go[799149]: /home/debian/anvil-manager/manager/rpc_proxy.go:235 | |
Jun 14 05:09:36 vmi1688476.contaboserver.net go[799149]: github.com/Gearbox-protocol/anvil-manager/manager.(*rpcProxy).ServeHTTP | |
Jun 14 05:09:36 vmi1688476.contaboserver.net go[799149]: /home/debian/anvil-manager/manager/rpc_proxy.go:212 | |
Jun 14 05:09:36 vmi1688476.contaboserver.net go[799149]: github.com/Gearbox-protocol/anvil-manager/manager.(*forksManager).handleRpc | |
Jun 14 05:09:36 vmi1688476.contaboserver.net go[799149]: /home/debian/anvil-manager/manager/forks_manager.go:288 | |
Jun 14 05:09:36 vmi1688476.contaboserver.net go[799149]: github.com/Gearbox-protocol/anvil-manager/manager.(*forksManager).Router.Handle.func1 | |
Jun 14 05:09:36 vmi1688476.contaboserver.net go[799149]: /home/debian/anvil-manager/manager/utils/http.go:58 | |
Jun 14 05:09:36 vm |
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
Jun 14 04:10:35 vmi1688476.contaboserver.net go[799149]: 2024-06-14T04:10:35.728+0200 error manager/rpc_proxy.go:235 anvil-manager logs proxy error in request {"method":"eth_getLogs"> | |
Jun 14 04:10:35 vmi1688476.contaboserver.net go[799149]: github.com/Gearbox-protocol/anvil-manager/manager.(*rpcProxy).proxyLogs | |
Jun 14 04:10:35 vmi1688476.contaboserver.net go[799149]: /home/debian/anvil-manager/manager/rpc_proxy.go:235 | |
Jun 14 04:10:35 vmi1688476.contaboserver.net go[799149]: github.com/Gearbox-protocol/anvil-manager/manager.(*rpcProxy).ServeHTTP | |
Jun 14 04:10:35 vmi1688476.contaboserver.net go[799149]: /home/debian/anvil-manager/manager/rpc_proxy.go:212 | |
Jun 14 04:10:35 vmi1688476.contaboserver.net go[799149]: github.com/Gearbox-protocol/anvil-manager/manager.(*forksManager).handleRpc | |
Jun 14 04:10:35 vmi1688476.contaboserver.net go[799149]: /home/debian/anvil-manager/manager/forks_manager.go:288 | |
Jun 14 04:10:35 vmi1688476.contaboserver.net go[799149]: github.com/Gearb |
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
type LastTs mutex[[]int64] | |
REQUEST_PER_PEER = 10 | |
func (l LastTs) check() error { | |
l.lock() | |
l.unlock() | |
fiveMinAgo:=time.Now().Sub(5*Second).Unix() | |
streamBeforeFiveMin = sort.Search(len(l), func(i int) bool { return l[i] >= fiveMinAgo }) | |
if len(l) - streamBeforeFiveMin > REQUEST_PER_PEER { |
wss://gearbox-ws.fly.dev/ws
Send ->
{"type":"subscribe:Updates", "data":{ "borrower":"0x1B3dfF537b7d46A0d30B1D20b101c483586747AA"}}
Receive updates in form of:
{
"address": "0xD3BeD41dc971225a759fFd6122Af3b40Da1e882C",
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
borrow_amt | borrow_usd | init_col | col_usd | underlying_token | |
--------------------+--------------------+-------------------+--------------------+-------------------------------------------- | |
16992380.838408105 | 16995650.68225284 | 2978216.706608446 | 2978789.8048492973 | 0x6B175474E89094C44Da98b954EedeAC495271d0F | |
14837.437708756617 | 23430508.59916383 | 3018.486498765127 | 4766636.615703305 | 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 | |
26601062.457343996 | 26601062.457343996 | 4889989.477375998 | 4889989.477375998 | 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | |
with t1 as (select underlying_token, account, init_col*price col_usd, init_col, borrow_amt , borrow_amt *price borrow_usd, (borrow_amt+ init_col)*price total_usd from |
All the operations done on v2:
depositAll(uint256,bool)
CloseCreditAccount(address,address)
swapExactTokensForTokens(uint256,uint256,address[],address,uint256)
withdrawAndUnwrap(uint256,bool)
unwrap(uint256)
exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160))
DecreaseBorrowedAmount(address,uint256)
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
{ | |
"ConvexBooster": { | |
"methods": [ | |
"depositAll", | |
"deposit2", | |
"withdraw2", | |
"withdrawAll" | |
], | |
"stat": { | |
"CONVEX_BOOSTER": [ |
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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"os" | |
"github.com/Khan/genqlient/graphql" |
NewerOlder