LlamaRisk Services Proposal April 2026-2027

Summary

LlamaRisk operates as the risk provider of the Curve ecosystem, responsible for quantitative risk modeling, collateral onboarding frameworks, ecosystem development support, and governance-aligned growth strategy. Our mandate is to ensure that Curve’s expansion — across crvUSD, LlamaLend, and AMM markets — is grounded in rigorous analysis, supported by proactive monitoring, and guided by structured risk controls.

LlamaRisk seeks to renew its partnership with Curve for an annual engagement spanning April 2026-2027. Over the past year, we have significantly deepened our contributions across risk management, governance, and ecosystem growth — navigating periods of market stress, preparing for LlamaLend v2, and applying our quantitative research toward meaningful protocol optimizations.

Our proposed scope for the coming year builds on these achievements with an emphasis on supporting the rollout of LlamaLend v2, enhancing crvUSD peg resilience, and scaling risk infrastructure across all of Curve’s product offerings.

Our comprehensive suite of services serve a dual mandate to strengthen Curve’s resiliency while ensuring a strong, competitive growth trajectory. Our services include:

  • Quantitative research and simulation, including parametrization frameworks for LlamaLend v2, market stress testing, LP collateral risk modeling, AMM pool optimizations, and crvUSD stability analysis as underlying strategies evolve,
  • Qualitative risk evaluation, including asset risk assessments for new collateral types (Pendle PTs, LP tokens, RWAs), PegKeeper curation, and market lifecycle management,
  • Risk monitoring and tooling, including continuous monitoring, Risk Portal dashboards, and oracle and monetary policy R&D,
  • Growth and integration support, including advancing crvUSD demand through Curve-aligned strategies (e.g., crvUSD IPOR vault), grants administration, B2B engagement with integrating protocols, and coordination with key stakeholders.
  • DAO governance advisory. A core value proposition is to apply our risk and growth services toward providing the DAO with trusted, independent advisory that is backed by high-quality and well-articulated research and protocol insights.

Key accomplishments from our 2025-2026 engagement include:

  • 54 governance proposals submitted across LlamaLend (27), crvUSD/MonPol/PegKeeper (10), Gauge management (7), AMM/Pool (3), and other categories (7), with strong community engagement
  • Secured 250,000 OP tokens from Optimism for bootstrapping LlamaLend v2 on Optimism
  • LlamaLend infrastructure upgrades, such as EMAMonetaryPolicy, oracle proxy, oracle implementation enhancements, and PT oracle development for LLV2 markets.
  • Risk and optimization methodologies for major considerations relevant to crvUSD and LlamaLend, including monetary policy performance, debt ceiling risk exposure, LLAMMA parameterization, and YieldBasis scaling.
  • YieldBasis risk analysis and action response: In addition to active research into YieldBasis impact on Curve, we have put several crvUSD resiliency initiatives into effect and are coordinating short/mid/long term improvements via a crvUSD/YB task force.
  • Market deprecation framework developed and applied on Sonic, reducing TVL exposure in underperforming markets by ~50%

The Community Fund that has historically financed Curve’s service providers is finite. Sustaining the ecosystem’s critical infrastructure requires a deliberate shift toward funding operations from recurring protocol revenue. LlamaRisk’s 2026 budget reflects this transition: we propose $360K in crvUSD from the DAO Treasury alongside a 2,500,000 CRV vest — maintaining the same total budget as 2025 while reducing the protocol’s dependence on non-renewable CRV reserves.


Section 1: 2025 Retrospective

The 2025-2026 grant period has been a transformative year for LlamaRisk’s contributions to Curve. As the protocol expanded with new products, new assets, and the integration of YieldBasis, our role is evolving from periodic risk assessment toward continuous monitoring, proactive governance engagement, and hands-on crisis management.

We submitted 54 governance proposals spanning LlamaLend parameter optimization, crvUSD monetary policy calibration, gauge management, and oracle upgrades — each backed by rigorous research and quantitative analysis. Our work directly strengthened protocol resilience during periods of market stress, advanced preparation for LlamaLend v2, and addressed newly introduced stability challenges as the stablecoin backing has evolved.

On the growth side, we secured a 250,000 OP token grant from Optimism for bootstrapping LlamaLend v2, launched fee-free IPOR vaults to deepen crvUSD lending liquidity - which has grown to over $1M TVL and served as a meaningful stability anchor during periods of peg stress - and facilitated markets deployment and optimization for asset issuers on behalf of the DAO. Our collaboration with Swiss Stake deepened, with a particular focus on preparations for LlamaLend v2.

We have developed a comprehensive suite of risk tooling for LlamaLend: our debt ceiling methodology is now ready for automated deployment across LlamaLend v2 markets, the LLAMMA Simulator is being transformed into a continuous monitoring system, and our Pendle PT research has laid the groundwork for onboarding a new class of collateral assets. The market deprecation framework, first applied on Sonic, established a replicable process for safely winding down markets in need of deprecation.

The YieldBasis integration tested crvUSD’s stability infrastructure in new ways. Our analysis identified YB as a first-order driver of PegKeeper inventory dynamics, directly motivating our work on monetary policy smoothing and PegKeeper management. We are placing diligent focus on maintaining peg resilience over the next year.

You can read about our work over the past year in detail in the reply to this post.


Section 2: 2026 Services Outline

The coming year brings two major inflection points for Curve: the launch of LlamaLend v2 and the continued scaling of crvUSD, driven primarily by YieldBasis. Both require a shift from periodic analysis to continuous, automated risk management. Our 2026 services are organized around three pillars:

  • Quantitative R&D
  • Risk and Growth Consultancy
  • Qualitative Risk Evaluation

2.1 Quantitative Research and Development

2.1.1 LlamaLend v2 Parametrization & Risk Management

v2 introduces contract-level borrow caps, arbitrary market pairings, and new collateral classes (LP tokens and PT tokens) that demand a comprehensive risk infrastructure:

  • Debt Ceiling and Borrow Cap Methodology: Debt ceiling and borrow caps calibrated using empirical liquidity shock scenarios, 99th-percentile expected shortfall estimates, and observed borrowing behavior of active market participants, allowing debt ceilings to reflect liquidation capacity under stressed market conditions while being continuously monitored and updated as liquidity, volatility, and borrower dynamics evolve.


Excerpt: sUSDe-USDC Liquidity Shock Contraction (red) vs. empirical data points (blue)

  • Continuous Liquidation and Loan Discount Calibration: Liquidation and loan discounts are calibrated using the LLAMMA Simulator, which evaluates parameter performance along historical price paths. We enabled timely parameters by replaying updated price data, tracking realized discount and loss metrics, and updating parameters accordingly. This should contribute to the prevention of bad debt situations such as the October 10th crash.


Excerpt: Liquidation and Loan Discount Alerts for Mint and Lend Market based on LlammaSimulator

  • PT Oracle Framework: PT oracle framework development focuses on accurate price tracking of principal tokens by integrating market pricing, yield dynamics, and redemption mechanics. Continuous monitoring evaluates deviations between oracle prices and market prices, detecting persistent tracking errors or liquidity distortions and triggering recalibration to maintain reliable pricing for lending, collateral valuation, and liquidation processes.


Excerpt from "PT Oracle Design Explorations

  • Monetary Policy Optimization: for the mint and LlamaLend market for both standard and leverage looping market, as conducted earlier this year. Examples of our analyses are plentiful on the forum [1], [2].
  • Safe Market Deployment Support: consultancy for new market onboardings involving market configuration of LLAMMA-based markets (A, fee, liquidation_discount, loan_discount), slection and configuration of monetary policy and economic oracle design with regard to suitability.


Source: LlammaSimulator V2 - ETH/USDT A Experiment

  • Wider Integration Support: consultancy for new market onboardings, working with ecosystem partners and asset issuers to integrate new assets into the protocol (e.g., PegKeeper integrations such as frxUSD or GHO).
  • Deprecation Handling and Housekeeping: Planning and support for safe protocol migrations, including deprecation of legacy markets and design of structured migration pathways to updated architectures. Such as the upcoming migration from v1 → v2.

2.1.2 crvUSD and Mint Markets

We are formalizing a comprehensive framework on crvUSD resilience and the YieldBasis-Curve relationship:

  • Quantify PegKeeper capacity requirements under various volatile asset pool growth scenarios
  • Model YieldBasis mechanics and their interaction with crvUSD stability
  • Stress test scenarios for correlated volatile asset drops and cascading effects on crvUSD
  • Research and evaluate crvUSD supply sink mechanisms — including yield-optimized vaults and ecosystem-level demand infrastructure
  • Research and development of adaptive monetary policy models to reduce rate volatility and improve mint market product attractiveness
  • Work on increasing mint market usage, e.g., adding more mint markets with new collateral types

2.1.3 YieldBasis Research & Collaboration

YieldBasis has quickly become a central part of the Curve ecosystem, and we expect this relationship to deepen further. We will be supporting safe scaling and mutual growth on both sides, collaborating with YieldBasis and other stakeholders to focus research on the future of the YB-Curve relationship:

  • YieldBasis risk monitoring: extending the safe borrow cap methodology into a continuously updated tool tracking YB pool dynamics, safe exposure thresholds, and crvUSD impact
  • Ongoing research into YB scaling dynamics, arbitrage flow patterns, and their implications for crvUSD
  • Collaboration with YieldBasis on protocol design decisions that affect Curve — including pool configurations, fee structures, and rebalancing mechanics

2.2 Risk and Growth Consultancy

2.2.1 Emergency DAO Coordination

LlamaRisk is coordinating with the Emergency DAO, enabling faster response during market stress events. Our coordination efforts prepare the eDAO with frameworks and payloads for initiating emergency response. We are working to ensure the eDAO has appropriate risk management controls that strike a balance between intervention capability and strong user assurances.

2.2.2 Delegation Proxy Scoping

Combined with the continuous monitoring and automation tools we are building, we are laying the groundwork for the Delegation Proxy framework, enabling more granular and immediate control over Curve products. This will allow much better risk mitigation and responsive adaptation to ever-changing market conditions without having to wait for 7-day governance vote cycles. Development of the Delegation Proxy is being done by Swiss Stake with consultation from LlamaRisk on appropriate bounding logic that allows for safe parameter delegation.

2.2.3 crvUSD Supply Sinks & Ecosystem Coordination

We are actively working on creating supply sinks for crvUSD through joint efforts with key ecosystem stakeholders:

  • The LlamaRisk IPOR vault serves as a yield-optimized crvUSD supply sink, absorbing circulating supply while contributing to mint market rate stabilization and peg support. The vault has grown to over $1M TVL and proved its value as a stability stronghold during recent market stress, providing sticky crvUSD demand precisely when it was most needed. In full alignment with the Curve ecosystem, the vault allocates to StakeDAO V2 vaults — which optimize yield routing between StakeDAO and Convex strategies — and charges minimal fees only from IPOR themselves. The StakeDAO integration is a key component: it ensures vault deposits flow back into Curve gauge-staked positions, reinforcing both liquidity depth and gauge incentive alignment.
  • Exploring integration with YieldBasis HybridVaults to create deeper supply sinks that scale alongside YB growth
  • Coordinating with protocol partners such as Aave to develop additional demand-side mechanisms for crvUSD

2.2.4 Grants & Incentives (Llama Boost Foundation)

  • Deploy the secured 250,000 OP grant to incentivize LlamaLend v2 adoption on Optimism
  • Pursue new grants from ecosystem foundations aligned with Curve’s multi-chain strategy
  • Design co-incentive programs with stablecoin issuers and protocol partners

2.3 Qualitative Risk Evaluation

  • Asset Risk Reviews: Evaluations for new collateral types emerging in the market — RWAs, structured products, yield-bearing tokens, Pendle PTs
  • PegKeeper Curation: Diversify the PegKeeper set, monitor stablecoin health, and recommend debt ceiling adjustments
  • Market Lifecycle Management: Refine and apply the deprecation framework across chains
  • Regulatory Monitoring: Track regulatory developments, maintain risk disclaimers, and provide compliance guidance for institutional integrations

Section 3: 2026 Budget Breakdown

You can read the breakdown of our proposed budget requirements in the reply to this post.

Budget Summary

LlamaRisk proposes a hybrid compensation model for April 2026 – April 2027, combining crvUSD from the DAO Treasury with a CRV vest from the Community Fund. This is the first proposal to use the DAO Treasury for service provider compensation — consistent with its original purpose of shifting operational funding away from perpetual CRV sales and toward protocol revenue.

Component Amount Source Schedule
crvUSD Operational $360,000/yr DAO Treasury Linear vest (12 months)
CRV Vest 2,500,000 CRV Community Fund Linear vest (12 months)

The vest recipient address is the LlamaRisk treasury multisig: 0xE8555F05b3f5a1F4566CD7da98c4e5F195258B65.

LlamaRisk will provide quarterly progress update reports to the governance forum.

1 Like

2025 Retrospective Details

You can read about our work over the past year in the collapsed text below:

Summary

1.1 Quantitative Research & Risk Portal

LlamaRisk advanced its quantitative capabilities significantly this year. Key developments include the safe borrow cap methodology for LlamaLend v2, the LLAMMA Simulator refactoring into a continuous monitoring system (with Swiss Stake), and simulation-driven parameter optimization across debt ceilings, liquidation discounts, and monetary policy.

  • Interest Rate Optimization: Interest rate setting based on simulations on several LlamaLend markets for effective interest rates
  • LlammaSimulator: Online model and methodology support of the LlammaSimulator to estimate liquidation and loan discount parameters in LLAMMA-based lending and mint markets.

The Curve Risk Portal continued expanding as Curve’s primary transparency resource for risk:

  • Market Health Scores: Real-time scoring across crvUSD and LlamaLend markets using dynamic risk factors, including collateral liquidity, borrower behavior, and market utilization
  • Debt Ceiling Methodology: Developed and implemented a monitoring methodology that allows us to identify safe debt ceilings in LlamaLend markets that account for collateral liquidity, borrow behavior, and Curve’s unique LLAMMA soft liquidation feature.

1.2 Curve Beneficiary Grants

LlamaRisk continued serving as the primary intermediary for ecosystem grants:

  • Optimism LlamaLend v2 Grant: Secured 250,000 OP tokens from the Optimism Foundation to bootstrap LlamaLend v2 deployment — currently being prepared for distribution
  • Foundation Development: Collaborated with Swiss Stake to establish a grant foundation entity in Panama to improve operational efficiency in grants administration.

1.3 Public Outreach

LlamaRisk maintained an active presence in the Curve community and broader DeFi ecosystem:

  • Governance Forum: 54 proposals across the grant period
  • Research Publications: Published methodologies on debt ceiling frameworks, monetary policy optimization, and market health scoring via llamarisk.com
  • Conference Participation: Attended and participated in DeFi conferences in Curve’s target markets, building relationships with asset issuers, capital allocators, and DeFi development teams on behalf of Curve.
  • Community Engagement: Maintained public Telegram channel for consultation with developers and protocol users and Twitter account to promote risk-related work on behalf of Curve.

1.4 PegKeepers Curation

PegKeeper management became increasingly critical this year with YieldBasis integration:

  • Legal & Qualitative Asset Analysis: Conducted comprehensive legal and qualitative evaluations for new assets being considered for PegKeeper pools, including stability analysis and regulatory implications (e.g., GHO integration assessment)
  • USDM PegKeeper Deprecation: Executed a 3-phase clean deprecation of the USDM PegKeeper — removing from price aggregator, setting action delay to zero, killing pool gauges, and fully deprecating — establishing a replicable process for safe PegKeeper offboarding
  • frxUSD PegKeeper Onboarding: Successfully proposed and onboarded frxUSD/crvUSD to PegKeepers, diversifying the PegKeeper set
  • PegKeeper Pool Optimization: Ramped A parameter on all PegKeeper pools from 500 to 2000, improving swap efficiency and liquidity depth
  • GHO PegKeeper Preparation: Began groundwork for onboarding GHO as a new PegKeeper asset, working with TokenLogic on integration assessment and risk evaluation
  • YieldBasis Impact Management: Analysis on YB as a first-order driver of PegKeeper inventory dynamics, directly motivating monetary policy adjustments to absorb increased PegKeeper intervention frequency
  • Ongoing Evaluations: Continued conducting comprehensive risk reviews for PegKeeper candidate stablecoins

1.5 Protocol Teams Consultation

LlamaRisk continued providing hands-on consultation to protocol teams:

  • LlamaLend v2 Launch Coordination: Close collaboration with Swiss Stake on v2 launch timelines, deployment sequencing, and growth plan — ensuring risk frameworks and parameter recommendations are ready before launch
  • YieldBasis Deep Analysis: Comprehensive analysis of the YieldBasis-Curve relationship and its impact on crvUSD stability, including arbitrage flow dynamics, pool imbalance mechanics, and PegKeeper capacity requirements. This also involved coordinating with key ecosystem stakeholders across the task force
  • Novel Collateral Frameworks: Developed new risk frameworks for novel collateral types including PT assets (Pendle, Spectra) and tokenized gold for crvUSD mint markets, covering oracle design, parameter calibration, and maturity risk assessment
  • Oracle & MonPol Development: Developed and deployed custom oracle contracts and monetary policy contracts for specific markets and ecosystem partners — including specialized monetary policies for fxSAVE, sreUSD, sfrxUSD, and sDOLA, and specialized oracles for PT assets
  • Oracle Risk Identification: Identified a low-TVL pool being used as the oracle source for the sfrxUSD LlamaLend market, and coordinated with ecosystem partners to increase pool TVL — mitigating a potential oracle manipulation vector before it could be exploited
  • EMA Monetary Policy Rollout: Deployed EMAMonetaryPolicy across multiple yield-bearing markets — reducing rate volatility and improving market stability for yield-bearing collateral
  • Mint Market Maintenance: Increased LBTC mint market debt ceiling to 20M crvUSD, added weETH to yielding markets classification, and optimized rate parameters across mint markets
  • AMM Optimization: Ramped A parameters on DOLA pools and USDC/fxUSD pool to improve swap efficiency and capital utilization
  • Gauge Killing & Market Hygiene: Proactive removal of risky assets and deprecated markets across chains — including Elixir markets (deUSD/sdeUSD), iBTC markets on Arbitrum, yETH/ETH pool, InceptionLRT pools, and Polygon Aave V2 aToken pools
  • veCRV Whitelist Removal: Proposed and executed the removal of the veCRV whitelist, enabling fully permissionless CRV locking
  • Emergency DAO Coordination: With Curve facing heightened risk from volatile market conditions, we consulted with the eDAO and are developing risk frameworks, emergency payloads, and response capabilities — laying the groundwork for faster, more effective defense actions
  • Crisis Response: Coordinated with teams during periods of market stress to ensure protocol safety

1.6 Budget Breakdown: 2025

In the 2025-2026 grant period, LlamaRisk received a one year linear vest of 2M CRV to finance a maximum annual budget of $725k. Core team members continued to receive compensation primarily in CRV.

Depending on the CRV price trajectory, we are likely to close the 2025 budget period with an excess ranging approximately between $50k and $130k. This potential surplus should be explicitly acknowledged to ensure full transparency and to avoid any perception of budget over-allocation.

1.7 Retrospective Conclusion

The 2025-2026 period marked LlamaRisk’s most impactful year as a Curve service provider. We navigated the protocol through market stress events, prepared the groundwork for LlamaLend v2, and confronted new challenges introduced by YieldBasis integration.

The trust placed in us by Curve DAO has enabled us to build one of the most comprehensive risk service offerings in DeFi. We enter the 2026-2027 period with the tools, expertise, and alignment to support Curve through its next phase of growth — the launch of LlamaLend v2, scaling of YieldBasis, and continued product expansion.


2026 Budget Details

You can read the breakdown of our proposed budget requirements in the collapsed text below:

Summary

3.1 Current State of DAO Finances

The Curve DAO holds assets across two distinct reserves:

Reserve Balance Nature
Community Fund 7,095,144 CRV (~$1.75M) Fixed allocation from launch.
DAO Treasury ~839,000 crvUSD Revenue-funded. Accruing an average ~$93K/month since inception.

The Community Fund was seeded at launch with 151.5M CRV. After grants to the Grants Council (~28M CRV), hack victim refunds (~75.5M CRV), Swiss Stake (2024) (~21M CRV), and the Swiss Stake 2026 grant (17.45M CRV), approximately 7.1M CRV remain. This is a finite, non-renewable resource.

The DAO Treasury was established following the Temp Check: Start Building a Curve DAO Treasury, which identified the unsustainability of funding all operations from CRV reserves. It receives 10% of protocol revenue via the FeeAllocator contract.

Treasury runway for our ask:

  • Monthly Treasury income: ~$93K
  • Our monthly ask: ~$30K (~32% of income)
  • Treasury continues accumulating ~$63K/month net after our allocation

3.2 Proposed Compensation Model

Why Hybrid Funding

Funding recurring operations entirely from the Community Fund assumes CRV reserves are the long-term operating budget. In practice, the Community Fund is finite and depleting, while Curve now has a recurring revenue pipeline and a revenue-funded Treasury.

Under the current grant, our 2M CRV vest translates to ~$493K at today’s prices — way below the operating target. Funding operations exclusively in CRV forces the service provider to sell tokens for every payroll cycle and invoice, creating persistent sell pressure while exposing both the provider and the DAO to funding shortfalls driven by price volatility.

The proposed model funds predictable operating expenses from recurring Treasury revenue (crvUSD), while keeping a CRV vest for long-term alignment. This is consistent with the Treasury’s original purpose: shifting operational funding away from perpetual CRV sales and toward protocol revenue.

CRV Allocation and Volatility Buffer

The CRV allocation is designed to maintain service continuity under price volatility:

  • Prior cycle: 2M CRV was approved when CRV traded around ~$0.52, implying roughly ~$1.0M headline value; the excess above operating requirements functioned as drawdown protection.
  • Current context: CRV is around $0.24. Modeling a 50% downside scenario ($0.12) implies that 2,500,000 CRV corresponds to ~$300K under stress, pairing with the $360K crvUSD component to cover the ~$660K operating target without requiring mid-cycle renegotiation.

The CRV component is denominated in tokens, not dollars — consistent with how prior CRV vests have been structured across the DAO. For reference, if the DAO preferred to keep the same “all-CRV” approach under today’s prices and the same downside assumption, the equivalent allocation would be approximately ~6,000,000 CRV.

Comparison with Current Grant

Current (2025-26) Proposed (2026-27)
CRV from Community Fund 2,000,000 CRV 2,500,000 CRV
crvUSD from Treasury $0 $360,000

3.3 Team & Operating Expenses

LlamaRisk dedicates 9 contributors (6 FTE-equivalent) to the Curve scope. Maintaining the same budget target while absorbing additional responsibilities — including YieldBasis Task Force coordination, Emergency DAO coordination, and Delegation Proxy groundwork — reflects disciplined cost management rather than scope creep.

A brief description of roles and responsibilities:

  • Engagement Lead: Strategy, task management, review, stakeholder point of contact, DAO representative
  • Quantitative Lead: Simulation modeling, quantitative frameworks, point of contact with Swiss Stake research team
  • Risk Portal Team: Front and backend development — Risk Portal, internal monitoring systems, public dashboards, data pipelines
  • Integrations Lead: Growth opportunities, crvUSD supply sink expansion, point of contact with asset issuers and technology providers
  • Legal Analyst: Legal research, grants foundation operations, legal disclaimer drafting

Operating expenses include:

  • Infra: Cloud servers, website maintenance, gas costs for contract/vote deployments, audit expenses
  • Events/Conferences: Attendance and speaking at conferences (planned: 2 during the year)
  • Risk Reports: Contracted risk analysts for capacity overflow, as needed

3.4 Disbursement

Component Amount Source Schedule Mechanism
crvUSD $360,000 DAO Treasury Linear vest (12 months) Vesting contract
CRV 2,500,000 CRV Community Fund Linear vest (12 months) Vesting contract

Operational Commitments

Quarterly Reports

LlamaRisk will share reports of activities and spending to the governance forum at the end of each quarter. Reports will be posted in July 2026, October 2026, January 2027, and April 2027.

2 Likes

A vote is live with the actions below to create two 1-year vest contracts for 360k crvUSD and 2.5M CRV with recipient LlamaRisk treasury multisig. For further clarification on the overall budget, we are maintaining the same budget as last year ($725K), accounting for unknown CRV volatility in the funding request. The vote is live here:

def encode_calldata(signature: str, args: list) -> str:
    selector = web3.keccak(text=signature)[:4]
    types_str = signature[signature.index("(") + 1 : signature.index(")")]
    types = [t.strip() for t in types_str.split(",")] if types_str else []
    encoded_args = web3.codec.encode(types, args)
    return "0x" + (selector + encoded_args).hex()


RECIPIENT = "0xE8555F05b3f5a1F4566CD7da98c4e5F195258B65"
DURATION = 31_536_000

FUND = "0xe3997288987E6297Ad550A69B31439504F513267"
CRV = "0xD533a949740bb3306d119CC777fa900bA034cd52"
CRV_AMOUNT = 2_500_000 * 10**18

TREASURY = "0x6508ef65b0bd57eabd0f1d52685a70433b2d290b"
CRVUSD = "0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E"
VESTING_FACTORY = "0xcf61782465Ff973638143d6492B51A85986aB347"
CRV_USD_AMOUNT = 360_000 * 10**18
VEST_START = 1775001600
OWNER = "0x40907540d8a6c65c637785e8f8b742ae6b0b9968"
CLIFF_LENGTH = 0
OPEN_CLAIM = True
SUPPORT_VYPER = 0


# calldata for VestingEscrowFactory.deploy_vesting_contract(...)
deploy_vesting_data = encode_calldata(
    "deploy_vesting_contract(address,address,uint256,uint256,uint256,uint256,bool,uint256,address)",
    [
        CRVUSD,
        RECIPIENT,
        CRV_USD_AMOUNT,
        DURATION,
        VEST_START,
        CLIFF_LENGTH,
        OPEN_CLAIM,
        SUPPORT_VYPER,
        OWNER,
    ],
)

print("deploy_vesting_data:", deploy_vesting_data)

ACTIONS = [
    # distro CRV from community fund
    (FUND, "deploy_vesting_contract", CRV, RECIPIENT, CRV_AMOUNT, True, DURATION, VEST_START),

    # treasury approves vest factory to spend crvUSD
    (TREASURY, "setTokenApproval", CRVUSD, VESTING_FACTORY, CRV_USD_AMOUNT),

    # treasury calls the vest factory
    (TREASURY, "execute", VESTING_FACTORY, deploy_vesting_data),    
]