Badger-Finance / badger-multisig

Badger DAO's EVM multisig operations.
GNU Affero General Public License v3.0
48 stars 32 forks source link

solve tree deficits once and for all #620

Closed petrovska-petro closed 1 year ago

petrovska-petro commented 2 years ago

Already have passed 3 weeks with guarded state, each with 2k badger a week. Send amount from trops ideally

gosuto-inzasheru commented 2 years ago

current script output:

{
    "Badger": -197713.42410508182,
    "Badger Sett Aura BAL": 1.3010426069826053e-18,
    "Badger Sett Convex CRV": -70969.94764214916,
    "Badger Sett Convex Token": 384.6503769501169,
    "Badger Sett Digg": 0.935864945381276,
    "Badger Vested Escrow Convex Token": -6518.236892223824,
    "DefiDollar DAO": 2195.8700390045724,
    "Digg": 0.09588661838405166,
    "Digg Rebase Option 3": 0.0,
    "FARM Reward Token": 682.8969667102999,
    "Gravitationally Bound AURA": 0.0,
    "Meta": 4.163336342344337e-17,
    "SushiBar": 4721.455556775742
}

but numbers vary slightly when comparing to older output in #emissions-tech..

petrovska-petro commented 2 years ago

snap prior to posting:

{
    "Badger": -190176.7077194018,
    "Badger Sett Aura BAL": 1.1102230246251565e-16,
    "Badger Sett Convex CRV": -70142.19797749718,
    "Badger Sett Convex Token": 384.6503769501169,
    "Badger Sett Digg": 0.935864945381276,
    "Badger Vested Escrow Convex Token": -6319.229136512462,
    "Balancer Aave Boosted StablePool (USD)": 0.0,
    "DefiDollar DAO": 2195.8700390045724,
    "Digg": 0.09577616435483627,
    "Digg Rebase Option 3": 0.0,
    "FARM Reward Token": 682.8969667102999,
    "Gravitationally Bound AURA": 0.0,
    "Meta": 4.163336342344337e-17,
    "SushiBar": 4718.152835193556
}
petrovska-petro commented 2 years ago

There is in dripper 16841.91964285714 BADGER to be release also.

snapshot result for 0xD0A7A8B98957b9CD3cFB9c0425AbE44551158e9e:
                      balance_before                 balance_after                balance_delta
symbol                                                                                         
BADGER  5,297,835.373495464018535448  5,123,677.293138321158535448  -174,158.080357142860000000
{
│   'ethereum_client': <gnosis.eth.ethereum_client.EthereumClient object at 0x7fbe22f6a9a0>,
│   'safe_address': '0xD0A7A8B98957b9CD3cFB9c0425AbE44551158e9e',
│   'to': '0x40A2aCCbd92BCA938b02010E17A5b8929b49130D',
│   'value': 0,
│   'data': HexBytes('0x8d80ff0a00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000099003472a5a71965499acd81997a54bba8d852c6e53d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb0000000000000000000000005495bdb1f4c170e5c1a939382041cf46d7f14ead0000000000000000000000000000000000000000000024e120e25bc3ebcdeb0000000000000000'),
│   'operation': 1,
│   'safe_tx_gas': 0,
│   'base_gas': 0,
│   'gas_price': 0,
│   'gas_token': '0x0000000000000000000000000000000000000000',
│   'refund_receiver': '0x0000000000000000000000000000000000000000',
│   'signatures': b'',
│   '_safe_nonce': 45,
│   '_safe_version': '1.3.0',
│   '_chain_id': None
}
petrovska-petro commented 2 years ago

sending badger to dripper q3: https://etherscan.io/tx/0xa82a1686c8e06b2583d1134917a779ccc1238ae1b3d03c093f9d414107a4afdc. will resolve deficit along this quarter

gosuto-inzasheru commented 2 years ago

suggesting to send 70k bcvxcrv and 6k bvecvx to tree. deficit after that should be minimal, and this would be better than overshooting it and having a surplus in the tree.

petrovska-petro commented 2 years ago

waiting on thresher to be run on trops and then we can send first wave of ~25k bcvxcrv (once consolidated) to tree and finalised the bvecvx (~6.2k, leaving small deficit):

{
    "Badger": -174072.78446291643,
    "Badger Sett Aura BAL": 0.0,
    "Badger Sett Balancer Aave Boosted StablePool (USD)": 0.0,
    "Badger Sett Convex CRV": -70713.57930092415,
    "Badger Sett Convex Token": 384.6503769501169,
    "Badger Sett Digg": 0.935864945381276,
    "Badger Vested Escrow Convex Token": -6294.875731707318,
    "Balancer Aave Boosted StablePool (USD)": 0.0,
    "DefiDollar DAO": 2195.8700390045724,
    "Digg": 0.09588663364137773,
    "Digg Rebase Option 3": 0.0,
    "FARM Reward Token": 682.8969667102999,
    "Gravitationally Bound AURA": 0.0,
    "Meta": 4.163336342344337e-17,
    "SushiBar": 4721.455556775742
}
petrovska-petro commented 2 years ago

latest, check on cycle 5946:

{
    "Badger": -133754.09797036814,
    "Badger Sett Aura BAL": 0.0,
    "Badger Sett Balancer Aave Boosted StablePool (USD)": 0.0,
    "Badger Sett Convex CRV": -68707.92657355244,
    "Badger Sett Convex Token": 383.7663102293145,
    "Badger Sett Digg": 0.931722204919275,
    "Badger Vested Escrow Convex Token": -6597.864401409286,
    "Balancer Aave Boosted StablePool (USD)": 0.0,
    "DefiDollar DAO": 2195.8700390045724,
    "Digg": 0.002208795892734372,
    "Digg Rebase Option 3": 0.0,
    "FARM Reward Token": 682.8969667102999,
    "Gravitationally Bound AURA": 0.0,
    "Meta": 4.163336342344337e-17,
    "SushiBar": 4719.687492639641
}

if willing to verify in rewards repo, run:

python -m scripts.check_claimable
petrovska-petro commented 2 years ago

send initial transfer of bcvxcrv to deal with deficit from trops: 0x4171c91d46d7d70a63f8d9744645f93a95ec32f2da2a21a8a6ebf13ec42789b3

petrovska-petro commented 2 years ago

cycle 5983, post bcvxcrv trasnfer:

{
    "Badger": -145909.88004379836,
    "Badger Sett Aura BAL": 0.0,
    "Badger Sett Balancer Aave Boosted StablePool (USD)": 0.0,
    "Badger Sett Convex CRV": -40811.49338830855,
    "Badger Sett Convex Token": 384.6503769501169,
    "Badger Sett Digg": 0.9358649453812742,
    "Badger Vested Escrow Convex Token": -6298.906520410892,
    "Balancer Aave Boosted StablePool (USD)": 0.0,
    "DefiDollar DAO": 2195.8700390045724,
    "Digg": 0.09588666463775297,
    "Digg Rebase Option 3": 0.0,
    "FARM Reward Token": 682.8969667102999,
    "Gravitationally Bound AURA": 0.0,
    "Meta": 4.163336342344337e-17,
    "SushiBar": 4721.455556775742
}
petrovska-petro commented 2 years ago

transfer of 6k bvecvx into tree to tackle deficit and also taking the opportunity to send bal and aurabal funds to vault to consolidate there.

snapshot result for 0xA9ed98B5Fb8428d68664f3C5027c62A10d45826b:
                    balance_before              balance_after              balance_delta
symbol                                                                                  
BAL       5,361.824223446195038142       0.000000000000000000  -5,361.824223446195038142
bveCVX   66,905.917903438819400209  60,905.917903438819400209  -6,000.000000000000000000
auraBAL       5.708424916083121014       0.000000000000000000      -5.708424916083121014 
{
│   'ethereum_client': <gnosis.eth.ethereum_client.EthereumClient object at 0x7fde0804ee50>,
│   'safe_address': '0xA9ed98B5Fb8428d68664f3C5027c62A10d45826b',
│   'to': '0x40A2aCCbd92BCA938b02010E17A5b8929b49130D',
│   'value': 0,
│   'data': HexBytes('0x8d80ff0a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001cb00fd05d3c7fe2924020620a8be4961bbaa747e630500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000660802fc641b154aba66a62137e71f331b6d787a00000000000000000000000000000000000000000000014542ba12a337c0000000ba100000625a3754423978a60c9317c58a424e3d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000d0a7a8b98957b9cd3cfb9c0425abe44551158e9e000000000000000000000000000000000000000000000122aa42430fe324e7be00616e8bfa43f920657b3497dbf40d6b1a02d4608d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000d0a7a8b98957b9cd3cfb9c0425abe44551158e9e0000000000000000000000000000000000000000000000004f386637761f9b76000000000000000000000000000000000000000000'),
│   'operation': 1,
│   'safe_tx_gas': 0,
│   'base_gas': 0,
│   'gas_price': 0,
│   'gas_token': '0x0000000000000000000000000000000000000000',
│   'refund_receiver': '0x0000000000000000000000000000000000000000',
│   'signatures': b'',
│   '_safe_nonce': 13,
│   '_safe_version': '1.3.0',
│   '_chain_id': None
}
petrovska-petro commented 2 years ago

bvecvx transfer tx: https://etherscan.io/tx/0x3ce66e53583d836e628c29ca5c2d57124809e995e602918cc3ad3b42abe93d8d

petrovska-petro commented 2 years ago

cycle 5995, post bvecvx trasnfer:

{
    "Badger": -150221.78544328696,
    "Badger Sett Aura BAL": 2.842170943040401e-14,
    "Badger Sett Balancer Aave Boosted StablePool (USD)": 0.0,
    "Badger Sett Convex CRV": -40808.821490484406,
    "Badger Sett Convex Token": 384.6503769501169,
    "Badger Sett Digg": 0.935864945381276,
    "Badger Vested Escrow Convex Token": -180.5857749616698,
    "Balancer Aave Boosted StablePool (USD)": 0.0,
    "DefiDollar DAO": 2195.8700390045724,
    "Digg": 0.09588666463775297,
    "Digg Rebase Option 3": 0.0,
    "FARM Reward Token": 682.8969667102999,
    "Gravitationally Bound AURA": 0.0,
    "Meta": 4.163336342344337e-17,
    "SushiBar": 4721.455556775742
}
gosuto-inzasheru commented 2 years ago

looking good, tree only needs more bcvxcrv:

{
    "Badger": -108162.87525410517,
    "Badger Sett Aura BAL": -7.261930488054759,
    "Badger Sett Balancer Aave Boosted StablePool (USD)": 0.0,
    "Badger Sett Convex CRV": -41006.855192784,
    "Badger Sett Convex Token": 384.6503769501169,
    "Badger Sett Digg": 0.935864945381276,
    "Badger Vested Escrow Convex Token": -312.95555839505687,
    "Balancer Aave Boosted StablePool (USD)": 0.0,
    "DefiDollar DAO": 2195.8700390045715,
    "Digg": 0.0958866776600642,
    "Digg Rebase Option 3": 0.0,
    "FARM Reward Token": 682.8969667102999,
    "Gravitationally Bound AURA": -118.46544789321342,
    "Meta": 4.163336342344337e-17,
    "SushiBar": 4721.455556775742
}

(edit: cycle 6229)

gosuto-inzasheru commented 1 year ago

cycle 6644

{
    "Badger": -41470.39207607228,
    "Badger Sett Aura BAL": 23.912885278173235,
    "Badger Sett Balancer Aave Boosted StablePool (USD)": 0.0,
    "Badger Sett Convex CRV": -41535.945522893686,
    "Badger Sett Convex Token": 384.6503769501169,
    "Badger Sett Digg": 0.935864945381276,
    "Badger Vested Escrow Convex Token": -383.8509261665895,
    "Balancer Aave Boosted StablePool (USD)": 0.0,
    "DefiDollar DAO": 2195.8700390045724,
    "Digg": 0.09588668183777127,
    "Digg Rebase Option 3": 0.0,
    "FARM Reward Token": 682.8969667102999,
    "Gravitationally Bound AURA": 190.98864214721834,
    "Meta": 2.7755575615628914e-17,
    "SushiBar": 4721.455556775742
}
gosuto-inzasheru commented 1 year ago

cycle 6757

{
    "Badger": -36789.20424762077,
    "Badger Sett Aura BAL": 0.0,
    "Badger Sett Balancer Aave Boosted StablePool (USD)": 7.105427357601002e-15,
    "Badger Sett Convex CRV": -7232.727269604715,
    "Badger Sett Convex Token": 384.65037695011597,
    "Badger Sett Digg": 0.935864945381276,
    "Badger Vested Escrow Convex Token": -367.89087562916393,
    "Balancer Aave Boosted StablePool (USD)": 0.0,
    "DefiDollar DAO": 2195.8700390045724,
    "Digg": 0.09588668244476306,
    "Digg Rebase Option 3": 0.0,
    "FARM Reward Token": 682.8969667102999,
    "Gravitationally Bound AURA": -37.09702296661999,
    "Meta": 2.7755575615628914e-17,
    "SushiBar": 4721.455556775742
}
gosuto-inzasheru commented 1 year ago

7200 bcvxcrv to tree: https://etherscan.io/tx/0x060778221faff94ed681c9181c1a2e756d2c59c254fb2160a671f2b05103840e

gosuto-inzasheru commented 1 year ago

something is off, after sending 7200 bcvxcrv to the tree it now has a surplus of >7k:

{
    "Badger": -141554.47377789006,
    "Badger Sett Aura BAL": 81.6020833050934,
    "Badger Sett Balancer Aave Boosted StablePool (USD)": 0.0,
    "Badger Sett Convex CRV": 7890.214635108743,
    "Badger Sett Convex Token": 384.6503769501169,
    "Badger Sett Digg": 0.9082217695152757,
    "Badger Vested Escrow Convex Token": -106.80898489538231,
    "Balancer Aave Boosted StablePool (USD)": 0.0,
    "DefiDollar DAO": 2195.8700390045724,
    "Digg": 0.09588668244476306,
    "Digg Rebase Option 3": -4.5287334e+19,
    "FARM Reward Token": 682.8969667102999,
    "Gravitationally Bound AURA": 1206.52941185897,
    "Meta": 2.7755575615628914e-17,
    "SushiBar": 4896.360458516494
}
gosuto-inzasheru commented 1 year ago

anyway badger will be taken care of by the q4 dripper; deficits solved :)