Skip to content

Commit

Permalink
add withdrawHoldTime to getDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
karneges committed May 19, 2023
1 parent e63af1b commit e8195ba
Show file tree
Hide file tree
Showing 8 changed files with 217 additions and 212 deletions.
328 changes: 164 additions & 164 deletions build/StEverCluster.code

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/StEverVault.abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 626,7 @@
{"name":"answerId","type":"uint32"}
],
"outputs": [
{"components":[{"name":"nonce","type":"uint128"},{"name":"governance","type":"uint256"},{"name":"stEverSupply","type":"uint128"},{"name":"totalAssets","type":"uint128"},{"name":"availableAssets","type":"uint128"},{"name":"totalStEverFee","type":"uint128"},{"name":"stEverWallet","type":"address"},{"name":"stTokenRoot","type":"address"},{"name":"gainFee","type":"uint128"},{"name":"stEverFeePercent","type":"uint32"},{"name":"minStrategyDepositValue","type":"uint128"},{"name":"minStrategyWithdrawValue","type":"uint128"},{"name":"isPaused","type":"bool"},{"name":"strategyFactory","type":"address"},{"name":"owner","type":"address"},{"name":"accountVersion","type":"uint32"},{"name":"stEverVaultVersion","type":"uint32"},{"name":"clusterVersion","type":"uint32"},{"components":[{"name":"isEmergency","type":"bool"},{"name":"isPaused","type":"bool"},{"name":"emitter","type":"address"},{"name":"emitTimestamp","type":"uint64"}],"name":"emergencyState","type":"tuple"}],"name":"value0","type":"tuple"}
{"components":[{"name":"nonce","type":"uint128"},{"name":"governance","type":"uint256"},{"name":"stEverSupply","type":"uint128"},{"name":"totalAssets","type":"uint128"},{"name":"availableAssets","type":"uint128"},{"name":"totalStEverFee","type":"uint128"},{"name":"stEverWallet","type":"address"},{"name":"stTokenRoot","type":"address"},{"name":"gainFee","type":"uint128"},{"name":"stEverFeePercent","type":"uint32"},{"name":"minStrategyDepositValue","type":"uint128"},{"name":"minStrategyWithdrawValue","type":"uint128"},{"name":"isPaused","type":"bool"},{"name":"strategyFactory","type":"address"},{"name":"withdrawHoldTime","type":"uint64"},{"name":"owner","type":"address"},{"name":"accountVersion","type":"uint32"},{"name":"stEverVaultVersion","type":"uint32"},{"name":"clusterVersion","type":"uint32"},{"components":[{"name":"isEmergency","type":"bool"},{"name":"isPaused","type":"bool"},{"name":"emitter","type":"address"},{"name":"emitTimestamp","type":"uint64"}],"name":"emergencyState","type":"tuple"}],"name":"value0","type":"tuple"}
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion build/StEverVault.base64

Large diffs are not rendered by default.

93 changes: 48 additions & 45 deletions build/StEverVault.code
Original file line number Diff line number Diff line change
Expand Up @@ -10422,11 10422,11 @@ PUSHCONT {
STUR 98
SWAP
NEWC
STSLICECONST xab1b5f32
STSLICECONST x85a2e016
SWAP
PUSHINT 19
UNTUPLEVAR
PUSHINT 20
UNTUPLEVAR
PUSHINT 21
PUSHINT 0
REVX
STU 128
Expand All @@ -10435,20 10435,21 @@ PUSHCONT {
STU 128
STU 128
STU 128
ROLLREV 13
ROLLREV 14
NEWC
STSLICE
ROLLREV 12
ROLLREV 13
NEWC
STSLICE
STU 128
STU 32
STU 128
STU 128
STI 1
ROLLREV 6
ROLLREV 7
NEWC
STSLICE
STU 64
ROLLREV 5
NEWC
STSLICE
Expand Down Expand Up @@ -10498,9 10499,9 @@ PUSHCONT {
INDEX 5
STUR 32
SWAP
PUSHINT 19
UNTUPLEVAR
PUSHINT 20
UNTUPLEVAR
PUSHINT 21
PUSHINT 0
REVX
STU 128
Expand All @@ -10509,20 10510,21 @@ PUSHCONT {
STU 128
STU 128
STU 128
ROLLREV 13
ROLLREV 14
NEWC
STSLICE
ROLLREV 12
ROLLREV 13
NEWC
STSLICE
STU 128
STU 32
STU 128
STU 128
STI 1
ROLLREV 6
ROLLREV 7
NEWC
STSLICE
STU 64
ROLLREV 5
NEWC
STSLICE
Expand Down Expand Up @@ -10579,13 10581,14 @@ GETGLOB 23
GETGLOB 24
GETGLOB 25
GETGLOB 26
GETGLOB 27
GETGLOB 28
GETGLOB 29
GETGLOB 30
GETGLOB 31
PUSHINT 35
GETGLOBVAR
PUSHINT 19
PUSHINT 20
TUPLEVAR
.loc ../contracts/base/StEverVaultBase.tsol, 0

Expand Down Expand Up @@ -11038,11 11041,11 @@ PUSHINT 1748389271
LEQ
IFJMPREF {
DUP
PUSHINT 446134388
PUSHINT 402772280
LEQ
IFJMPREF {
DUP
PUSHINT 102489270
PUSHINT 94560278
LEQ
IFJMPREF {
DUP
Expand All @@ -11064,16 11067,22 @@ IFJMPREF {
CALL $validateWithdrawFromStrategiesRequest$
}
DUP
PUSHINT 102489270
PUSHINT 94560278
EQUAL
IFJMPREF {
CALL $upgradeStEverAccounts$
CALL $getDetails$
}
}
DUP
PUSHINT 262058486
PUSHINT 230485644
LEQ
IFJMPREF {
DUP
PUSHINT 102489270
EQUAL
IFJMPREF {
CALL $upgradeStEverAccounts$
}
DUP
PUSHINT 190339438
EQUAL
Expand All @@ -11092,17 11101,17 @@ IFJMPREF {
IFJMPREF {
CALL $upgradeStEverAccount$
}
}
DUP
PUSHINT 304693970
LEQ
IFJMPREF {
DUP
PUSHINT 262058486
EQUAL
IFJMPREF {
CALL $forceWithdrawFromStrategies$
}
}
DUP
PUSHINT 340454391
LEQ
IFJMPREF {
DUP
PUSHINT 292336977
EQUAL
Expand All @@ -11121,17 11130,17 @@ IFJMPREF {
IFJMPREF {
CALL $isEmergencyProcess$
}
}
DUP
PUSHINT 402772280
LEQ
IFJMPREF {
DUP
PUSHINT 340454391
EQUAL
IFJMPREF {
CALL $onPendingWithdrawRemoved$
}
}
DUP
PUSHINT 446134388
LEQ
IFJMPREF {
DUP
PUSHINT 360877100
EQUAL
Expand All @@ -11150,22 11159,22 @@ IFJMPREF {
IFJMPREF {
CALL $setStrategyFactory$
}
DUP
PUSHINT 446134388
EQUAL
IFJMPREF {
CALL $withdrawFromStrategyError$
}
}
}
DUP
PUSHINT 1066272536
LEQ
IFJMPREF {
DUP
PUSHINT 683267329
PUSHINT 639528300
LEQ
IFJMPREF {
DUP
PUSHINT 446134388
EQUAL
IFJMPREF {
CALL $withdrawFromStrategyError$
}
DUP
PUSHINT 558116982
EQUAL
Expand All @@ -11184,17 11193,17 @@ IFJMPREF {
IFJMPREF {
CALL $onStrategyDidntHandleDeposit$
}
}
DUP
PUSHINT 733434185
LEQ
IFJMPREF {
DUP
PUSHINT 683267329
EQUAL
IFJMPREF {
CALL $processWithdrawFromStrategies$
}
}
DUP
PUSHINT 733434185
LEQ
IFJMPREF {
DUP
PUSHINT 688603452
EQUAL
Expand All @@ -11208,12 11217,6 @@ IFJMPREF {
CALL $strategyReport$
}
DUP
PUSHINT 723214130
EQUAL
IFJMPREF {
CALL $getDetails$
}
DUP
PUSHINT 733434185
EQUAL
IFJMPREF {
Expand Down
Binary file modified build/StEverVault.tvc
Binary file not shown.
2 changes: 1 addition & 1 deletion build/factorySource.ts

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions contracts/base/StEverVaultBase.tsol
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 499,7 @@ abstract contract StEverVaultBase is StEverVaultStorage {
isPaused,
strategyFactory,

withdrawHoldTime,

owner,
accountVersion,
Expand Down
1 change: 1 addition & 0 deletions contracts/interfaces/IStEverVault.tsol
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 96,7 @@ interface IStEverVault {
bool isPaused;
address strategyFactory;

uint64 withdrawHoldTime;

address owner;
uint32 accountVersion;
Expand Down

0 comments on commit e8195ba

Please sign in to comment.