Skip to content

Instantly share code, notes, and snippets.

View ValarDragon's full-sized avatar

Dev Ojha ValarDragon

View GitHub Profile

0x24077885f6c8b603b0a18b02f90fac6943c63a9f787ffd7a71ad1056bf245d4c

Proposal 10 description

Proposal 10 rectifies the unintended errors implemented as a result of proposal 6. In addition, this proposal offers a way of compensating those who missed rewards as part of those errors.

The proposal 6 error went uncaught in the governance approval process, and was approved and included on chain. This highlights the need for more tooling and standards being set here for ensuring that any manual adjustments to OSMO pool incentives get much more auditability.

Proposal 9's long form description had an error in the text (but the actual on-chain proposal was correct). Thus, we have re-proposed for full clarity here. Ideally proposal 9 would not pass deposit, but if it did pass, it would have the identical effect of this proposal passing.

Proposal 9 description

Proposal 6, a proposal that got passed offering a change in incentives distributions in order to include Regen pools, had a data entry error that differed from the proposal text. This error went uncaught in the governance approval process, and was approved and included on chain. This highlights the need for more tooling and standards being set here for ensuring that any manual adjustments to OSMO pool incentives get much more auditability.

Proposal 6 was passed in the last epoch at the time of this proposal's writing. This proposal offers a governance proposal to align the ratios with the proposer's perceived intent of the text in proposal 6, except with the following modification:

The Community pool allocation of LP incentives is lowered from 5% to 1%, with the remaining 4% being distributed evenly across all pools with lower than expected allocations per the text of prop 6.

# This is a notably edited copy of STARKWare's code for generating MDS.
# New Fields, optimized MDS matrix generation for low state size,
# Poseidon parameterization, and generating Cpp/Rust code has been added here.
# Copying their license here
# Copyright 2019 StarkWare Industries Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#

Keybase proof

I hereby claim:

  • I am valardragon on github.
  • I am dev_o (https://keybase.io/dev_o) on keybase.
  • I have a public key ASDrU6NLOkJUOn2d1fXIzu2JzrXpSPW_Gd9S1VMF-HuoeAo

To claim this, I am signing this object:

# found using https://github.com/kwantam/addchain
t10 = input # 0 : 1
t1 = sqr(t10) # 1 : 2
t0 = sqr(t1) # 2 : 4
t3 = t0 * t1 # 3 : 6
t6 = t3 * t10 # 4 : 7
t7 = t6 * t1 # 5 : 9
t12 = t7 * t3 # 6 : 15
t13 = t12 * t0 # 7 : 19
t16 = t12 * t3 # 8 : 21
# found using https://github.com/kwantam/addchain
t10 = input # 0 : 1
t0 = sqr(t10) # 1 : 2
t1 = t0 * t10 # 2 : 3
t16 = sqr(t0) # 3 : 4
t6 = sqr(t16) # 4 : 8
t5 = t6 * t0 # 5 : 10
t0 = t6 * t16 # 6 : 12
t12 = t5 * t16 # 7 : 14
t2 = sqr(t6) # 8 : 16
The following were computed as
mulg1 := curve.GetG1().Mul(scalar)
mulgT, _ := mulg1.Pair(curve.GetG2())
marshalled = mulgT.Marshal()
fmt.Println("Coordinate wise representation of g1 * " + scalar.String() + " paired with g2")
for i := 0; i < 12; i++ { // Code to print coordinates
fmt.Println(marshalled[i*32 : (i+1)*32])
}
Coordinate wise representation of g1 * 21573598428667592396139276005162834891472195761141901906496209931761605261765 paired with g2
@ValarDragon
ValarDragon / solver.py
Created March 21, 2017 00:42
Match me
"""
author: Valar_Dragon
"""
#https://www.youtube.com/watch?v=Qcv1IqHWAzg
import hashlib
def main(maleFile,femaleFile,reverse):
males = [[-10000]]
maleIDNameMap = {}
females = [[-10000]]