* deposit contract FixedLimitCollect and FixedLimitProfit
* add contract LockPosition
* optimise
--- /dev/null
+contract LockPosition(expireBlockHeight: Integer,
+ saver: Program,
+ publicKey: PublicKey) locks lockAmount of lockAsset {
+ clause expire(sig: Signature) {
+ verify above(expireBlockHeight)
+ verify checkTxSig(publicKey, sig)
+ lock lockAmount of lockAsset with saver
+ }
+}
want string
}{
{
+ "./LockPosition",
+ "cd9f697b7bae7cac6900c3c251547ac1",
+ },
+ {
"./RepayCollateral",
"557a641f0000007bcda069007b7b51547ac16951c3c251547ac1632a0000007bcd9f6900c3c251567ac1",
},