Skip to content

Commit

Permalink
update lovelace recreation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mgpai22 committed May 2, 2024
1 parent 253709c commit e84cdd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions plutus.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"preamble": {
"title": "zengate/winter_protocol",
"description": "Aiken contracts for project 'zengate/winter_protocol'",
"version": "0.0.2",
"version": "0.0.0",
"plutusVersion": "v2",
"compiler": {
"name": "Aiken",
"version": "v1.0.24-alpha+982eff4"
"version": "v1.0.26-alpha+075668b"
},
"license": "Apache-2.0"
},
Expand Down Expand Up @@ -39,8 +39,8 @@
}
}
],
"compiledCode": "5906f10100003232323232323232322232222323232533300c323232533300f3370e90010008991919191919191919191919191919191919191919191919299981399b874800005854ccc09cc94ccc0a0cdc3a4000604e002264646464a66605866e1d2000302b0011323232533302f3370e90011817000899191919299981999b8748000c0c80044c8c8c8c94ccc0dc00854ccc0dc0044c94ccc0e0cdc3a4008606e0022646464a66607666e1cdd69813181c81a9bad302630390011533303b33303b3371e6eb8c0bcc0e40d4dd71817981c800a504a22a666076a66607666e3cdd71811981c81aa4410013371e6eb8c08cc0e4004dd71813181c9813181c9813181c809099b8f375c604660720026eb8c08cc0e40d44cdd7980a981c81a980a981c8008a5014a02940c8008c0c4004c0f8004c0d800458c07cc0d400c5280a503370e60326030602e6eacc0a8c0d0009200233712602a6eacc0a4c0ccc0a4c0cc030c054dd598149819800981c80098188008b180c9980e000919808980a9bab30273031001006323301c0012323253330353370e9001000899b8f005375c607460660042940c0cc004c078c0c4c078c0c4004dd6180c9817980e18178149bae3035001302d001163019302c3019302c3022302c005375c606400260540022c600c601a00260166eacc078c0a0c078c0a0004c0b8004c09800458cc00cdd6180918129809181280f80b8a999813998021809181280f9bac30013025021133300601f02402214a0294054ccc09cc8c8c8c8c8c8c8c8c94ccc0c0cdc3a4000605e002264646464a66606866e1d20003033001132323232533303b303e00213253330393370e6038603600e9001099b87001480045281bad303a00116303c00132323253330393370e90010008a5eb7bdb1804dd5981f181b801181b800998118008011980f80424500375c607400260640022c601c602a00260266eacc098c0c0c098c0c0004c0d8004c0b800458cc02cdd6180d1816980d181681380f9bab303300130330013032001303100130300013027001302d001302501f1533302733300601f0240221330043012302501f37586002604a042294052811816181698169816800929998148008a60103d87a800013374a9000198151815800a5eb8088c8cc00400400c894ccc0ac0045300103d87a800013232533302a3375e602a605000400a266e9520003302e0024bd7009980200200098178011816800911919198008008019129998158008a5013232533302a3300800500214a2266008008002605e0046eb8c0b4004dd618151815981598159815981598159815981598118011119198008008019129998148008a501323253330283371e00400a29444cc010010004c0b4008dd718158009111919299981319b8748000c0940044c8c94ccc0a0cdc39806802240042a66605066e1cc02cc028c024dd5980e1813000a4000266e24014c020dd5980e18130008a5014a0605800260480022c6018002646601e002466ebcc044c090c044c090004010dd618061811180798110019191919299981219b8748008004520001375a60526044004604400264a66604666e1d200200114c103d87a8000132323300100100222533302900114c103d87a8000132323232533302a3371e9110000213374a9000198171ba80014bd700998030030019bad302b003375c6052004605a00460560026eacc0a0c084008c084004cc034005220100233009001489002300c00130010012253330210011480004cdc024004660040046048002600200244a66603e00229000099b8048008cc008008c08800494ccc0740045300103d87a800013374a90001980f180f800a5eb808c078c07cc07c00488c8cc00400400c894ccc07800452f5bded8c0264646464a66603e66e3c01c008400c4cc08ccdd81ba9002374c0026600c00c0066eacc08000cdd7180f0011811001181000091191980080080191299980e8008a5eb804c8c94ccc070c0140084cc080008cc0100100044cc010010004c084008c07c0048c06c00488c8cc00400400c894ccc06c0045300103d87a8000132323232533301c3371e00e004266e95200033020374c00297ae01330060060033756603a0066eb8c06c008c07c008c074004c004004894ccc05c00452f5c0266030602a60320026600400460340026020014602a002601a0042940c034004c004c02c0148c048c04c0045261365632533300c3370e90000008a99980798050028a4c2c2a66601866e1d20020011533300f300a00514985858c028010c0040108c94ccc02ccdc3a400000226464646464646464a66602c603200426493191980080080111299980c0008a4c2646600600660380046eb8c06800458dd6180b800980b8011bae30150013015002375c602600260260046eb4c044004c02400858c024004dd6800918029baa001230033754002ae6955ceaab9e5573eae815d0aba201",
"hash": "bb6c9914e0352a1770659aedbafd69c148c6ecf0e1a0835e6f3cd820"
"compiledCode": "5906e50100003232323232323222322323232232322533300c3232533300e3005300f375400226464646464646464646464646464646464646464646464a66604a6040604c6ea807454ccc094c94ccc098c084c09cdd5000899192999814181198149baa00113232533302a3021302b3754002264a666056604c60586ea80044c8c94ccc0b4cdc4a4101095ebe601e6eacc084c0bcdd50010a999816800899299981719b8748010c0bcdd5000899299981799b87375a603860626ea80acdd6980e18189baa0011533302f33302f3371e6eb8c08cc0c4dd50159bae302330313754002941288a999817a99981799b8f375c603260626ea80ad2210013371e6eb8c064c0c4dd50009bae301c30313754603860626ea8c070c0c4dd5004899b8f375c603260626ea8004dd7180c98189baa02b13375e601660626ea80acc02cc0c4dd50008a5014a02940c8c8008c0a4004c0ccc0c0dd50008b180b98179baa00214a02940c08cc044c040c03cdd5981018171baa0013030302d37540022c60266602c664466030004464a66605c604a605e6ea80044cdc78019bae3033303037540022940c068c0bcdd5180d18179baa0013758602860586ea8c05cc0b0dd500f9bae302f302c3754002466016601e6eacc07cc0b4dd50008018b180b18159baa3016302b3754603a60566ea800cdd7181698151baa001163004300b300a3756603660526ea8c06cc0a4dd5000981598141baa001163300337586024604e6ea8c048c09cdd500d00b8a99981299802180918139baa01a37586002604e6ea80844ccc0180680900885280a50153330253232533302730223028375400226464a666052604860546ea80044c8c94ccc0b8c0c40084c94ccc0b0c08cc044c0400144cdc3800a40022940dd698168008b1817800992999815181098159baa00114bd6f7b63009bab302f302c37540026602e66028008910100375c605c60566ea800458c014c030004c028dd5980d98149baa301b30293754605860526ea800458cc010dd6180998141baa3013302837540360306eacc0a8c0acc0acc0acc0acc09cdd5181518139baa01a1533302533300601a0240221330043012302737540346eb0c004c09cdd50108a5014a0460546056605660560024a66604e0022980103d87a8000130133302830290014bd701119198008008019129998148008a60103d87a80001323253330283375e602a60546ea80080144c05ccc0b00092f5c0266008008002605a00460560024464646600200200644a66605200229404c94ccc09ccc01c010dd718160010a51133003003001302c0013758605060526052605260526052605260526052604a6ea800888c8cc00400400c894ccc09c004528099299981299b8f375c605400400829444cc00c00c004c0a8004888c8c94ccc090c07cc094dd50008992999812980e18060018a99981298101805180498041bab301930273754002266e24010c01cdd5980c98139baa00114a02940c0a4c098dd50008b1806000998071bac300c30243754601e60486ea800c8cdd7980818129baa301030253754002006464a666040602e60426ea8004520001375a604a60446ea8004c94ccc080c05cc084dd50008a6103d87a8000132330010013756604c60466ea8008894ccc094004530103d87a8000132323253330253371e91100375c604c00626028660526ea00052f5c026600a00a0046eb4c098008c0a4008c09c004cc034005220100233009001489002300d001300100122533301f0011480004cdc024004660040046044002600200244a66603a00229000099b8048008cc008008c08000494ccc06c0045300103d87a8000130073301c301d0014bd701180e180e980e80091191980080080191299980e0008a5eb7bdb1804c8c8c8c94ccc074cdc7803801080189981099bb037520046e98004cc01801800cdd5980f0019bae301c0023020002301e00122323300100100322533301b00114bd7009919299980d180280109980f00119802002000899802002000980f801180e8009180c80091191980080080191299980c8008a60103d87a8000132323253330193371e00c6eb8c06800c4c020cc074dd3000a5eb804cc014014008dd5980d001180e801180d8009ba548000c004004894ccc05000452f5c026602a6024602c00266004004602e002602660206ea8004528180098079baa00223012301300114984d958c94ccc02cc01800454ccc038c034dd50018a4c2c2a66601660040022a66601c601a6ea800c5261616300b37540046e1d200230010032533300730023008375400226464646464646464a666024602a00426493191980080080111299980a0008a4c2646600600660300046eb8c05800458dd6180980098098011bae30110013011002375c601e002601e0046eb4c034004c024dd50008b1b8748000dd6800ab9a5573aaae7955cfaba05742ae89",
"hash": "5608b21672cf154789a6ef90206bd98401655acfb5094da55094d0ea"
},
{
"title": "singleton.singleton_mint_and_burn",
Expand All @@ -64,8 +64,8 @@
}
}
],
"compiledCode": "5901d901000032323232323232323223222232533300932323232533300d3370e9000180600089919191919191919191919299980d980f0010991919299980d99b874800000454ccc06cc8cc004004030894ccc08000452809919299980f99baf3024301d00201a14a2266008008002604800460440022a66603666e1c009200213371e00602e29405854ccc06ccdc380124002266e3c00c05c528180c80a1bad301b002375c60320022c6038002646464a66603266e1d200200114bd6f7b63009bab301e30170023017001323300100100222533301c00114c103d87a8000132323232533301d3371e01e004266e95200033021374c00297ae01330060060033756603c0066eb8c070008c080008c078004c8cc004004008894ccc06c00452f5bded8c0264646464a66603866e3d221000021003133020337606ea4008dd3000998030030019bab301d003375c6036004603e004603a0026eacc068004c068004c064004c060004c05c008dd6180a80098068029bae3013001300b0011630110013011002300f001300700214984d958c94ccc024cdc3a40000022a666018600e0062930b0a99980499b874800800454ccc030c01c00c52616163007002375c0024600a6ea80048c00cdd5000ab9a5573aaae7955cfaba05742ae89",
"hash": "81cbb6417e3213bc9006a2647a82a45fad19bd379a8a44121587faca"
"compiledCode": "5901bf010000323232323232322322232323225333009323232533300c3007300d3754002264646464a666026602c00426464a666024601a60266ea803854ccc048c8cc004004018894ccc05c004528099299980a99baf301a30173754603400402429444cc00c00c004c06800454ccc048c0300044cdc78010080a5016153330123370e0029000899b8f00201014a06eb4c04c008dd718088008b180a0009991192999808980598091baa00114bd6f7b63009bab301630133754002646600200200644a66602a0022980103d87a8000132323253330153371e00c6eb8c05800c4cdd2a4000660326e980052f5c026600a00a0046eacc058008c064008c05c004c8cc004004dd5980a180a980a980a980a8019129998098008a5eb7bdb1804c8c8c8c94ccc050cdc7a45000021003133018337606ea4008dd3000998030030019bab3015003375c6026004602e004602a0026eb8c04cc040dd50019bac3012001300e37540042c60206022004601e00260166ea80045261365632533300830030011533300b300a37540082930b0a99980418010008a99980598051baa00414985858c020dd50019b8748008dc3a40006eb80055cd2ab9d5573caae7d5d02ba15745",
"hash": "4cae53530b56cbc892093253603dbd30ceee7c8ed3855408d5448b75"
}
],
"definitions": {
Expand Down
5 changes: 2 additions & 3 deletions validators/object_event.ak
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ fn valid_recreate_event(
find_policy_id_outputs(self_script_outputs, self_singleton_policy_id),
)

// original was this `value.lovelace_of(self.output.value)`, changed due to offchain limitations
let valid_ada_transfer =
value.lovelace_of(recreated_event_box_out.value) >= value.lovelace_of(
self.output.value,
)
value.lovelace_of(recreated_event_box_out.value) >= 100_000_000

let valid_singleton_transfer =
list.length(
Expand Down

0 comments on commit e84cdd5

Please sign in to comment.