Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable buybacks #390

Merged
merged 16 commits into from
Dec 25, 2021
Merged

Re-enable buybacks #390

merged 16 commits into from
Dec 25, 2021

Conversation

eswak
Copy link
Contributor

@eswak eswak commented Dec 18, 2021

Re-enable buybacks

Last week, we had to use the Guardian to pause the buybacks. This proposal re-enables buybacks.

Also updates the LBPSwapper to shift weights from 95% -> 5%, instead of 99% -> 1%.

FEI->TRIBE LBP Swapper:  0xC05FAF6C5C4bC1bD841AdFC92b3D3f20180F26E8
LBP Pool deployed to:  0xc35bdda2e93c401c6645e0d8a0b2c86906c51710
LBP Pool pool Id:  0xc35bdda2e93c401c6645e0d8a0b2c86906c51710000200000000000000000111

Proposal calldata :

0x7d5e81e200000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000005600000000000000000000000000000000000000000000000000000000000000006000000000000000000000000904deb2dac1edfcbbb69b9c279ae5f75e57cf5e900000000000000000000000016ef9601076d45e8cc564cdd91e5df3ae83dd3b3000000000000000000000000956f47f50a910163d8bf957cf5846d573e7f87ca000000000000000000000000904deb2dac1edfcbbb69b9c279ae5f75e57cf5e9000000000000000000000000c05faf6c5c4bc1bd841adfc92b3d3f20180f26e8000000000000000000000000ff6f59333cfd8f4ebc14ad0a0e181a83e655d2570000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000024776d1a01000000000000000000000000c05faf6c5c4bc1bd841adfc92b3d3f20180f26e8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024ba5a2d33000000000000000000000000c05faf6c5c4bc1bd841adfc92b3d3f20180f26e800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004440c10f19000000000000000000000000c05faf6c5c4bc1bd841adfc92b3d3f20180f26e8000000000000000000000000000000000000000000034f086f3b33b6840000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043f4ba83a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004df778d26000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044562f80fa000000000000000000000000107460564896377ba6cdcc7516c7eab65e32e36000000000000000000000000089dfbc12001b41985efabd7dfcae6a77b22e4ec300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020655706461746520746865205452494245206275796261636b2042616c616e636572204c42500a0a42616c616e6365722077696c6c20736f6f6e2061637469766174652070726f746f636f6c20666565732e20546865792061736b656420757320746f2072652d6465706c6f7920746865204c697175696469747920426f6f74737472617070696e6720506f6f6c20746861742077652075736520666f72205452494245206275796261636b7320776974682061206e657720666163746f72792c207468617420776f6e277420686176652070726f746f636f6c20666565732c2064756520746f206120706f74656e7469616c206275672077697468204c425073207768656e2061637469766174696e672070726f746f636f6c20666565732e0a0a546869732070726f706f73616c206163746976617465732061206e65772042616c616e63657220706f6f6c20666f72205452494245206275796261636b732c207265706c6163696e6720746865206f6c64206f6e652e0a0a546865206e6577206275796261636b204c425020616c736f20736869667420776569676874732066726f6d2031302520746f203930252c20696e7374656164206f6620746865206f726967696e616c20312520746f203939252c20746f2072656475636520736c697070616765207468652070726f746f636f6c2067657473206f6e206275796261636b732e0a0000000000000000000000000000000000000000000000000000

@eswak eswak marked this pull request as ready for review December 20, 2021 15:40
contracts/pcv/balancer/BalancerLBPSwapper.sol Outdated Show resolved Hide resolved
proposals/description/buyback_newpool.ts Show resolved Hide resolved

const txReceipt = await tx.wait();
const { logs: rawLogs } = txReceipt;
const noFeeFeiTribeLBPAddress = `0x${rawLogs[rawLogs.length - 1].topics[1].slice(-40)}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code will never die ;)

proposals/dao/buyback_newpool.ts Outdated Show resolved Hide resolved
proposals/dao/buyback_newpool.ts Outdated Show resolved Hide resolved
proposals/dao/buyback_newpool.ts Outdated Show resolved Hide resolved
Joeysantoro
Joeysantoro previously approved these changes Dec 21, 2021

export const validate: ValidateUpgradeFunc = async (addresses, oldContracts, contracts) => {
// pcvEquityMinter should target the new LBPSwapper
expect(await contracts.pcvEquityMinter.target()).to.be.equal(addresses.noFeeFeiTribeLBPSwapper);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer to pull this variable out of the address object for readability

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like to use contracts.* and addresses.* for readability actually


// No tokens should remain anywhere on our contracts
expect(await contracts.fei.balanceOf(addresses.feiTribeLBPSwapper)).to.be.equal('0');
expect(await contracts.tribe.balanceOf(addresses.feiTribeLBPSwapper)).to.be.equal('0');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above. prefer to pull out of the address object for readability

Joeysantoro
Joeysantoro previously approved these changes Dec 24, 2021
@Joeysantoro Joeysantoro merged commit 3ac2c3e into develop Dec 25, 2021
@Joeysantoro Joeysantoro deleted the feat/buyback_newpool branch December 25, 2021 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants