Skip to content

Commit

Permalink
fix: Use safeApprove for usdt
Browse files Browse the repository at this point in the history
  • Loading branch information
thorseldon committed Apr 2, 2024
1 parent e1e6444 commit 4cdbf01
Show file tree
Hide file tree
Showing 3 changed files with 400 additions and 2 deletions.
199 changes: 199 additions & 0 deletions .openzeppelin/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -4409,6 +4409,205 @@
}
}
}
},
"0454ef68fa670501ef9c1672f041e720ac8100c3266a7cffe7148f5d81184efd": {
"address": "0xd440Cf55322bd68b60C388E2360318eFA0E30630",
"txHash": "0x445cbe12abe7a713f83fb327c3a7ddcb513cbcaa8db6204dbdb97ed1bc998fc7",
"layout": {
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"label": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:87"
},
{
"label": "_paused",
"offset": 0,
"slot": "101",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "102",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:102"
},
{
"label": "_status",
"offset": 0,
"slot": "151",
"type": "t_uint256",
"contract": "ReentrancyGuardUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:38"
},
{
"label": "__gap",
"offset": 0,
"slot": "152",
"type": "t_array(t_uint256)49_storage",
"contract": "ReentrancyGuardUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:74"
},
{
"label": "_HASHED_NAME",
"offset": 0,
"slot": "201",
"type": "t_bytes32",
"contract": "EIP712Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol:32"
},
{
"label": "_HASHED_VERSION",
"offset": 0,
"slot": "202",
"type": "t_bytes32",
"contract": "EIP712Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol:33"
},
{
"label": "__gap",
"offset": 0,
"slot": "203",
"type": "t_array(t_uint256)50_storage",
"contract": "EIP712Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol:120"
},
{
"label": "__gap",
"offset": 0,
"slot": "253",
"type": "t_array(t_uint256)50_storage",
"contract": "ERC721HolderUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC721/utils/ERC721HolderUpgradeable.sol:40"
},
{
"label": "downpayment",
"offset": 0,
"slot": "303",
"type": "t_contract(IDownpayment)10552",
"contract": "BaseAdapterV2",
"src": "contracts/adapters/BaseAdapterV2.sol:41"
},
{
"label": "WETH",
"offset": 0,
"slot": "304",
"type": "t_contract(IWETH)10895",
"contract": "BaseAdapterV2",
"src": "contracts/adapters/BaseAdapterV2.sol:42"
},
{
"label": "__gap",
"offset": 0,
"slot": "305",
"type": "t_array(t_uint256)43_storage",
"contract": "BaseAdapterV2",
"src": "contracts/adapters/BaseAdapterV2.sol:43"
},
{
"label": "bendExchange",
"offset": 0,
"slot": "348",
"type": "t_contract(IBendExchange)10355",
"contract": "BendExchangeAdapterV2",
"src": "contracts/adapters/BendExchangeAdapterV2.sol:17"
},
{
"label": "proxy",
"offset": 0,
"slot": "349",
"type": "t_address",
"contract": "BendExchangeAdapterV2",
"src": "contracts/adapters/BendExchangeAdapterV2.sol:18"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)43_storage": {
"label": "uint256[43]",
"numberOfBytes": "1376"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_bytes32": {
"label": "bytes32",
"numberOfBytes": "32"
},
"t_contract(IBendExchange)10355": {
"label": "contract IBendExchange",
"numberOfBytes": "20"
},
"t_contract(IDownpayment)10552": {
"label": "contract IDownpayment",
"numberOfBytes": "20"
},
"t_contract(IWETH)10895": {
"label": "contract IWETH",
"numberOfBytes": "20"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
Loading

0 comments on commit 4cdbf01

Please sign in to comment.