Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00Latest 25 from a total of 40 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Execute Borrow | 303605032 | 357 days ago | IN | 0 ETH | 0.00000742 | ||||
| Execute Borrow | 303604469 | 357 days ago | IN | 0 ETH | 0.00000559 | ||||
| Execute Borrow | 303604196 | 357 days ago | IN | 0 ETH | 0.00000559 | ||||
| Execute Borrow | 303602594 | 357 days ago | IN | 0 ETH | 0.00000465 | ||||
| Execute Borrow | 303602317 | 357 days ago | IN | 0 ETH | 0.00000507 | ||||
| Execute Borrow | 303599795 | 357 days ago | IN | 0 ETH | 0.00000711 | ||||
| Execute Borrow | 303599518 | 357 days ago | IN | 0 ETH | 0.00000814 | ||||
| Execute Borrow | 303599243 | 357 days ago | IN | 0 ETH | 0.00000736 | ||||
| Execute Borrow | 303483198 | 358 days ago | IN | 0 ETH | 0.00000365 | ||||
| Execute Borrow | 303475026 | 358 days ago | IN | 0 ETH | 0.00000357 | ||||
| Execute Borrow | 303474759 | 358 days ago | IN | 0 ETH | 0.00000357 | ||||
| Execute Borrow | 303382494 | 358 days ago | IN | 0 ETH | 0.00000356 | ||||
| Execute Borrow | 303352998 | 358 days ago | IN | 0 ETH | 0.0000035 | ||||
| Execute Borrow | 302397546 | 361 days ago | IN | 0 ETH | 0.00000389 | ||||
| Execute Borrow | 302397271 | 361 days ago | IN | 0 ETH | 0.00000389 | ||||
| Execute Borrow | 302396994 | 361 days ago | IN | 0 ETH | 0.00000389 | ||||
| Execute Borrow | 302396712 | 361 days ago | IN | 0 ETH | 0.00000391 | ||||
| Execute Borrow | 302396439 | 361 days ago | IN | 0 ETH | 0.00000391 | ||||
| Execute Borrow | 302396155 | 361 days ago | IN | 0 ETH | 0.00000391 | ||||
| Execute Borrow | 302394101 | 361 days ago | IN | 0 ETH | 0.00000389 | ||||
| Execute Borrow | 302393815 | 361 days ago | IN | 0 ETH | 0.00000389 | ||||
| Execute Borrow | 302370159 | 361 days ago | IN | 0 ETH | 0.00000373 | ||||
| Execute Borrow | 302347916 | 361 days ago | IN | 0 ETH | 0.00004413 | ||||
| Execute Borrow | 302346053 | 361 days ago | IN | 0 ETH | 0.00007627 | ||||
| Execute Borrow | 302345776 | 361 days ago | IN | 0 ETH | 0.00007053 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SafeUsdcBorrowModule
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/**
*Submitted for verification at Arbiscan.io on 2025-01-30
*/
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.8.0;
interface ISafe {
enum Operation {
Call,
DelegateCall
}
function execTransactionFromModule(
address to,
uint256 value,
bytes calldata data,
Operation operation
) external returns (bool success);
}
contract SafeUsdcBorrowModule {
// Safe contract address (hardcoded)
address public constant SAFE = 0x34A5207FCD54458fD7e3790246730e191C60fe07;
// Authorized delegate who can execute borrows (hardcoded)
address public constant DELEGATE = 0x4986dE761b18cfc7ccCfA143e21D6A99063397b9;
// Aave V3 Pool (unchanged)
address public constant DESTINATION = 0x794a61358D6845594F94dc1DB02A252b5b4814aD;
// USDC token address (unchanged)
address public constant USDC = 0xaf88d065e77c8cC2239327C5EDb3A432268e5831;
event UsdcBorrowed(uint256 amount);
modifier onlyDelegate() {
require(msg.sender == DELEGATE, "Not authorized");
_;
}
function executeBorrow(uint256 amount) external onlyDelegate {
bytes memory data = abi.encodePacked(
bytes4(0xa415bcad), // borrow function selector
abi.encode(
USDC,
amount,
uint256(2), // Variable rate mode
uint16(0), // referral code
SAFE // onBehalfOf
)
);
require(
ISafe(SAFE).execTransactionFromModule(
DESTINATION,
0,
data,
ISafe.Operation.Call
),
"Borrow failed"
);
emit UsdcBorrowed(amount);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UsdcBorrowed","type":"event"},{"inputs":[],"name":"DELEGATE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DESTINATION","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SAFE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"executeBorrow","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5061042c806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80634a2d5c9d1461005c578063885a1ffa1461008057806389a30271146100885780638b78150e14610090578063f547041714610098575b600080fd5b6100646100b7565b604080516001600160a01b039092168252519081900360200190f35b6100646100cf565b6100646100e7565b6100646100ff565b6100b5600480360360208110156100ae57600080fd5b5035610117565b005b734986de761b18cfc7cccfa143e21d6a99063397b981565b7334a5207fcd54458fd7e3790246730e191c60fe0781565b73af88d065e77c8cc2239327c5edb3a432268e583181565b73794a61358d6845594f94dc1db02a252b5b4814ad81565b33734986de761b18cfc7cccfa143e21d6a99063397b914610170576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6040805173af88d065e77c8cc2239327c5edb3a432268e5831602080830191909152818301849052600260608301526000608083018190527334a5207fcd54458fd7e3790246730e191c60fe0760a0808501919091528451808503909101815260c0840190945263a415bcad60e01b60e084018181528551929591949193909260e490920191908401908083835b6020831061021d5780518252601f1990920191602091820191016101fe565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405290507334a5207fcd54458fd7e3790246730e191c60fe076001600160a01b031663468721a773794a61358d6845594f94dc1db02a252b5b4814ad60008460006040518563ffffffff1660e01b815260040180856001600160a01b03168152602001848152602001806020018360018111156102c957fe5b8152602001828103825284818151815260200191508051906020019080838360005b838110156103035781810151838201526020016102eb565b50505050905090810190601f1680156103305780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b15801561035257600080fd5b505af1158015610366573d6000803e3d6000fd5b505050506040513d602081101561037c57600080fd5b50516103bf576040805162461bcd60e51b815260206004820152600d60248201526c109bdc9c9bddc819985a5b1959609a1b604482015290519081900360640190fd5b6040805183815290517fec2d4da0c4e4cfe82bf7cc02355b54f522045a99ffa5e784f5228452825ddf0a9181900360200190a1505056fea264697066735822122064977bcf88ab8022d26ce4d9690611e143287aa9be0fc59e19965a7a8165422264736f6c63430007060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100575760003560e01c80634a2d5c9d1461005c578063885a1ffa1461008057806389a30271146100885780638b78150e14610090578063f547041714610098575b600080fd5b6100646100b7565b604080516001600160a01b039092168252519081900360200190f35b6100646100cf565b6100646100e7565b6100646100ff565b6100b5600480360360208110156100ae57600080fd5b5035610117565b005b734986de761b18cfc7cccfa143e21d6a99063397b981565b7334a5207fcd54458fd7e3790246730e191c60fe0781565b73af88d065e77c8cc2239327c5edb3a432268e583181565b73794a61358d6845594f94dc1db02a252b5b4814ad81565b33734986de761b18cfc7cccfa143e21d6a99063397b914610170576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6040805173af88d065e77c8cc2239327c5edb3a432268e5831602080830191909152818301849052600260608301526000608083018190527334a5207fcd54458fd7e3790246730e191c60fe0760a0808501919091528451808503909101815260c0840190945263a415bcad60e01b60e084018181528551929591949193909260e490920191908401908083835b6020831061021d5780518252601f1990920191602091820191016101fe565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405290507334a5207fcd54458fd7e3790246730e191c60fe076001600160a01b031663468721a773794a61358d6845594f94dc1db02a252b5b4814ad60008460006040518563ffffffff1660e01b815260040180856001600160a01b03168152602001848152602001806020018360018111156102c957fe5b8152602001828103825284818151815260200191508051906020019080838360005b838110156103035781810151838201526020016102eb565b50505050905090810190601f1680156103305780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b15801561035257600080fd5b505af1158015610366573d6000803e3d6000fd5b505050506040513d602081101561037c57600080fd5b50516103bf576040805162461bcd60e51b815260206004820152600d60248201526c109bdc9c9bddc819985a5b1959609a1b604482015290519081900360640190fd5b6040805183815290517fec2d4da0c4e4cfe82bf7cc02355b54f522045a99ffa5e784f5228452825ddf0a9181900360200190a1505056fea264697066735822122064977bcf88ab8022d26ce4d9690611e143287aa9be0fc59e19965a7a8165422264736f6c63430007060033
Deployed Bytecode Sourcemap
357:1434:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;586:77;;;:::i;:::-;;;;-1:-1:-1;;;;;586:77:0;;;;;;;;;;;;;;436:73;;;:::i;841:::-;;;:::i;709:80::-;;;:::i;1078:710::-;;;;;;;;;;;;;;;;-1:-1:-1;1078:710:0;;:::i;:::-;;586:77;621:42;586:77;:::o;436:73::-;467:42;436:73;:::o;841:::-;872:42;841:73;:::o;709:80::-;747:42;709:80;:::o;1078:710::-;1009:10;621:42;1009:22;1001:49;;;;;-1:-1:-1;;;1001:49:0;;;;;;;;;;;;-1:-1:-1;;;1001:49:0;;;;;;;;;;;;;;;1262:213:::1;::::0;;872:42:::1;1262:213;::::0;;::::1;::::0;;;;;;;;;;1347:1:::1;1262:213:::0;;;;1150:17:::1;1262:213:::0;;;;;;467:42:::1;1262:213:::0;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1201:18:0::1;1170:316:::0;;;;;;;1150:17;;1201:18;;1262:213;;1170:316;;;;;;;;;::::1;::::0;;;;::::1;;;;;;::::0;;;;-1:-1:-1;;1170:316:0;;;;::::1;::::0;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1150:336;;467:42;-1:-1:-1::0;;;;;1529:37:0::1;;747:42;1615:1;1635:4;1658:20;1529:164;;;;;;;;;;;;;-1:-1:-1::0;;;;;1529:164:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;1529:164:0;1507:227:::1;;;::::0;;-1:-1:-1;;;1507:227:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;1507:227:0;;;;;;;;;;;;;::::1;;1760:20;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;1061:1;1078:710:::0;:::o
Swarm Source
ipfs://64977bcf88ab8022d26ce4d9690611e143287aa9be0fc59e19965a7a81654222
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.