ARC-23: Allow Dual Reward Proxy Contract Changes in the Generator

Summary

Upgrade the Generator and Factory contracts on Terra 2 Astroport so that governance can update dual rewards proxy contract addresses inside the Generator. This makes proposals such as ARC-20 and 21 feasible.

Abstract

In order for proposals such as ARC-20 and ARC-21 (which deal with token emissions) to be feasible, the Astroport Generator contract needs to be upgraded so that governance can change dual reward proxy addresses. Currently, governance cannot do these changes after a LP token is initialized in the Generator which limits potential token emission changes.

Specification

The Astroport Terra 2 Generator can be found here and the Factory contract can be found here. The proposal’s executable message looks as follows:

[
      {
        "order": "1",
        "msg": {
          "wasm": {
            "migrate": {
              "contract_addr": "terra1ksvlfex49desf4c452j6dewdjs6c48nafemetuwjyj6yexd7x3wqvwa7j9",
              "msg": "ewogICAgImZhY3RvcnkiOiAidGVycmExNHg5ZnIwNTV4NWh2cjQ4aHp5MnQ0cTdrdmp2ZnR0c3Z4dXNhNHhzZGN5NzAybW56c3Z1cXByZXI4ciIsCiAgICAid2hpdGVsaXN0X2NvZGVfaWQiOiA3MAp9",
              "new_code_id": 277
            }
          }
        }
      },
      {
        "order": "2",
        "msg": {
          "wasm": {
            "migrate": {
              "contract_addr": "terra14x9fr055x5hvr48hzy2t4q7kvjvfttsvxusa4xsdcy702mnzsvuqprer8r",
              "msg": "eyJwYXJhbXMiOiAiZXlKM2FHbDBaV3hwYzNSZlkyOWtaVjlwWkNJNklEY3dmUT09In0=",
              "new_code_id": 278
            }
          }
        }
      }
]

Where:

{"whitelist_code_id": 70} -> eyJ3aGl0ZWxpc3RfY29kZV9pZCI6IDcwfQ==

{"params": "eyJ3aGl0ZWxpc3RfY29kZV9pZCI6IDcwfQ=="} -> eyJwYXJhbXMiOiAiZXlKM2FHbDBaV3hwYzNSZlkyOWtaVjlwWkNJNklEY3dmUT09In0=

{
    "factory": "terra14x9fr055x5hvr48hzy2t4q7kvjvfttsvxusa4xsdcy702mnzsvuqprer8r",
    "whitelist_code_id": 70
} -> ewogICAgImZhY3RvcnkiOiAidGVycmExNHg5ZnIwNTV4NWh2cjQ4aHp5MnQ0cTdrdmp2ZnR0c3Z4dXNhNHhzZGN5NzAybW56c3Z1cXByZXI4ciIsCiAgICAid2hpdGVsaXN0X2NvZGVfaWQiOiA3MAp9

Copyright

Copyright and related rights waived via CC0.

3 Likes