hats-finance / Tapioca--Lending-Engine--0x5bee198f5b060eecd86b299fdbea6b0c07c728dd

Other
0 stars 0 forks source link

`decodeArrayOfYieldBoxPermitAssetMsg`is incorrect due to wrong length #4

Open hats-bug-reporter[bot] opened 5 months ago

hats-bug-reporter[bot] commented 5 months ago

Github username: @GalloDaSballo Twitter username: GalloDaSballo Submission hash (on-chain): 0x43feee1623ef69e78b0f6bc43ea9aa63144edb8491b06749b2fe3698a34d9b91 Severity: medium

Description:

Impact

decodeArrayOfYieldBoxPermitAssetMsg divides by 190, asserting that the length of a packed YieldBoxApproveAssetMsg is 189

   function decodeArrayOfYieldBoxPermitAssetMsg(bytes memory _msg)
        internal
        pure
        returns (YieldBoxApproveAssetMsg[] memory)
    {
        /// @dev see `this.decodeERC20PermitApprovalMsg()`, token + owner + spender + value + deadline + v + r + s length = 189.
        uint256 msgCount_ = _msg.length / 190;

The actual length is:

    struct YieldBoxApproveAssetMsg {
        address target; // 2
        address owner; // 40
        address spender; // 60
        uint256 assetId; // 92
        uint256 deadline; // 124
        uint8 v; // 132
        bytes32 r; // 164
        bytes32 s; // 196
        bool permit; // 204
    }

Meaning that in decoding an array of YieldboxPermitAssets we will get the wrong values out

Test

Obtained by fuzzing the following:

function arrayOfYieldbox(UsdoMsgCodec.YieldBoxApproveAssetMsg[] memory messages) public {
        bytes[] memory arrayEncoded = new bytes[](messages.length);
        for(uint256 i; i < messages.length; i++){
            arrayEncoded[i] = UsdoMsgCodec.buildYieldBoxPermitAssetMsg(messages[i]);
        }

        UsdoMsgCodec.YieldBoxApproveAssetMsg[] memory decoded = UsdoMsgCodec.decodeArrayOfYieldBoxPermitAssetMsg(abi.encode(arrayEncoded));

        t(messages.length == decoded.length, "Length"); /// @audit Fails here as the length is incorrect

        for(uint256 i; i < messages.length; i++) {
          UsdoMsgCodec.YieldBoxApproveAssetMsg memory soloOriginal = messages[i];
          UsdoMsgCodec.YieldBoxApproveAssetMsg memory soloDecoded = decoded[i];

          t(soloOriginal.target == soloDecoded.target, "arrayyieldBoxPermitAssetMsg");
          t(soloOriginal.owner == soloDecoded.owner, "arrayyieldBoxPermitAssetMsg");
          t(soloOriginal.spender == soloDecoded.spender, "arrayyieldBoxPermitAssetMsg");
          t(soloOriginal.assetId == soloDecoded.assetId, "arrayyieldBoxPermitAssetMsg");
          t(soloOriginal.deadline == soloDecoded.deadline, "yieldBoxPermitAssetMsg");
          t(soloOriginal.v == soloDecoded.v, "arrayyieldBoxPermitAssetMsg");
          t(soloOriginal.r == soloDecoded.r, "arrayyieldBoxPermitAssetMsg");
          t(soloOriginal.s == soloDecoded.s, "arrayyieldBoxPermitAssetMsg");
          t(soloOriginal.permit == soloDecoded.permit, "arrayyieldBoxPermitAssetMsg");
        }
    }

Logs

7da2dbc1abe832971559e0deb82fca9f4c03e49d, s: abaf1161ffd4e0e9cf2127288e5d30055f04096317bfba4c862308b71f6b7f73, permit: true}, {target: 0xd4bc5055813f47c78524db0931f518d6abfd2306, owner: 0x02000000000000000000000000000000000000ff, spender: 0x000000000000000000000000000000000000007d, assetId: 84557125358063143757558309409927608670991539706886078083874005538625117359672, deadline: 79860289929016892153994177510541640234716181759878444575619727897977774906252, v: 252, r: bdcae0ba1872db4ab274a71a3759daab6e6c04e932400ddcef09eb78081b2542, s: e2903127c64ca8e13f82f8a918b53808928a262b9ac21d2a385a3c4b3e035dfb, permit: true}, {target: 0x846d827e7f37e955275668d31aa43f1d7f69597c, owner: 0x000000000000000000000000000000000000001c, spender: 0x0000000000000000000000000000000000fdd58e, assetId: 68, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639327, v: 12, r: 0be29cd6c1435698f268a1676de9415a590556df5ba546ff1a14a61d8a3789e9, s: d7a83f047ac7e7dcf3abe09da5d59802b5ca853b5c9d1b417cfa90e26b50e426, permit: false}, {target: 0x000000000000000000000000000000000000007c, owner: 0x37891a719bd6349cabc7976f1db402243768283c, spender: 0x89bfcbe04a7fe0021d8bca34788a11c17ad0b0b4, assetId: 0, deadline: 11417981541647679048466287755595961091061972992, v: 225, r: 9e8fd8358324fc2ce2885422ca3288d45145fe7b66f2f34a5301e79c99eadaa1, s: 57539f84f5502ecc5037d326059e289cc357581bed00e7f2751a5f5c0833f623, permit: false}, {target: 0x0000000000000000000000000000000000000032, owner: 0x7250e736e6afdde94c849bd192c2a038955f2205, spender: 0x17dab277d09e81b3aa2f7861e860074d13dc92f7, assetId: 100, deadline: 79653324008251515505401716026157370963269465800957242119871408369371645119470, v: 1, r: ab217b7332bbb5b132f9fd0987ad26c0dd48dade2528664796100bd567526ad8, s: 42f0eb9bdcec277ebadd4b8bb22ad466070c3660caf5f9016fd48e1c4388c454, permit: false}, {target: 0xd475d934e24efd91e03036fe6f1cbc7bb57b8879, owner: 0xe4b1fac56c5b591ab0508da8a2a55a08c29232a1, spender: 0x4fdb11b174dfb82e89c9c65e72a18704b0551fcc, assetId: 2802345, deadline: 54771045547954798024278081425662406008354312172517479894713081915950896482020, v: 183, r: c161825689af5c6c9cbbc26832a485816949811fce566c17b71c24ac004ac972, s: df326fa7701dc3db9f57537883ae07b6baf477879e4071c18b875f86743b345e, permit: false}, {target: 0x0000000000000000000000000000000000000023, owner: 0x3cde57f05961179d414dd5231f268adda83f571a, spender: 0x285fdda1c2f5dc57f4a355cf63b309266443c875, assetId: 28341286458894649032689895735790153421361748842617020820007283495965279477299, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639808, v: 207, r: 6e5bf37c0c956d59ccc0a403114d19fd87487dfce855ba1cc95ebfd805715cd0, s: 4e05fa30cfaf30d546c93d22861ec9facd8bc5bddfad2338a1048dd4ed7bab08, permit: true}, {target: 0x0000000000000000000000000000000000000061, owner: 0x9e41709c5aeec3d6c969b0b2c34408332f256ce7, spender: 0x00000000000000000000000000000000000000a4, assetId: 63986977085298875200067837229191423437666633584024094504374632833629052165644, deadline: 14216990877863311705453378393678146574839948407315670369563992019439249584342, v: 163, r: af0c04ecb0809e91f97d10f8601bddfec63fb66003f96f745e18140b27136577, s: 8e9f194303703dcc0c92faa16a2fde8cdaeb610ba6f3dc7ea3f1b1d112d9f1ba, permit: true}, {target: 0xf4f0487b57230a51caff395aac68d7bc5dcb2730, owner: 0x0000000000000000000000000000000000000006, spender: 0x7109709ecfa91a80626ff3989d68f67f5b1dd12d, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129638508, deadline: 115792089237316195423570985008687907853269984665640443829581302726767561379993, v: 126, r: d40aede11044be5e3495bd188439dd4d51ee7c050356761c98bd47d847a61b2f, s: f2f35da3bd66ccad91b972292c82ef90db1032ea1a4b553fd5c2b8d9a33a971d, permit: false}, {target: 0x62763fde60112a908ead05f8e27a23b709a78c07, owner: 0xa647ff3c36cfab592509e13860ab8c4f28781a66, spender: 0x0000000000000000000000000000000000030000, assetId: 1532891899, deadline: 68447597752396140120359975312586042732003852358865119593633902976513003609457, v: 194, r: 8aab2139175bb0e33af4e61302e82fb833a05bc48c2c54408f5fcd1d8884eb7c, s: 9f836a048029902602a64465bf14e6025c456540092ffd64cea8540fd5e2b90b, permit: false}, {target: 0xa13aabc070d1a5eccb0d6150d58336c273027957, owner: 0xcff19b9ffad9fcbb17b9ec7a00a69109083568cd, spender: 0x7ab355547c81b6b5f77c8febc4775b12f5e1bc2f, assetId: 27007583506156240120113104432560387160515796386424936812943223367333947038824, deadline: 5708990770823839524233143877797980545530986751, v: 115, r: 62f74e57575fee4358f14a6c35dd1684e455fe5bda0e35607fd54b710ccbf53a, s: 16e1b2901e4009f386b179ba0094fc2933e480b20af48932d7467e894ad927be, permit: false}, {target: 0x62b6278086e7b9f2c34064c5976f229dd3c0c93f, owner: 0xbba266a1a93972baf62db8d2a1de62220097f764, spender: 0x0000000000000000000000000000000001ffc9a7, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129559935, deadline: 1000000000000000164, v: 188, r: 518e6428d13c101838038d7fb5b7edbddedfd35ea65084e87b2250684151061c, s: 711dea642e1ea8d7ab7057ced365973386bf5730084dc72d6ccbe19af499d9f4, permit: false}, {target: 0x8a5267fba62b2ca0ff248f31a8f6bdd84e985525, owner: 0x0000000000000000000000000000000000066eed, spender: 0x5183b129f23bdda5964b29f2c3ee72dd889b6b91, assetId: 82404701549243175031867579219547279523745317794131810031859489826695213316479, deadline: 60, v: 200, r: 346d15478ad3aec6bc66f542f265df5f3c3b399184a43924a7ba678ca8a3d668, s: fd789cc20b23f9ab5143870bc786fffad6ae8775b4498f0a6aa06132df59a899, permit: true}, {target: 0x7156d1a6553ccb38e6ee493855111ed295dbe09c, owner: 0x0000000000000000000000000000000080ac58cd, spender: 0x57170dacf1d49a92f93aa1f3e7a0390ff378040e, assetId: 8, deadline: 31365, v: 75, r: 53c945dbd1f80696df0283197a906553674ddacf963072179775ae45ec192e6b, s: ec31d2f748883ea5eb741e69ac42dad9c4d02fceef1afcc63de77cf951cbd323, permit: true}, {target: 0xa2a442494ccc366ba4130626a13bb0768755232d, owner: 0x000000000000000000000000000000000000007d, spender: 0xccb01e1626d81fe196fd8485dcf610fa70cc8e2b, assetId: 56, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639832, v: 31, r: 50aea962b819e322adda2fe4328a04b23b624c7807813efb498f7897a20a5ccc, s: b649631eb16c5abb1e84c1a5997d38f813d39e52a08ce9f41a21376b91ad1ebb, permit: false}, {target: 0xf10306919b100b91435de4fe5bd19d25f7469db2, owner: 0x0000000000000000000000000000000000014a33, spender: 0x0000000000000000000000000000000000000089, assetId: 78796766311806600736912561056707957014924130986480253730503975630495471351748, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639918, v: 104, r: 4a6245e043d5db0a9bf76a1ba624e815c7ee100f31a015efee917ef067643c64, s: 59994396587b099d65fc42f555fa16453ccf66192fb0ce962e90152ceaafd681, permit: true}, {target: 0xfb9d153d5c8778bb7192f3bac986b6ea92839a49, owner: 0x53e813acb270164983f0181788f8a0b5b0fe3d18, spender: 0x0000000000000000000000000000000000000084, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129639896, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129451914, v: 242, r: d80cc8c2e4e1324e95c45c6b86a80c90ebf565bca128f49d7e00a5635c4f1126, s: 3dfb20be1ad524e43849afceaa011659812a849bc9e2b510188738d651ee8582, permit: true}, {target: 0x7fdd4dc28a488121b41e72a0e3a30a61761a9fd8, owner: 0x03000000000000000000000000000000000000ff, spender: 0x0000000000000000000000000000000000000038, assetId: 53639760337095322250124167896124584792502983533442010463798098086580081891617, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639920, v: 135, r: 6e44b38bc3761ec58c010897cd918472a3f5c1214274922d711af076a12730a5, s: 62c0fe99d87ee4af6821a2c808d673f99e76c6ea082e72c9db82c77ae2699f32, permit: true}, {target: 0x0000000000000000000000000000000000000064, owner: 0xde26e7676a03b8dc02153644597b20a2a13bad49, spender: 0xf9a00490440b08ec413b0d101dd6e8b8a1f2c9e2, assetId: 47694158003697340611634599039285494568711120152424759295475322282169144711459, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639839, v: 111, r: 6e869f6b1fb690e6e6d0b3440351b092f713de841fbd5e9e44aa91c0dfab73b2, s: 4970ec1cfbc2da5107a07572aaaa740417aacc9e8bb32af672540840e997a8a7, permit: false}, {target: 0xa647ff3c36cfab592509e13860ab8c4f28781a66, owner: 0x00000000000000000000000000000000000000a4, spender: 0x697664a9592eccbce1155caedc9681511fab5f3c, assetId: 115792089237316195423570985008687907853269984665640564039457584007911463313122, deadline: 50595638836849329278211307190436702890992809132005495502366218749121277441671, v: 196, r: 9045933e9d0b0798b21214dbc6177777b6b521198e7c3af3a428e4a303bff7b4, s: 0f60335a065eb8c458a001b699ae4eef83360a9f5a7b9f4d0779d3790b5c6d75, permit: true}, {target: 0x5efa0a5c683238b79c0d1c7cb3504cf288a1cf29, owner: 0x9eed5bbe28f5099c0ae0e9b8aabc1012650c8168, spender: 0x5615deb798bb3e4dfa0139dfa1b3d433cc23b72f, assetId: 9143, deadline: 113793484822157716356742638045877235343670963477965291985658912341541960149372, v: 126, r: b6e9c3835a69016ff2505a838d7c9f126815769e148830885c7b97abd749d00a, s: aa475b09d16b048c8708cc3a7d7ae98098cda195f8f39523377e83a9935d88c5, permit: false}, {target: 0x09a6d3a9c27b8af22d8536fa2c74e9f84eaaaf30, owner: 0x0000000000000000000000000000000000000013, spender: 0xd8ed440080dec40f72ba8c73e1c13578ef3fc4ff, assetId: 32430, deadline: 98289840129122476752607864114276605238015846694309193561687347218243237180077, v: 92, r: 1f33464f6164cdbe658b03df8fbcbe17ffe8312fbd41e67cb085183379617f6c, s: e7c62846ef5877e3b96912dd777c1d78d416b68f560fec083b581613d8f1ef2f, permit: true}, {target: 0x000000000000000000000000000000000000007a, owner: 0xe5f8e1427b5f52b6c61ce7a1c8ac0b4bc2aa1bcf, spender: 0x0000000000000000000000000000000000000064, assetId: 432420386565659656852420866394968145599, deadline: 120209876281281145568259943, v: 160, r: 368b556d5f6c7ccff346253a911c28ab7c4054ddf5b8228ef139a28eaea1bc1c, s: a8f96e7d90ee3eb1b7c4f002b7b3d1b982855dcda82ce533053d5b92d26bd079, permit: false}, {target: 0x4202015aef99f6a6d90052249aab59fee52a237a, owner: 0xa8449198b22f33066fa618a607a8688c5872e679, spender: 0x659c7758fcedd7be599d880a5a346af08342e289, assetId: 115792089237316195423570985008687907853269984665640564039457584007912725541411, deadline: 967266142415946791564864882173635365234727712885414360820757412445311079122, v: 156, r: 9141a0abbe33afed301ce59613146935cdfc044ba98523c8460d937493f1075d, s: f7afc8b25452fdcf044bdd7b28847e6d40166c0c330fc8646370bcf94b54f614, permit: false}, {target: 0xa66c42d5d05a259bbf77eadd2c6849aba8fa726b, owner: 0xf0ee4c2348d9eaae2ff331438fcebdb078557bbd, spender: 0xee33a82983aea8bcf680bab576f95e93048a727a, assetId: 3179655225, deadline: 11, v: 45, r: 2e8e97434b1c8f124210f2560b309babeea2e5fe2c69cf51091a341468c2451f, s: 6130b153cd2207d373f80f80b1f1f53bd11d4a497ae623b9008bd776a0b16f25, permit: true}, {target: 0x883d2e66a35fbba747cae6e0cb6f5fa37d9e5c98, owner: 0x6e364ae748626e65b16600a8f319368520a7a5f9, spender: 0xbcf8148bc16287068c85d642c3a33c7059dca0cf, assetId: 113621683038201020178458245463315516867306468587377050395344991237741683270342, deadline: 96538188541925769535800026231119714480261385820089782674623305659026267647154, v: 177, r: ee797509ad0813a588bd476bbc6f71270b96c64e655715e5a3e78051403bf2df, s: faa26221bdd4b8fedc8de825fe9b6e2fbf6b745f3d478b14e18dbc72e0a9ddbb, permit: true}, {target: 0x82543e53883d4c2c8eabdc1377d7da6b155a33c0, owner: 0x44bc88f83f632df284df1a828a2866efcdf86d63, spender: 0x022baad9c369e415c0e8a8217b70427161bcfd8e, assetId: 115792089237316195423570985008687907853269984665640564039457584007909949984711, deadline: 190, v: 128, r: fb948ce308b21afe790eb4d16151819c48e6db5651775a7c7dac77c4ac8f6a5c, s: 7a952db6f7c81640093c1d8e463a655ddd76cbcf4239fa54db425df284377eae, permit: false}, {target: 0x00000000000000000000000000000000fe575a87, owner: 0x0000000000000000000000000000000000000505, spender: 0x00000000000000000000000000000000000000a4, assetId: 115792089237316195423570985008687907853269984665640443829581302726767561388446, deadline: 4267137671, v: 208, r: a8c1556722991a7f6dd7f0efe4ddbfd8501c6c9d102ae911cb00d4cd63615cd4, s: a1e6b1f040460fb4866e1d28cef643fbc1698d39dc573d64acacc92244372f32, permit: true}, {target: 0x0000000000000000000000000000000000000020, owner: 0x000000000000000000000000000000000000007d, spender: 0x00000000000000000000000000000000000000c4, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129559935, deadline: 8053813960297389361533422958850152885073260354210596433918648282184875669970, v: 32, r: 09dea55ee08792f5133d6cb5bb31c8c31184a7213d9854e4abf576b8cad490f9, s: c1b5bfae3623684c6897a172692d099b8c051a5099ae8ae5805d1c19307d2f96, permit: false}, {target: 0xea4b73c327f4f5eac8a00fb2a2f08206a6d3f360, owner: 0x0000000000000000000000000000000000000104, spender: 0x0000000000000000000000000000000000000022, assetId: 1484337600414198276300617408227474941838056555260, deadline: 85603187531413564911026005989162808234028860079729353171939841491699912816176, v: 251, r: 46be7b9cd0c232fab3459e2e6f0bb99bbcbf276490c7a9ce2910f89abf1d7dde, s: 12c3bae88729bcedaec7afea38ca09f49cd40277d1f6aab9e76790fdd1506dac, permit: true}, {target: 0x000000000000000000000000000000000000001c, owner: 0x3926447603bfcaf339ac4a41debe51b00e81bc0f, spender: 0x75ab57b61143d23e724f93394ea8270738e28a88, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129639656, deadline: 31300434459143118689352663285844177920364246600072999212991469296993570025068, v: 0, r: 57897b7b53495a13108b27d01bcda0d231e44d663c105cfdcf82c8a0e8669d8d, s: 7553147fd4758e1970b6dc6ad92ecb255631f6b0673cd95e8b24879c2ac34dd4, permit: false}, {target: 0x00000000000000000000000000000000e47d6060, owner: 0x0000000000000000000000000000000080ac58cd, spender: 0x0000000000000000000000000000000000000144, assetId: 58679497676913633614597948096003771480741012995523547061813818296910941077872, deadline: 36252790826450943161649573043473003305721555377084347523002531074307074045054, v: 164, r: ac1d918b23e999d0d4bf86cd0ea131d3561b1b06091696c1b3c9cf9b6453b91f, s: 41ef5de46900d1c8aa12a62619a125d3703198d7be64ae6564f1f49ffd8ddddb, permit: false}, {target: 0x4200000000000000000000000000000000000800, owner: 0x23106ca17bd83c87d85ed27284dab7c22c07ec5e, spender: 0x19ffcda2d3f5ce077ef22e68e0323ef5b3056494, assetId: 41749387594268368677132621938174821737818853888203426235823385893553724124637, deadline: 29212300839610988121543892981686473733184596610791044679657191279915446827889, v: 12, r: 8eca681a8a4ad852d70bf4218aa57676d370fa43bd18566ba2387f0912c6f4ba, s: 69dab25341a0dc2136066c2a086dbea45df0d095bc720849e602c00793b7e54b, permit: false}, {target: 0xbc14d23bc0924b0b4fb65ee21b496392a1541558, owner: 0x1e14a48502dc8a90ec24d9429c2697a38a3faf89, spender: 0x00000000000000000000000000000000000000ff, assetId: 110257638862344476603494909175223680420140664490921008657637938151225455848260, deadline: 104737259106672816632933088014278990402129262715658139483537609958472370183436, v: 185, r: 94f2ac9541b37f5a9733436b8f23edc35295166fd309df9c2286d79231ec47a4, s: 9f6ca7b2d4d77aa0bb2925189df36da38531d7ab411a0fed42ca9858c4ec9f9a, permit: false}, {target: 0xfffffffebaaedce6af48a03bbfd25e8cd0364141, owner: 0x23465de7dcb8d6ec78578b788794d64b9c7ed12d, spender: 0x0000000000000000000000000000000000000505, assetId: 11155143, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129638651, v: 105, r: 608f33cc12bbca4de91cc2682ff53e39290952c49d3fb785885496126de34c02, s: c31ba15792c23b14417585a64886d8a48e3006098f2da0ce7db2780343291870, permit: false}, {target: 0x95373bf73dcd2152ca5a530d8d93cfe00b9b438b, owner: 0x5615deb798bb3e4dfa0139dfa1b3d433cc23b72f, spender: 0x000000000000000000636f6e736f6c652e6c6f67, assetId: 30194358584549721735417747629980433062753031161775222929805167273081733193339, deadline: 114299825849420871812002803256367849451586823354992051220404618738472841552672, v: 0, r: f38d866f43f4443c66ce9cc6e9d411a49517a0d2de5631bd448e41e0260e119a, s: 302253a586e6ef155c1b8fbd1e9cc03e729bbed39562a5d6da403238a97b79f2, permit: true}, {target: 0x0000000000000000000000000000000000000023, owner: 0xf6a21db6cb9ace26c250df6ba2341de239eabb8e, spender: 0x53ce9649d2ba486b2054987edea64e61c23c6554, assetId: 1287, deadline: 87705769431831209080363331228093252192128345364500467189344735897365162921810, v: 116, r: 4748389e4ac0322f6d5e9a9aaef986cd021356aa609729ea6aab4f2d9aa22fc1, s: e22814868dff477adbbbf780000c0a1423a7320f01d50e2e1bb05c79281cc14d, permit: false}, {target: 0x862538cc5ae9195357ce78090692283350813a3c, owner: 0x0000000000000000000000000000000000000068, spender: 0x119a7af0abd80aacd8181b93a0410d6a49c230f2, assetId: 115792089237316195423561471964285605560600321975209469325199515377246972936192, deadline: 4267137671, v: 122, r: f28decf68a7abc13bfb39c59e2ee58e51aba8e32bd13b6f0c94976244beb5464, s: 5ec13ef634bdeb6f41a51dae09782f8b574178da6ae9711eaeba3eded83497d3, permit: false}, {target: 0x5d575b7a07759cf9b9108bbd734c1cdf5d91ec21, owner: 0x000000000000000000000000000000000000000c, spender: 0x0000000000000000000000000000000000000184, assetId: 58602496759067355296424400683663039330906011927842892907786167279154574066742, deadline: 1153611788939004710816649274463142904956676655633, v: 130, r: 2684c9b0669a34028401a2c914eb3cfcd35f395de23a44f291f4899576dcc13f, s: 96cc7d22884b10844303392d6fd21c3dcc02a0310981898e36dcdd4b46be3673, permit: false}]) (block=36106, time=543624, gas=12500000, gasprice=1, value=0, sender=0x0000000000000000000000000000000000020000)
[Execution Trace]
 => [call] CryticTester.arrayOfYieldbox([{target: 0xbf6d9b074076a3da4e67dd38e250373bebd74f08, owner: 0x1ed55b9e905cc763ade5de95b5c55c27c89ac663, spender: 0x0000000000000000000000000000000000000084, assetId: 100318331530302317897886746441991952752035366920410674928537848880146474569934, deadline: 3833378806, v: 224, r: ab7a76fae30feaf9e9354be76e4029dd7aeec233f2f98ee65c97187ffb6aa3c1, s: 3481b3342992214d3c39a5c89cb56069c5f8c67d7f801ab0665e9730242910fb, permit: true}, {target: 0x0000000000000000000000000000000000000012, owner: 0x66a9264477a63632aca07897ef7bfccaf2f8dd43, spender: 0x4e59b44847b379578588920ca78fbf26c0b4956c, assetId: 17, deadline: 80394066144394958246582656044900807070955640715999415024685041234485540139022, v: 76, r: 0c3e12cca24f3a9b4604df0be179275529332cf7e1d2a8e139b6b5d0c11eae89, s: 70ee8bb170e5f20cf28c6914c00e10ab0e085d596b719ba03c7f7335ab9c345a, permit: false}, {target: 0xcf091b37639392ca77f95998475541ca8de879d5, owner: 0xae2da7b4e07f8847d9d9da13870e08dfa78d302e, spender: 0x0000000000000000000000000000000000000038, assetId: 98, deadline: 57896044618658097711785492504343953926634992332820282019728792003956564819934, v: 198, r: 8e36a45217ae115e8cd75625ca3d83b8e5975696c88dafa6a66b051678512d9f, s: e73014d05f747c4475ab726bc4afa2f0147fd3a15eccfd59291d9f856713a327, permit: false}, {target: 0x7c6a83f6b73ef40d2b992c1e202db3cacd5840fa, owner: 0x471ad86c31ca43614c3578c0ce5a04aa66a06961, spender: 0x0000000000000000000000000000000000000000, assetId: 101571949263590798650990428973516098149155640738818683189079904130970446908264, deadline: 45490432044990955155675714351611817625311581781549233412785901109839581854742, v: 1, r: 086cf4f70b0f2cd07f95bfec1c1d2677886a229e8d482dcb1e7c7d25a7fa1183, s: 7cbf73c02f00c6562fa51895a16a94c9eca4c6f169f7124e227d3925752e72ea, permit: false}, {target: 0x00000000000000000000000000000000000001a4, owner: 0xca11bde05977b3631167028862be2a173976ca11, spender: 0x2e65bda6a3a9dc11e36ec4afd921929f0efcbe15, assetId: 55013374324238563946758973484233398753188354030482747817062372698022734471934, deadline: 81, v: 204, r: f39109f4fcff5a1b139afb9b5065fa933138e1a376a3153d1226d76ea2815308, s: 9f64142358213bf73ebcf88aaa379d1cdb9c63123a608f1359eae223043833de, permit: true}, {target: 0xc8a9e53adfe1dc2e3f8086e438b68d21e800a548, owner: 0xa8ec3fd946cee598a5bafc1c4042c89d241f3a43, spender: 0xaded30bba7239de2de2e254b7912aece5746aae3, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129639775, deadline: 44089686653514732586323948065678156989898398103141256033173423859138630554131, v: 255, r: f632faaebcfbe7390e248e900dc86ac95498b2b6ffca5eeed63c102deb858147, s: 5c016a3e7035be6fc7c789a7e7bff1c379d2f9430cf1d01163b0c0c0dd1ce36d, permit: true}, {target: 0x4d840f5ea29901e90f839c24b459d834d2a28792, owner: 0x000000000000000000000000000000000000001c, spender: 0xca0cf686f4d37af7ce536e87564fc4f8ac164a35, assetId: 57896044618658097711785492504343953926634992332820282019728792003956564819968, deadline: 1666368975, v: 5, r: 7351932d7df350f6c29c46619c1c78fe9668939f7d3d15dfd896f9382c318488, s: 7e8af1706fb56a27bdae7b0f2fb67d7e7dd22e5f4ad2bd719a640f8beb425988, permit: true}, {target: 0x07ed95f95451699148d0bc758305c2e9e5be246c, owner: 0x64f5b6bf6adf786861e22792e160d507487e6d12, spender: 0x0000000000000000000000000000000000000051, assetId: 5708990770823839524233143877797980545530986751, deadline: 43381584927794862278766055884561439099846794181126440820544502409737368412135, v: 139, r: c4407f4e4efe84a0b9537b35aa0424932c6046cd966333996ef697bd3f21d119, s: f6da446b22abffa510325d8eccd6a6e8fa8ac0007051d6a5fd7af816a7a269cd, permit: false}, {target: 0xfbd46d6d971e9b6214faa97c5217614b2efb8f58, owner: 0xb6a346953b6cfadd33d081fb0246bb4f89d5aaff, spender: 0x0000000000000000000000000000000000000084, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129639886, deadline: 50038076587131328928389230759347570364828374325506755405845773414413820518609, v: 254, r: 144b611bec2e6288823d471560e667a0682dc4be569c7b8b4c34d56918ff8ea5, s: e44f97b95e223386339b7f74a6c31a89bed72498df5aab84261efe78e0dfd74b, permit: true}, {target: 0x000000000000000000000000000000000000003c, owner: 0x0000000000000000000000000000000000000022, spender: 0x0000000000000000000000000000000000030000, assetId: 0, deadline: 115516393786751156863038673139619603310762198987865229363173161188846669807461, v: 20, r: 9e593808c88590c76f3829dbe3d55cd172ca86f330770b51a6cff021fbe5fed9, s: 00fb6d81e6d54c00a00c379db2ac83874a1f9492df9d008b7da5aceeba0755d5, permit: true}, {target: 0x0000000000000000000000000000000000000032, owner: 0x379db79ce199d90aa5f2346a1ecc63f459bd15fa, spender: 0x0000000000000000000000000000000000002105, assetId: 97785044316697847159569060781936629851505723404057189971059655359094051963765, deadline: 31162529419367095043310910925145832323613891076970934322154813739800982079026, v: 92, r: 6444c653ee9a7b4c8b368c1f32c5cf263b3c54b8cb2528d3978fd010987bd5fc, s: bcbb283c0322ca9836e4f2a79d59b544aa872c3f328da63e381c3cdd6adebbb6, permit: false}, {target: 0x0000000000000000000000000000000000000004, owner: 0x0000000000000000000000000000000000000068, spender: 0x0000000000000000000000000000000000000068, assetId: 90269281917835922312372802048683039795095564594416403103436371292097650957509, deadline: 49909819647856891890223776316255449396988247470979410121368691450036971313505, v: 60, r: 64726258d5af3a2bb202092f33e8cf6f60dd0e04bd9af409a0308fcaefe7468b, s: ea089cece89d522c44ffe3de29c86156a4a94413f9fded26d4d518b42c806c37, permit: false}, {target: 0xfed8dfbbd7e89ec2e69daeb53f7d7a7a9485b2d6, owner: 0x277f75d8daa9b210a53136454ce5a52da951954d, spender: 0x0000000000000000000000000000000000000051, assetId: 420, deadline: 46604405156771918052632991210050974923973103193342736042880262728850418719885, v: 57, r: cae9d87efef7dab2e5c0304cdcf0f08d6b59ad55f6cf76236600f08f0c0396f7, s: d28e96e2c0120c0f66967d3b37e90a5321c17c07edd0f47562f8deb642ed5039, permit: false}, {target: 0xe8ec4c97440d72f6388f41a56fade249af52d13e, owner: 0xa7b6b9a386f392e5018d76d7f697124d69d7e0cd, spender: 0x00000000000000000000000000000000000001a4, assetId: 94606232401927806774414343426999402648162060656883316281540133259326160568772, deadline: 107120175278088785616937697862586470055645169074829979768335901209961773917963, v: 35, r: 37fe2314e0e61f431eb7ade00375e65069b1906b5a645038ba90313ac9871aa0, s: 60b51b9d4cd11eab2a6c628e6d619cd62b8c26905f5e6947621c36a8b960a549, permit: true}, {target: 0x06cb07250079d276c1ff2430b45e435f79467cae, owner: 0x000000000000000000000000000000000000001f, spender: 0x0000000000000000000000000000000000000002, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129639934, deadline: 78770087197124571616045831271504530824957645898833448173815142574818189743680, v: 206, r: 68230fc1fe9314ad4eab53f4e476819e9261ec7ca56d9f7945021fcfbe636dc2, s: fce066f05a01a6d64d931ac8ebc30b33e4729e034f3d1e1b083f568632ea1b2f, permit: true}, {target: 0xa647ff3c36cfab592509e13860ab8c4f28781a66, owner: 0xdf0ddf00f979840eb1e58ff5764ad9ad87379f36, spender: 0x5f8eb14ed0b52fe7d47123cdbe00f4d48739efa5, assetId: 68689433150786279893003367031586897257008586327413062970094204889025488816856, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129630264, v: 113, r: a73060b0e9112d9ca9da0c22b3eb5fca8d2b05e0620d9e4fc91f6cde5533be25, s: cc882ec6e163d07c232dc5003376fd46cfd12848614610d468734106b46fe8a8, permit: true}, {target: 0x0000000000000000000000000000000000000504, owner: 0xf0776fb7d0dfbbb0578010860e0c0cb60176efb7, spender: 0x9dbff1e198eb90a7696c6048a982dbb2c1d36097, assetId: 98022186031275123381141110061658330679166853530888200482719934291430270697950, deadline: 5, v: 9, r: 8f567895d857266a3e4cb95f46b3abddef0152921e206f5e5b7c1830f7a84595, s: 013fc2d8b198aa35f8fccc632a7d759cf7d45663cd9509479cbcc6156690162c, permit: false}, {target: 0x636cfd69ea52573e2f4504b73071183a2f2ad405, owner: 0x0000000000000000000000000000000000000012, spender: 0x000000000000000000000000000000000000007a, assetId: 35674185680739422494870081095129296085898717001477866162398016694913315736124, deadline: 376793390874373408599387495934666716005045108736, v: 81, r: 5f42c90eef7b759791164b47cdef847eefcca97c8bd0f95ba3cdbd7ff1748184, s: 95e9d929ee1ddbabebd9d421b2c6f1e4f992c538c2f5133d596acf502e827021, permit: false}, {target: 0xdb241c7d812269658957fa86755da14391aec564, owner: 0x33989a84455d09f031ed98f017f20fa62dbe5205, spender: 0x0000000000000000000000000000000000000018, assetId: 40, deadline: 100, v: 100, r: 8f491efb3cda89c9a3bf1f40fb486fb9bfe1f879cbf5da895c680b3641f54945, s: 2193fadbafa4ae1c6f0b8d3386278d4be1b4af1ee9a179c4eca65b14cdb7a738, permit: true}, {target: 0x0000000000000000000000000000000000000038, owner: 0x0000000000000000000000000000000000000507, spender: 0x0000000000000000000000000000000000000022, assetId: 114705849884139724905603009214786998910247843841789206415030740025022687807258, deadline: 404140686, v: 66, r: 6053473a0f31d82957002ce6ca8a7e63f9ee2b0e1654cbac2ffa802cad5f1d8d, s: 8bf3b6fd77dbb5642cddd6a59d3718e0c6cc5fe92d461cc2885d63b6dc0c444e, permit: false}, {target: 0x901cfdb681886be181aa0aebda783d56ac2e9e1b, owner: 0x18a114dcc506ab909d76f40a8fb87e27d6f29841, spender: 0x97fa1f6e0844487f504ae6869a1dc5aa60c6cb24, assetId: 28452422881689462211787322317832136770157469148402863127468350615176833474298, deadline: 19045510238764134540440337855721128578499105857858537978569430599819774766517, v: 210, r: 5a38fd5d70db246a8d6db02458586263567321cd903fce988916ea1bc0fbaed1, s: 22a6a4076217134b2b3afc8ad87cb2a430cc3c2ff44d22262fcc4a6a48e6cd93, permit: false}, {target: 0x6c47a909fbe5968d8c845b0ef493cc9e8824222d, owner: 0x4feca366dc90ab32b692d2c8343196044647ecf1, spender: 0x5938234888d842f0ac59ec0092cebc17057e5506, assetId: 66076089931063961941577525868852435432437719527311767986047303282152937630896, deadline: 115792089237316195423570985008687907853269984665640564039457584007913123159855, v: 124, r: be44e6303dacb30e1f2a99ece622eda4851adf763b81e74f57d05bc62e77cda3, s: 5557dbedbe01a542a8de80170822bed1730ef4fd6c5202fcdd2582bfc406f56a, permit: true}, {target: 0x0000000000000000000000000000000000000041, owner: 0x77ccf75517907b13955719489c58dc2455298f68, spender: 0xac8d16c6b686beb5129e946d167913f2e833e88a, assetId: 10044409807387312114036165485130316817739007201901249717494578784898191015949, deadline: 111750113169694182844052020370012070034043322390760636853327401037679113748767, v: 92, r: 4f9515bd92602f102047b371880c0bfca61597c46b69c676b12420147b227bc2, s: c8411c8f6af8a34055d92a2fd01ecb6f6796af39ac5d6d3ea3ab873c6130155b, permit: true}, {target: 0x9ac855565da417012d88d696494fab9fc444abdc, owner: 0x9729ed74e7951fc6b9ad80505bd4350e84b88c69, spender: 0x0000000000000000000000000000000000000051, assetId: 51450188258133038538973745180226223943962337397660931788279905847990960002804, deadline: 190, v: 43, r: 026901461eca7390b04a16b87da2dbc1abe832971559e0deb82fca9f4c03e49d, s: abaf1161ffd4e0e9cf2127288e5d30055f04096317bfba4c862308b71f6b7f73, permit: true}, {target: 0xd4bc5055813f47c78524db0931f518d6abfd2306, owner: 0x02000000000000000000000000000000000000ff, spender: 0x000000000000000000000000000000000000007d, assetId: 84557125358063143757558309409927608670991539706886078083874005538625117359672, deadline: 79860289929016892153994177510541640234716181759878444575619727897977774906252, v: 252, r: bdcae0ba1872db4ab274a71a3759daab6e6c04e932400ddcef09eb78081b2542, s: e2903127c64ca8e13f82f8a918b53808928a262b9ac21d2a385a3c4b3e035dfb, permit: true}, {target: 0x846d827e7f37e955275668d31aa43f1d7f69597c, owner: 0x000000000000000000000000000000000000001c, spender: 0x0000000000000000000000000000000000fdd58e, assetId: 68, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639327, v: 12, r: 0be29cd6c1435698f268a1676de9415a590556df5ba546ff1a14a61d8a3789e9, s: d7a83f047ac7e7dcf3abe09da5d59802b5ca853b5c9d1b417cfa90e26b50e426, permit: false}, {target: 0x000000000000000000000000000000000000007c, owner: 0x37891a719bd6349cabc7976f1db402243768283c, spender: 0x89bfcbe04a7fe0021d8bca34788a11c17ad0b0b4, assetId: 0, deadline: 11417981541647679048466287755595961091061972992, v: 225, r: 9e8fd8358324fc2ce2885422ca3288d45145fe7b66f2f34a5301e79c99eadaa1, s: 57539f84f5502ecc5037d326059e289cc357581bed00e7f2751a5f5c0833f623, permit: false}, {target: 0x0000000000000000000000000000000000000032, owner: 0x7250e736e6afdde94c849bd192c2a038955f2205, spender: 0x17dab277d09e81b3aa2f7861e860074d13dc92f7, assetId: 100, deadline: 79653324008251515505401716026157370963269465800957242119871408369371645119470, v: 1, r: ab217b7332bbb5b132f9fd0987ad26c0dd48dade2528664796100bd567526ad8, s: 42f0eb9bdcec277ebadd4b8bb22ad466070c3660caf5f9016fd48e1c4388c454, permit: false}, {target: 0xd475d934e24efd91e03036fe6f1cbc7bb57b8879, owner: 0xe4b1fac56c5b591ab0508da8a2a55a08c29232a1, spender: 0x4fdb11b174dfb82e89c9c65e72a18704b0551fcc, assetId: 2802345, deadline: 54771045547954798024278081425662406008354312172517479894713081915950896482020, v: 183, r: c161825689af5c6c9cbbc26832a485816949811fce566c17b71c24ac004ac972, s: df326fa7701dc3db9f57537883ae07b6baf477879e4071c18b875f86743b345e, permit: false}, {target: 0x0000000000000000000000000000000000000023, owner: 0x3cde57f05961179d414dd5231f268adda83f571a, spender: 0x285fdda1c2f5dc57f4a355cf63b309266443c875, assetId: 28341286458894649032689895735790153421361748842617020820007283495965279477299, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639808, v: 207, r: 6e5bf37c0c956d59ccc0a403114d19fd87487dfce855ba1cc95ebfd805715cd0, s: 4e05fa30cfaf30d546c93d22861ec9facd8bc5bddfad2338a1048dd4ed7bab08, permit: true}, {target: 0x0000000000000000000000000000000000000061, owner: 0x9e41709c5aeec3d6c969b0b2c34408332f256ce7, spender: 0x00000000000000000000000000000000000000a4, assetId: 63986977085298875200067837229191423437666633584024094504374632833629052165644, deadline: 14216990877863311705453378393678146574839948407315670369563992019439249584342, v: 163, r: af0c04ecb0809e91f97d10f8601bddfec63fb66003f96f745e18140b27136577, s: 8e9f194303703dcc0c92faa16a2fde8cdaeb610ba6f3dc7ea3f1b1d112d9f1ba, permit: true}, {target: 0xf4f0487b57230a51caff395aac68d7bc5dcb2730, owner: 0x0000000000000000000000000000000000000006, spender: 0x7109709ecfa91a80626ff3989d68f67f5b1dd12d, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129638508, deadline: 115792089237316195423570985008687907853269984665640443829581302726767561379993, v: 126, r: d40aede11044be5e3495bd188439dd4d51ee7c050356761c98bd47d847a61b2f, s: f2f35da3bd66ccad91b972292c82ef90db1032ea1a4b553fd5c2b8d9a33a971d, permit: false}, {target: 0x62763fde60112a908ead05f8e27a23b709a78c07, owner: 0xa647ff3c36cfab592509e13860ab8c4f28781a66, spender: 0x0000000000000000000000000000000000030000, assetId: 1532891899, deadline: 68447597752396140120359975312586042732003852358865119593633902976513003609457, v: 194, r: 8aab2139175bb0e33af4e61302e82fb833a05bc48c2c54408f5fcd1d8884eb7c, s: 9f836a048029902602a64465bf14e6025c456540092ffd64cea8540fd5e2b90b, permit: false}, {target: 0xa13aabc070d1a5eccb0d6150d58336c273027957, owner: 0xcff19b9ffad9fcbb17b9ec7a00a69109083568cd, spender: 0x7ab355547c81b6b5f77c8febc4775b12f5e1bc2f, assetId: 27007583506156240120113104432560387160515796386424936812943223367333947038824, deadline: 5708990770823839524233143877797980545530986751, v: 115, r: 62f74e57575fee4358f14a6c35dd1684e455fe5bda0e35607fd54b710ccbf53a, s: 16e1b2901e4009f386b179ba0094fc2933e480b20af48932d7467e894ad927be, permit: false}, {target: 0x62b6278086e7b9f2c34064c5976f229dd3c0c93f, owner: 0xbba266a1a93972baf62db8d2a1de62220097f764, spender: 0x0000000000000000000000000000000001ffc9a7, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129559935, deadline: 1000000000000000164, v: 188, r: 518e6428d13c101838038d7fb5b7edbddedfd35ea65084e87b2250684151061c, s: 711dea642e1ea8d7ab7057ced365973386bf5730084dc72d6ccbe19af499d9f4, permit: false}, {target: 0x8a5267fba62b2ca0ff248f31a8f6bdd84e985525, owner: 0x0000000000000000000000000000000000066eed, spender: 0x5183b129f23bdda5964b29f2c3ee72dd889b6b91, assetId: 82404701549243175031867579219547279523745317794131810031859489826695213316479, deadline: 60, v: 200, r: 346d15478ad3aec6bc66f542f265df5f3c3b399184a43924a7ba678ca8a3d668, s: fd789cc20b23f9ab5143870bc786fffad6ae8775b4498f0a6aa06132df59a899, permit: true}, {target: 0x7156d1a6553ccb38e6ee493855111ed295dbe09c, owner: 0x0000000000000000000000000000000080ac58cd, spender: 0x57170dacf1d49a92f93aa1f3e7a0390ff378040e, assetId: 8, deadline: 31365, v: 75, r: 53c945dbd1f80696df0283197a906553674ddacf963072179775ae45ec192e6b, s: ec31d2f748883ea5eb741e69ac42dad9c4d02fceef1afcc63de77cf951cbd323, permit: true}, {target: 0xa2a442494ccc366ba4130626a13bb0768755232d, owner: 0x000000000000000000000000000000000000007d, spender: 0xccb01e1626d81fe196fd8485dcf610fa70cc8e2b, assetId: 56, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639832, v: 31, r: 50aea962b819e322adda2fe4328a04b23b624c7807813efb498f7897a20a5ccc, s: b649631eb16c5abb1e84c1a5997d38f813d39e52a08ce9f41a21376b91ad1ebb, permit: false}, {target: 0xf10306919b100b91435de4fe5bd19d25f7469db2, owner: 0x0000000000000000000000000000000000014a33, spender: 0x0000000000000000000000000000000000000089, assetId: 78796766311806600736912561056707957014924130986480253730503975630495471351748, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639918, v: 104, r: 4a6245e043d5db0a9bf76a1ba624e815c7ee100f31a015efee917ef067643c64, s: 59994396587b099d65fc42f555fa16453ccf66192fb0ce962e90152ceaafd681, permit: true}, {target: 0xfb9d153d5c8778bb7192f3bac986b6ea92839a49, owner: 0x53e813acb270164983f0181788f8a0b5b0fe3d18, spender: 0x0000000000000000000000000000000000000084, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129639896, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129451914, v: 242, r: d80cc8c2e4e1324e95c45c6b86a80c90ebf565bca128f49d7e00a5635c4f1126, s: 3dfb20be1ad524e43849afceaa011659812a849bc9e2b510188738d651ee8582, permit: true}, {target: 0x7fdd4dc28a488121b41e72a0e3a30a61761a9fd8, owner: 0x03000000000000000000000000000000000000ff, spender: 0x0000000000000000000000000000000000000038, assetId: 53639760337095322250124167896124584792502983533442010463798098086580081891617, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639920, v: 135, r: 6e44b38bc3761ec58c010897cd918472a3f5c1214274922d711af076a12730a5, s: 62c0fe99d87ee4af6821a2c808d673f99e76c6ea082e72c9db82c77ae2699f32, permit: true}, {target: 0x0000000000000000000000000000000000000064, owner: 0xde26e7676a03b8dc02153644597b20a2a13bad49, spender: 0xf9a00490440b08ec413b0d101dd6e8b8a1f2c9e2, assetId: 47694158003697340611634599039285494568711120152424759295475322282169144711459, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129639839, v: 111, r: 6e869f6b1fb690e6e6d0b3440351b092f713de841fbd5e9e44aa91c0dfab73b2, s: 4970ec1cfbc2da5107a07572aaaa740417aacc9e8bb32af672540840e997a8a7, permit: false}, {target: 0xa647ff3c36cfab592509e13860ab8c4f28781a66, owner: 0x00000000000000000000000000000000000000a4, spender: 0x697664a9592eccbce1155caedc9681511fab5f3c, assetId: 115792089237316195423570985008687907853269984665640564039457584007911463313122, deadline: 50595638836849329278211307190436702890992809132005495502366218749121277441671, v: 196, r: 9045933e9d0b0798b21214dbc6177777b6b521198e7c3af3a428e4a303bff7b4, s: 0f60335a065eb8c458a001b699ae4eef83360a9f5a7b9f4d0779d3790b5c6d75, permit: true}, {target: 0x5efa0a5c683238b79c0d1c7cb3504cf288a1cf29, owner: 0x9eed5bbe28f5099c0ae0e9b8aabc1012650c8168, spender: 0x5615deb798bb3e4dfa0139dfa1b3d433cc23b72f, assetId: 9143, deadline: 113793484822157716356742638045877235343670963477965291985658912341541960149372, v: 126, r: b6e9c3835a69016ff2505a838d7c9f126815769e148830885c7b97abd749d00a, s: aa475b09d16b048c8708cc3a7d7ae98098cda195f8f39523377e83a9935d88c5, permit: false}, {target: 0x09a6d3a9c27b8af22d8536fa2c74e9f84eaaaf30, owner: 0x0000000000000000000000000000000000000013, spender: 0xd8ed440080dec40f72ba8c73e1c13578ef3fc4ff, assetId: 32430, deadline: 98289840129122476752607864114276605238015846694309193561687347218243237180077, v: 92, r: 1f33464f6164cdbe658b03df8fbcbe17ffe8312fbd41e67cb085183379617f6c, s: e7c62846ef5877e3b96912dd777c1d78d416b68f560fec083b581613d8f1ef2f, permit: true}, {target: 0x000000000000000000000000000000000000007a, owner: 0xe5f8e1427b5f52b6c61ce7a1c8ac0b4bc2aa1bcf, spender: 0x0000000000000000000000000000000000000064, assetId: 432420386565659656852420866394968145599, deadline: 120209876281281145568259943, v: 160, r: 368b556d5f6c7ccff346253a911c28ab7c4054ddf5b8228ef139a28eaea1bc1c, s: a8f96e7d90ee3eb1b7c4f002b7b3d1b982855dcda82ce533053d5b92d26bd079, permit: false}, {target: 0x4202015aef99f6a6d90052249aab59fee52a237a, owner: 0xa8449198b22f33066fa618a607a8688c5872e679, spender: 0x659c7758fcedd7be599d880a5a346af08342e289, assetId: 115792089237316195423570985008687907853269984665640564039457584007912725541411, deadline: 967266142415946791564864882173635365234727712885414360820757412445311079122, v: 156, r: 9141a0abbe33afed301ce59613146935cdfc044ba98523c8460d937493f1075d, s: f7afc8b25452fdcf044bdd7b28847e6d40166c0c330fc8646370bcf94b54f614, permit: false}, {target: 0xa66c42d5d05a259bbf77eadd2c6849aba8fa726b, owner: 0xf0ee4c2348d9eaae2ff331438fcebdb078557bbd, spender: 0xee33a82983aea8bcf680bab576f95e93048a727a, assetId: 3179655225, deadline: 11, v: 45, r: 2e8e97434b1c8f124210f2560b309babeea2e5fe2c69cf51091a341468c2451f, s: 6130b153cd2207d373f80f80b1f1f53bd11d4a497ae623b9008bd776a0b16f25, permit: true}, {target: 0x883d2e66a35fbba747cae6e0cb6f5fa37d9e5c98, owner: 0x6e364ae748626e65b16600a8f319368520a7a5f9, spender: 0xbcf8148bc16287068c85d642c3a33c7059dca0cf, assetId: 113621683038201020178458245463315516867306468587377050395344991237741683270342, deadline: 96538188541925769535800026231119714480261385820089782674623305659026267647154, v: 177, r: ee797509ad0813a588bd476bbc6f71270b96c64e655715e5a3e78051403bf2df, s: faa26221bdd4b8fedc8de825fe9b6e2fbf6b745f3d478b14e18dbc72e0a9ddbb, permit: true}, {target: 0x82543e53883d4c2c8eabdc1377d7da6b155a33c0, owner: 0x44bc88f83f632df284df1a828a2866efcdf86d63, spender: 0x022baad9c369e415c0e8a8217b70427161bcfd8e, assetId: 115792089237316195423570985008687907853269984665640564039457584007909949984711, deadline: 190, v: 128, r: fb948ce308b21afe790eb4d16151819c48e6db5651775a7c7dac77c4ac8f6a5c, s: 7a952db6f7c81640093c1d8e463a655ddd76cbcf4239fa54db425df284377eae, permit: false}, {target: 0x00000000000000000000000000000000fe575a87, owner: 0x0000000000000000000000000000000000000505, spender: 0x00000000000000000000000000000000000000a4, assetId: 115792089237316195423570985008687907853269984665640443829581302726767561388446, deadline: 4267137671, v: 208, r: a8c1556722991a7f6dd7f0efe4ddbfd8501c6c9d102ae911cb00d4cd63615cd4, s: a1e6b1f040460fb4866e1d28cef643fbc1698d39dc573d64acacc92244372f32, permit: true}, {target: 0x0000000000000000000000000000000000000020, owner: 0x000000000000000000000000000000000000007d, spender: 0x00000000000000000000000000000000000000c4, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129559935, deadline: 8053813960297389361533422958850152885073260354210596433918648282184875669970, v: 32, r: 09dea55ee08792f5133d6cb5bb31c8c31184a7213d9854e4abf576b8cad490f9, s: c1b5bfae3623684c6897a172692d099b8c051a5099ae8ae5805d1c19307d2f96, permit: false}, {target: 0xea4b73c327f4f5eac8a00fb2a2f08206a6d3f360, owner: 0x0000000000000000000000000000000000000104, spender: 0x0000000000000000000000000000000000000022, assetId: 1484337600414198276300617408227474941838056555260, deadline: 85603187531413564911026005989162808234028860079729353171939841491699912816176, v: 251, r: 46be7b9cd0c232fab3459e2e6f0bb99bbcbf276490c7a9ce2910f89abf1d7dde, s: 12c3bae88729bcedaec7afea38ca09f49cd40277d1f6aab9e76790fdd1506dac, permit: true}, {target: 0x000000000000000000000000000000000000001c, owner: 0x3926447603bfcaf339ac4a41debe51b00e81bc0f, spender: 0x75ab57b61143d23e724f93394ea8270738e28a88, assetId: 115792089237316195423570985008687907853269984665640564039457584007913129639656, deadline: 31300434459143118689352663285844177920364246600072999212991469296993570025068, v: 0, r: 57897b7b53495a13108b27d01bcda0d231e44d663c105cfdcf82c8a0e8669d8d, s: 7553147fd4758e1970b6dc6ad92ecb255631f6b0673cd95e8b24879c2ac34dd4, permit: false}, {target: 0x00000000000000000000000000000000e47d6060, owner: 0x0000000000000000000000000000000080ac58cd, spender: 0x0000000000000000000000000000000000000144, assetId: 58679497676913633614597948096003771480741012995523547061813818296910941077872, deadline: 36252790826450943161649573043473003305721555377084347523002531074307074045054, v: 164, r: ac1d918b23e999d0d4bf86cd0ea131d3561b1b06091696c1b3c9cf9b6453b91f, s: 41ef5de46900d1c8aa12a62619a125d3703198d7be64ae6564f1f49ffd8ddddb, permit: false}, {target: 0x4200000000000000000000000000000000000800, owner: 0x23106ca17bd83c87d85ed27284dab7c22c07ec5e, spender: 0x19ffcda2d3f5ce077ef22e68e0323ef5b3056494, assetId: 41749387594268368677132621938174821737818853888203426235823385893553724124637, deadline: 29212300839610988121543892981686473733184596610791044679657191279915446827889, v: 12, r: 8eca681a8a4ad852d70bf4218aa57676d370fa43bd18566ba2387f0912c6f4ba, s: 69dab25341a0dc2136066c2a086dbea45df0d095bc720849e602c00793b7e54b, permit: false}, {target: 0xbc14d23bc0924b0b4fb65ee21b496392a1541558, owner: 0x1e14a48502dc8a90ec24d9429c2697a38a3faf89, spender: 0x00000000000000000000000000000000000000ff, assetId: 110257638862344476603494909175223680420140664490921008657637938151225455848260, deadline: 104737259106672816632933088014278990402129262715658139483537609958472370183436, v: 185, r: 94f2ac9541b37f5a9733436b8f23edc35295166fd309df9c2286d79231ec47a4, s: 9f6ca7b2d4d77aa0bb2925189df36da38531d7ab411a0fed42ca9858c4ec9f9a, permit: false}, {target: 0xfffffffebaaedce6af48a03bbfd25e8cd0364141, owner: 0x23465de7dcb8d6ec78578b788794d64b9c7ed12d, spender: 0x0000000000000000000000000000000000000505, assetId: 11155143, deadline: 115792089237316195423570985008687907853269984665640564039457584007913129638651, v: 105, r: 608f33cc12bbca4de91cc2682ff53e39290952c49d3fb785885496126de34c02, s: c31ba15792c23b14417585a64886d8a48e3006098f2da0ce7db2780343291870, permit: false}, {target: 0x95373bf73dcd2152ca5a530d8d93cfe00b9b438b, owner: 0x5615deb798bb3e4dfa0139dfa1b3d433cc23b72f, spender: 0x000000000000000000636f6e736f6c652e6c6f67, assetId: 30194358584549721735417747629980433062753031161775222929805167273081733193339, deadline: 114299825849420871812002803256367849451586823354992051220404618738472841552672, v: 0, r: f38d866f43f4443c66ce9cc6e9d411a49517a0d2de5631bd448e41e0260e119a, s: 302253a586e6ef155c1b8fbd1e9cc03e729bbed39562a5d6da403238a97b79f2, permit: true}, {target: 0x0000000000000000000000000000000000000023, owner: 0xf6a21db6cb9ace26c250df6ba2341de239eabb8e, spender: 0x53ce9649d2ba486b2054987edea64e61c23c6554, assetId: 1287, deadline: 87705769431831209080363331228093252192128345364500467189344735897365162921810, v: 116, r: 4748389e4ac0322f6d5e9a9aaef986cd021356aa609729ea6aab4f2d9aa22fc1, s: e22814868dff477adbbbf780000c0a1423a7320f01d50e2e1bb05c79281cc14d, permit: false}, {target: 0x862538cc5ae9195357ce78090692283350813a3c, owner: 0x0000000000000000000000000000000000000068, spender: 0x119a7af0abd80aacd8181b93a0410d6a49c230f2, assetId: 115792089237316195423561471964285605560600321975209469325199515377246972936192, deadline: 4267137671, v: 122, r: f28decf68a7abc13bfb39c59e2ee58e51aba8e32bd13b6f0c94976244beb5464, s: 5ec13ef634bdeb6f41a51dae09782f8b574178da6ae9711eaeba3eded83497d3, permit: false}, {target: 0x5d575b7a07759cf9b9108bbd734c1cdf5d91ec21, owner: 0x000000000000000000000000000000000000000c, spender: 0x0000000000000000000000000000000000000184, assetId: 58602496759067355296424400683663039330906011927842892907786167279154574066742, deadline: 1153611788939004710816649274463142904956676655633, v: 130, r: 2684c9b0669a34028401a2c914eb3cfcd35f395de23a44f291f4899576dcc13f, s: 96cc7d22884b10844303392d6fd21c3dcc02a0310981898e36dcdd4b46be3673, permit: false}]) (addr=0xA647ff3c36cFab592509E13860ab8c4F28781a66, value=0, sender=0x0000000000000000000000000000000000020000)
         => [event] Log("Length")
         => [panic: assertion failed]

⇾ [FAILED] Assertion Test: CryticTester.buildYieldBoxPermitAssetMsg(address,address,address,uint256,uint256,uint8,bytes32,bytes32,bool)
Test for method "CryticTester.buildYieldBoxPermitAssetMsg(address,address,address,uint256,uint256,uint8,bytes32,bytes32,bool)" resulted in an assertion failure after the following call sequence:
[Call Sequence]
1) CryticTester.buildYieldBoxPermitAssetMsg(0xaaf136f86d5f453d91e1dc6e15b4613d1cd7c198, 0xffffffffffffffffffffffffffffffffffffffff, 0x3c1edb13d904c0530c7f289bb5d61f1f4f736a1f, 8311431178568209160043692567180314946303527865271457644229879186282553985548, 62380983864631879613903329975777653920951095182484010955691753954498117500119, 167, 51f9834440b6d6c2b513dc7a62c29270bdc3f8e3160f0e367c6d5f88587133a1, ed796270ab2fa4080fdeae1f9e1d0b4c7820e1e3b4770385240d3890f26e357a, false) (block=23891, time=266617, gas=12500000, gasprice=1, value=0, sender=0x0000000000000000000000000000000000020000)
[Execution Trace]
 => [call] CryticTester.buildYieldBoxPermitAssetMsg(0xaaf136f86d5f453d91e1dc6e15b4613d1cd7c198, 0xffffffffffffffffffffffffffffffffffffffff, 0x3c1edb13d904c0530c7f289bb5d61f1f4f736a1f, 8311431178568209160043692567180314946303527865271457644229879186282553985548, 62380983864631879613903329975777653920951095182484010955691753954498117500119, 167, 51f9834440b6d6c2b513dc7a62c29270bdc3f8e3160f0e367c6d5f88587133a1, ed796270ab2fa4080fdeae1f9e1d0b4c7820e1e3b4770385240d3890f26e357a, false) (addr=0xA647ff3c36cFab592509E13860ab8c4F28781a66, value=0, sender=0x0000000000000000000000000000000000020000)
         => [event] Log("Length is expected")
         => [panic: assertion failed]

⇾ Test summary: 3 test(s) passed, 2 test(s) failed
⇾ Coverage report saved to file: medusa/coverage_report.html
cryptotechmaker commented 5 months ago

You're encoding the param in a wrong way. Instead of UsdoMsgCodec.decodeArrayOfYieldBoxPermitAssetMsg(abi.encode(arrayEncoded));, it should be as follows:

bytes memory toBeDecoded;
for(uint256 i; i < 3; i++){
    toBeDecoded = abi.encodePacked(toBeDecoded, abi.encodePacked(aa.target, aa.owner, aa.spender, aa.assetId, aa.deadline, aa.v, aa.r, aa.s, aa.permit));
}

I have created the following test:

YieldBoxApproveAssetMsg memory aa = YieldBoxApproveAssetMsg({
            target: address(0x1),
            owner: address(0x2),
            spender: address(0x3),
            assetId: 1,
            deadline: 2,
            v: uint8(1),
            r: bytes32(0),
            s: bytes32(0),
            permit: true
        });
        bytes memory toBeDecoded;
        for(uint256 i; i < 3; i++){
            toBeDecoded = abi.encodePacked(toBeDecoded, abi.encodePacked(aa.target, aa.owner, aa.spender, aa.assetId, aa.deadline, aa.v, aa.r, aa.s, aa.permit));
        }
        console.log("-------------- toBeDecoded %s", toBeDecoded.length);

        bytes[] memory arrayEncoded = new bytes[](3);
        for(uint256 i; i < 3; i++){
            arrayEncoded[i] = TapiocaOmnichainEngineCodec.buildYieldBoxPermitAssetMsg(aa);
            console.log("-------------- arrayEncoded[i] %s", arrayEncoded[i].length);
        }

        YieldBoxApproveAssetMsg[] memory decoded = TapiocaOmnichainEngineCodec.decodeArrayOfYieldBoxPermitAssetMsg(toBeDecoded);
        console.log("---------- decoded length %s", decoded.length);

the result is as follows:

  -------------- toBeDecoded 570
  -------------- arrayEncoded[i] 190
  -------------- arrayEncoded[i] 190
  -------------- arrayEncoded[i] 190
  ---------- decoded length 3