Skip to content

Conversation

@carrion256
Copy link
Collaborator

@carrion256 carrion256 commented Oct 8, 2025

closes https://linear.app/templar-protocol/issue/ENG-19/initial-vault-contract

Creates https://linear.app/templar-protocol/issue/ENG-39/recallreallocate

TODO:

  • use returnstyle
  • gas problems with withdraw
  • rephrase withdraw>create, exec>exec

This change is Reviewable

@carrion256 carrion256 force-pushed the feat/metavault branch 15 times, most recently from 3a28fba to 8710c39 Compare October 15, 2025 13:32
@carrion256 carrion256 changed the title wip: metavault feat: metavault Oct 15, 2025
@carrion256 carrion256 marked this pull request as ready for review October 15, 2025 13:49
@carrion256 carrion256 force-pushed the feat/metavault branch 2 times, most recently from edaa8eb to 00bfb1e Compare October 15, 2025 14:33
@carrion256 carrion256 requested a review from peer2f00l October 15, 2025 15:34
Copy link
Collaborator

@peer2f00l peer2f00l left a comment

Choose a reason for hiding this comment

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

First look. Not comprehensive, and most comments are pretty surface-level. I'm not confident that I have a complete-picture understanding of everything that's going on yet, so we should hop on a call and run through this a few times before we call it good.

@carrion256 carrion256 requested a review from peer2f00l October 17, 2025 14:27
@carrion256 carrion256 force-pushed the feat/metavault branch 3 times, most recently from 9516a5e to cb845fd Compare October 23, 2025 16:18
@carrion256 carrion256 requested a review from peer2f00l November 4, 2025 09:51
@carrion256 carrion256 force-pushed the feat/metavault branch 2 times, most recently from 800213e to eed9eff Compare November 5, 2025 12:06
@carrion256 carrion256 force-pushed the feat/metavault branch 3 times, most recently from c8978a4 to 4c5e33a Compare November 12, 2025 10:26
@github-actions
Copy link

github-actions bot commented Nov 12, 2025

Name Deployment
Registry gh-243.templar-in-training.testnet
Default market default-19295909013.gh-243.templar-in-training.testnet

Installed near-sandbox into /home/runner/work/contracts/contracts/target/debug/build/near-sandbox-utils-2ad3b5a56a37a3e2/out/.near/near-sandbox-2.8.0/near-sandbox

Gas Report

Snapshot Limits

harvest_yield

Iterations Gas
0 3.4 Tgas
391 14.9 Tgas

Estimated snapshot limit: 9628

apply_interest

Iterations Gas
0 3.6 Tgas
391 13.2 Tgas

Estimated snapshot limit: 11494

Action Gas Descriptors

Action Gas
collateralize 12.5 Tgas
withdraw_collateral 9.4 Tgas
borrow 14.9 Tgas
repay 13.8 Tgas
supply 8.6 Tgas
create_supply_withdrawal_request 3.1 Tgas
execute_next_supply_withdrawal_request 11.4 Tgas

Gas Report

Estimated allocation limit: 0

Action Gas Descriptors

Action Gas
supply 7.9 Tgas
allocate 19.8 Tgas
withdraw 4.0 Tgas
execute withdraw 9.1 Tgas
submit_cap 2.5 Tgas

@carrion256 carrion256 merged commit 46ec669 into dev Nov 12, 2025
13 of 14 checks passed
@carrion256 carrion256 deleted the feat/metavault branch November 12, 2025 12:11
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