Skip to content

Commit

Permalink
fix: resove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGuru7 committed Sep 28, 2023
1 parent b15b6a0 commit ab37758
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
9 changes: 7 additions & 2 deletions vips/vip-178/vip-178-testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export const vip178Testnet = () => {
signature: "setDirectPrice(address,uint256)",
params: [agEUR, parseUnits("1.06", 18)],
},
{
target: CHAINLINK_ORACLE,
signature: "setDirectPrice(address,uint256)",
params: [ANGLE, parseUnits(".032", 18)],
},
{
target: RESILIENT_ORACLE,
signature: "setTokenConfig((address,address[3],bool[3]))",
Expand All @@ -49,7 +54,7 @@ export const vip178Testnet = () => {
{
target: agEUR,
signature: "faucet(uint256)",
params: [parseUnits("10000", 18)],
params: [parseUnits("9000", 18)],
},
{
target: agEUR,
Expand All @@ -59,7 +64,7 @@ export const vip178Testnet = () => {
{
target: agEUR,
signature: "approve(address,uint256)",
params: [POOL_REGISTRY, parseUnits("10000", 18)],
params: [POOL_REGISTRY, parseUnits("9000", 18)],
},
{
target: POOL_REGISTRY,
Expand Down
13 changes: 7 additions & 6 deletions vips/vip-178/vip-178.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const NORMAL_TIMELOCK = "0x939bD8d64c0A9583A7Dcea9933f7b21697ab6396";
const REWARD_DISTRIBUTOR = "0x177ED4625F57cEa2804EA3A396c8Ff78f314F1CA";
const ANGLE = "0x97B6897AAd7aBa3861c04C0e6388Fc02AF1F227f";
const STABLECOIN_COMPTROLLER = "0x94c1495cD4c557f1560Cbd68EAB0d197e6291571";
const MAX_STALE_PERIOD = 60 * 100;
const MAX_STALE_PERIOD_AGEUR = 60 * 100;
const MAX_STALE_PERIOD_ANGLE = 60 * 25;

export const vip178 = (maxStalePeriod?: number) => {
const meta = {
Expand All @@ -36,7 +37,7 @@ export const vip178 = (maxStalePeriod?: number) => {
{
target: BINANCE_ORACLE,
signature: "setMaxStalePeriod(string,uint256)",
params: ["AGEUR", maxStalePeriod || MAX_STALE_PERIOD],
params: ["AGEUR", maxStalePeriod || MAX_STALE_PERIOD_AGEUR],
},
{
target: RESILIENT_ORACLE,
Expand All @@ -57,7 +58,7 @@ export const vip178 = (maxStalePeriod?: number) => {
{
target: BINANCE_ORACLE,
signature: "setMaxStalePeriod(string,uint256)",
params: ["ANGLE", maxStalePeriod || MAX_STALE_PERIOD],
params: ["ANGLE", maxStalePeriod || MAX_STALE_PERIOD_ANGLE],
},
{
target: RESILIENT_ORACLE,
Expand All @@ -78,7 +79,7 @@ export const vip178 = (maxStalePeriod?: number) => {
{
target: TREASURY,
signature: "withdrawTreasuryBEP20(address,uint256,address)",
params: [agEUR, parseUnits("10000", 18), NORMAL_TIMELOCK],
params: [agEUR, parseUnits("9000", 18), NORMAL_TIMELOCK],
},
{
target: agEUR,
Expand All @@ -88,7 +89,7 @@ export const vip178 = (maxStalePeriod?: number) => {
{
target: agEUR,
signature: "approve(address,uint256)",
params: [POOL_REGISTRY, parseUnits("10000", 18)],
params: [POOL_REGISTRY, parseUnits("9000", 18)],
},
{
target: POOL_REGISTRY,
Expand All @@ -108,7 +109,7 @@ export const vip178 = (maxStalePeriod?: number) => {
{
target: TREASURY,
signature: "withdrawTreasuryBEP20(address,uint256,address)",
params: [agEUR, parseUnits("17650", 18), NORMAL_TIMELOCK],
params: [ANGLE, parseUnits("17650", 18), NORMAL_TIMELOCK],
},

{
Expand Down

0 comments on commit ab37758

Please sign in to comment.